public interface XMLAttributes
Java interface allows to access to the attributes of an XML tag.| Modifier and Type | Method and Description |
|---|---|
XMLAttributes |
freeze()
Returns a frozen copy of the XML attributes.
|
String[] |
getAttributesNames()
Returns all the attributes names.
|
BigInteger |
getBigIntegerValue(String attName)
Gets the value of an XML attribute of big integer type.
|
boolean |
getBooleanValue(String attName)
Deprecated.
|
Date |
getDateValue(String attName)
Gets the value of an XML attribute of date type; Dates
are encoded using ISO 8601 date and time formats.
|
BigDecimal |
getDecimalValue(String attName)
Gets the value of an XML attribute of decimal type.
|
Integer |
getIntegerValue(String attName)
Gets the value of an XML attribute of integer type.
|
Long |
getLongValue(String attName)
Gets the value of an XML attribute of long type.
|
boolean |
getStrictBooleanValue(String attName)
Gets the value of an XML attribute of boolean type.
|
String |
getValue(String attName)
Gets the value of an XML attribute.
|
String |
registerHandler(String attName,
ReferenceHandler handler)
Registers an ID reference on an attribute and returns
the value of the attribute.
|
String getValue(String attName)
attName - The attribute to get the value forDate getDateValue(String attName)
attName - The name of the attributeXMLIllegalArgumentException - when the attribute value is not a ISO 8601 dateBigDecimal getDecimalValue(String attName)
attName - The name of the attributeXMLIllegalArgumentException - when the attribute value is not a decimal@Deprecated boolean getBooleanValue(String attName)
attName - The name of the attributetrue if the value of attName is "true", false otherwiseboolean getStrictBooleanValue(String attName)
attName - The name of the attributetrue if the value of attName is "true", false otherwiseXMLIllegalArgumentException - when the attribute value is not a booleanInteger getIntegerValue(String attName)
attName - The name of the attributeXMLIllegalArgumentException - when the attribute value is not a integerLong getLongValue(String attName)
attName - The name of the attributeXMLIllegalArgumentException - when the attribute value is not a longBigInteger getBigIntegerValue(String attName)
attName - The name of the attributeXMLIllegalArgumentException - when the attribute value is not a big integerString[] getAttributesNames()
String registerHandler(String attName, ReferenceHandler handler)
attName - The name of the referencehandler - The handler for referencesXMLAttributes freeze()