|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.menagery.dtd.Attribute
| Field Summary | |
static int |
CDATA
Attribute Type: CDATA |
static int |
ENTITIES
Attribute Type: ENTITIES |
static int |
ENTITY
Attribute Type: ENTITY |
static int |
FIXED
Attribute Declaration: #FIXED |
static int |
ID
Attribute Type: ID |
static int |
IDREF
Attribute Type: IDREF |
static int |
IMPLIED
Attribute Declaration: #IMPLIED |
static int |
NMTOKEN
Attribute Type: NMTOKEN |
static int |
NMTOKENS
Attribute Type: NMTOKENS |
static int |
NOTATION
Attribute Type: NOTATION |
static int |
REQUIRED
Attribute Declaration: #REQUIRED |
static int |
USER_DEFINED
Attribute Type: User defined enumerated type |
| Constructor Summary | |
Attribute(java.lang.String paramName,
int type,
int decl,
java.lang.String value,
java.util.Vector vEnum)
Creates a new Attribute object. |
|
| Method Summary | |
boolean |
equals(Attribute a)
Compares two Attribute objects for equality. |
int |
getDeclaration()
Get the attribute declaration. |
java.util.Vector |
getEnum()
Get the user defined enumeration. |
java.lang.String |
getEnumString()
Get the enumeration as a string. |
java.lang.String |
getModeString()
Get the mode string. |
java.lang.String |
getName()
Get the parameter name. |
int |
getType()
Get the attribute type. |
java.lang.String |
getTypeString()
For outputting DTD-style attlists. |
java.lang.String |
getValue()
Get the attribute default value. |
java.lang.String |
toString()
Override toString(). |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int USER_DEFINED
public static final int CDATA
public static final int ID
public static final int IDREF
public static final int NOTATION
public static final int ENTITY
public static final int ENTITIES
public static final int NMTOKEN
public static final int NMTOKENS
public static final int IMPLIED
public static final int REQUIRED
public static final int FIXED
| Constructor Detail |
public Attribute(java.lang.String paramName,
int type,
int decl,
java.lang.String value,
java.util.Vector vEnum)
paramName - The parameter name.type - The attribute type.decl - The attribute declaration.value - The default value.vEnum - The user defined enumeration (or NOTATION types).| Method Detail |
public java.lang.String getName()
public int getType()
public int getDeclaration()
public java.lang.String getValue()
public java.util.Vector getEnum()
public boolean equals(Attribute a)
a - The attribute object to be compared to this.public java.lang.String toString()
public java.lang.String getTypeString()
public java.lang.String getEnumString()
public java.lang.String getModeString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||