|
GXPARSE hosted by |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attribute
Attribute, as presented to the application by the parser. Adds operators
for getting type and value to the superinterface
.
Method Summary | |
---|---|
boolean |
equals(Object obj)
Define Attribute equality as identity of instances. |
QName |
getQName()
Get QName . |
String |
getQuotableValue()
Get attribute value that can be enclosed in quotes. |
String |
getType()
Get attribute type. |
String |
getValue()
Get attribute value. |
int |
hashCode()
Returns Object.hashCode . |
boolean |
isDeclared()
Ask whether the attribute was declared. |
boolean |
isSpecified()
Ask whether the attribute value was provided from the input, rather than from a default value. |
Method Detail |
---|
QName getQName()
Get QName
.
This identifies the Attribute
by namespace and local name.
String getType()
Get attribute type.
The attribute type must be one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).
If the parser has not read a declaration for the attribute, or if the parser does not report attribute types, then it must return the value "CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3, "Attribute-Value Normalization").
For an enumerated attribute that is not a notation, the parser should report the type as "NMTOKEN".
String getValue()
Get attribute value.
String getQuotableValue()
Get attribute value that can be enclosed in quotes.
boolean isDeclared()
Ask whether the attribute was declared. When using a validating parser, an attribute is valid if and only if it was declared.
boolean isSpecified()
Ask whether the attribute value was provided from the input, rather than from a default value.
boolean equals(Object obj)
Define Attribute
equality as identity of instances.
equals
in class Object
int hashCode()
Returns Object.hashCode
.
hashCode
in class Object
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |