KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > dom3 > as > ASAttributeDeclaration


1 /*
2  * Copyright (c) 2001 World Wide Web Consortium,
3  * (Massachusetts Institute of Technology, Institut National de
4  * Recherche en Informatique et en Automatique, Keio University). All
5  * Rights Reserved. This program is distributed under the W3C's Software
6  * Intellectual Property License. This program is distributed in the
7  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  * PURPOSE.
10  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11  */

12
13 package org.apache.xerces.dom3.as;
14
15 /**
16  * @deprecated
17  * An attribute declaration in the context of a <code>ASObject</code>.The
18  * constant 'REQUIRED' is missing from this interface.
19  * <p>See also the <a HREF='http://www.w3.org/TR/2001/WD-DOM-Level-3-ASLS-20011025'>Document Object Model (DOM) Level 3 Abstract Schemas and Load
20 and Save Specification</a>.
21  */

22 public interface ASAttributeDeclaration extends ASObject {
23     // VALUE_TYPES
24
/**
25      * Describes that the attribute does not have any value constraint.
26      */

27     public static final short VALUE_NONE = 0;
28     /**
29      * Indicates that the there is a default value constraint.
30      */

31     public static final short VALUE_DEFAULT = 1;
32     /**
33      * Indicates that there is a fixed value constraint for this attribute.
34      */

35     public static final short VALUE_FIXED = 2;
36
37     /**
38      * Datatype of the attribute.
39      */

40     public ASDataType getDataType();
41     /**
42      * Datatype of the attribute.
43      */

44     public void setDataType(ASDataType dataType);
45
46     /**
47      * Default or fixed value.
48      */

49     public String JavaDoc getDataValue();
50     /**
51      * Default or fixed value.
52      */

53     public void setDataValue(String JavaDoc dataValue);
54
55     /**
56      * Valid attribute values, separated by commas, in a string.
57      */

58     public String JavaDoc getEnumAttr();
59     /**
60      * Valid attribute values, separated by commas, in a string.
61      */

62     public void setEnumAttr(String JavaDoc enumAttr);
63
64     /**
65      * Owner elements <code>ASObject</code> of attribute, meaning that an
66      * attribute declaration can be shared by multiple elements.
67      */

68     public ASObjectList getOwnerElements();
69     /**
70      * Owner elements <code>ASObject</code> of attribute, meaning that an
71      * attribute declaration can be shared by multiple elements.
72      */

73     public void setOwnerElements(ASObjectList ownerElements);
74
75     /**
76      * Constraint type if any for this attribute.
77      */

78     public short getDefaultType();
79     /**
80      * Constraint type if any for this attribute.
81      */

82     public void setDefaultType(short defaultType);
83
84 }
85
Popular Tags