public class XMLAttributesImpl extends java.lang.Object implements XMLAttributes
| Constructor and Description |
|---|
XMLAttributesImpl(org.xml.sax.Attributes attributes,
ReferenceResolver r) |
XMLAttributesImpl(java.util.Hashtable<java.lang.String,java.lang.String> map) |
| Modifier and Type | Method and Description |
|---|---|
XMLAttributes |
freeze()
Returns a frozen copy of the XML attributes.
|
java.lang.String[] |
getAttributesNames()
Returns all the attributes names.
|
java.math.BigInteger |
getBigIntegerValue(java.lang.String attName)
Gets the value of an XML attribute of big integer type.
|
boolean |
getBooleanValue(java.lang.String attName)
Gets the value of an XML attribute of boolean type.
|
java.util.Date |
getDateValue(java.lang.String attName)
Gets the value of an XML attribute of date type; Dates
are encoded using ISO 8601 date and time formats.
|
java.math.BigDecimal |
getDecimalValue(java.lang.String attName)
Gets the value of an XML attribute of decimal type.
|
java.lang.Integer |
getIntegerValue(java.lang.String attName)
Gets the value of an XML attribute of integer type.
|
java.lang.Long |
getLongValue(java.lang.String attName)
Gets the value of an XML attribute of long type.
|
boolean |
getStrictBooleanValue(java.lang.String attName)
Gets the value of an XML attribute of boolean type.
|
java.lang.String |
getValue(java.lang.String attName)
Gets the value of an XML attribute.
|
java.lang.String |
registerHandler(java.lang.String attName,
ReferenceHandler handler)
Registers an ID reference on an attribute and returns
the value of the attribute.
|
void |
reset(org.xml.sax.Attributes attributes,
ReferenceResolver r) |
public XMLAttributesImpl(org.xml.sax.Attributes attributes,
ReferenceResolver r)
public XMLAttributesImpl(java.util.Hashtable<java.lang.String,java.lang.String> map)
public java.lang.String getValue(java.lang.String attName)
XMLAttributesgetValue in interface XMLAttributesattName - The attribute to get the value forpublic java.math.BigDecimal getDecimalValue(java.lang.String attName)
XMLAttributesgetDecimalValue in interface XMLAttributesattName - The name of the attributepublic java.util.Date getDateValue(java.lang.String attName)
XMLAttributesgetDateValue in interface XMLAttributesattName - The name of the attributepublic boolean getBooleanValue(java.lang.String attName)
XMLAttributesgetBooleanValue in interface XMLAttributesattName - The name of the attributetrue if the value of attName is "true", false otherwisepublic boolean getStrictBooleanValue(java.lang.String attName)
XMLAttributesgetStrictBooleanValue in interface XMLAttributesattName - The name of the attributetrue if the value of attName is "true", false otherwisepublic java.lang.Integer getIntegerValue(java.lang.String attName)
XMLAttributesgetIntegerValue in interface XMLAttributesattName - The name of the attributepublic java.lang.Long getLongValue(java.lang.String attName)
XMLAttributesgetLongValue in interface XMLAttributesattName - The name of the attributepublic java.math.BigInteger getBigIntegerValue(java.lang.String attName)
XMLAttributesgetBigIntegerValue in interface XMLAttributesattName - The name of the attributepublic java.lang.String[] getAttributesNames()
XMLAttributesgetAttributesNames in interface XMLAttributespublic java.lang.String registerHandler(java.lang.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(org.xml.sax.Attributes attributes,
ReferenceResolver r)