public MyTestAttributeDecl(String elementName,
String attributeName,
String type,
String valueDefault,
String value,
String text) {
elName = elementName;
attName = attributeName;
declType = type;
defaultValue = valueDefault;
declValue = value;
txt = text;
}
Parameters:
elementName -
The name of the element whose attribute is being
described.
attributeName -
The name of the attribute.
type -
The type of the declared attribute, e.g., CDATA, ID,
IDREF, IDREFS, ENTITY, ENTITIES, NMTOKEN, NKTOKENS
valueDefault -
The type of default that applies for this attribute
declaration, e.g., #REQUIRED, #IMPLIED, #FIXED (in which
case the value MUST be non- null
and specifies the fixed value for the attribute, or
null if no valueDefault was specified in
the attribute declaration (in which case the value
MUST be non- null and specifies the default
value for the attribute).
value -
The value of the attribute assigned in the attribute
declaration -or- null if no value was
provided in the attribute declaration. The value MUST be
null unless the valueDefault is
either "#FIXED" or null.
text -
The text representation of the attribute declaration,
e.g., <!ATTLIST foo id ID #IMPLIED>.
- todo:
The - constructor and properties in AttributeDecl should
have some similar javadoc so that people more easily understand
the interaction and difference between the valueDefault
and value properties. The constructor SHOULD be clear
about whether and when the valueDefault and
value properties MUST be null.
|