public class XMLAttributesImpl extends Object implements XMLAttributes
| Constructor and Description |
|---|
XMLAttributesImpl(Attributes attributes,
ReferenceResolver r) |
XMLAttributesImpl(Hashtable<String,String> map) |
| 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)
Gets the value of an XML attribute of boolean type.
|
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.
|
void |
reset(Attributes attributes,
ReferenceResolver r) |
public XMLAttributesImpl(Attributes attributes, ReferenceResolver r)
public String getValue(String attName)
XMLAttributesgetValue in interface XMLAttributesattName - The attribute to get the value forpublic BigDecimal getDecimalValue(String attName)
XMLAttributesgetDecimalValue in interface XMLAttributesattName - The name of the attributepublic Date getDateValue(String attName)
XMLAttributesgetDateValue in interface XMLAttributesattName - The name of the attributepublic boolean getBooleanValue(String attName)
XMLAttributesgetBooleanValue in interface XMLAttributesattName - The name of the attributetrue if the value of attName is "true", false otherwisepublic boolean getStrictBooleanValue(String attName)
XMLAttributesgetStrictBooleanValue in interface XMLAttributesattName - The name of the attributetrue if the value of attName is "true", false otherwisepublic Integer getIntegerValue(String attName)
XMLAttributesgetIntegerValue in interface XMLAttributesattName - The name of the attributepublic Long getLongValue(String attName)
XMLAttributesgetLongValue in interface XMLAttributesattName - The name of the attributepublic BigInteger getBigIntegerValue(String attName)
XMLAttributesgetBigIntegerValue in interface XMLAttributesattName - The name of the attributepublic String[] getAttributesNames()
XMLAttributesgetAttributesNames in interface XMLAttributespublic String registerHandler(String attName, ReferenceHandler handler)
XMLAttributesregisterHandler in interface XMLAttributesattName - The name of the referencehandler - The handler for referencespublic XMLAttributes freeze()
XMLAttributesfreeze in interface XMLAttributespublic void reset(Attributes attributes, ReferenceResolver r)