|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.vex.dom.AttributeDefinition
AttributeDefinition
represents an attribute definition in a DTD.
Nested Class Summary | |
static class |
AttributeDefinition.Type
Enumeration of attribute types. |
Constructor Summary | |
AttributeDefinition(java.lang.String name,
AttributeDefinition.Type type,
java.lang.String defaultValue,
java.lang.String[] values,
boolean required,
boolean fixed)
Class constructor. |
Method Summary | |
int |
compareTo(java.lang.Object other)
Implements Comparable.compareTo to sort alphabetically
by name. |
java.lang.String |
getDefaultValue()
Returns the default value of the attribute. |
java.lang.String |
getName()
Returns the name of the attribute. |
AttributeDefinition.Type |
getType()
Returns the attribute's type. |
java.lang.String[] |
getValues()
Returns an array of acceptable values for the attribute. |
boolean |
isFixed()
Returns true if the attribute value is fixed. |
boolean |
isRequired()
Returns true if the attribute is required. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AttributeDefinition(java.lang.String name, AttributeDefinition.Type type, java.lang.String defaultValue, java.lang.String[] values, boolean required, boolean fixed)
Method Detail |
public int compareTo(java.lang.Object other)
Comparable.compareTo
to sort alphabetically
by name.
compareTo
in interface java.lang.Comparable
other
- The attribute to which this one is to be compared.public AttributeDefinition.Type getType()
public java.lang.String getDefaultValue()
public boolean isFixed()
public java.lang.String getName()
public boolean isRequired()
public java.lang.String[] getValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |