01: /*
02: * Copyright (c) 2001 World Wide Web Consortium,
03: * (Massachusetts Institute of Technology, Institut National de
04: * Recherche en Informatique et en Automatique, Keio University). All
05: * Rights Reserved. This program is distributed under the W3C's Software
06: * Intellectual Property License. This program is distributed in the
07: * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
08: * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
09: * 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: /**
43: * Datatype of the attribute.
44: */
45: public void setDataType(ASDataType dataType);
46:
47: /**
48: * Default or fixed value.
49: */
50: public String getDataValue();
51:
52: /**
53: * Default or fixed value.
54: */
55: public void setDataValue(String dataValue);
56:
57: /**
58: * Valid attribute values, separated by commas, in a string.
59: */
60: public String getEnumAttr();
61:
62: /**
63: * Valid attribute values, separated by commas, in a string.
64: */
65: public void setEnumAttr(String enumAttr);
66:
67: /**
68: * Owner elements <code>ASObject</code> of attribute, meaning that an
69: * attribute declaration can be shared by multiple elements.
70: */
71: public ASObjectList getOwnerElements();
72:
73: /**
74: * Owner elements <code>ASObject</code> of attribute, meaning that an
75: * attribute declaration can be shared by multiple elements.
76: */
77: public void setOwnerElements(ASObjectList ownerElements);
78:
79: /**
80: * Constraint type if any for this attribute.
81: */
82: public short getDefaultType();
83:
84: /**
85: * Constraint type if any for this attribute.
86: */
87: public void setDefaultType(short defaultType);
88:
89: }
|