Package com.highdeal.hci
Class XMLAttributesImpl
java.lang.Object
com.highdeal.hci.XMLAttributesImpl
- All Implemented Interfaces:
XMLAttributes
Implementation of HCI XML attributes from a SAX 2 parser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfreeze()Returns a frozen copy of the XML attributes.String[]Returns all the attributes names.getBigIntegerValue(String attName) Gets the value of an XML attribute of big integer type.booleangetBooleanValue(String attName) Gets the value of an XML attribute of boolean type.getDateValue(String attName) Gets the value of an XML attribute of date type; Dates are encoded using ISO 8601 date and time formats.getDecimalValue(String attName) Gets the value of an XML attribute of decimal type.getIntegerValue(String attName) Gets the value of an XML attribute of integer type.getLongValue(String attName) Gets the value of an XML attribute of long type.booleangetStrictBooleanValue(String attName) Gets the value of an XML attribute of boolean type.Gets the value of an XML attribute.registerHandler(String attName, ReferenceHandler handler) Registers an ID reference on an attribute and returns the value of the attribute.voidreset(Attributes attributes, ReferenceResolver r)
-
Constructor Details
-
XMLAttributesImpl
-
XMLAttributesImpl
-
-
Method Details
-
getValue
Description copied from interface:XMLAttributesGets the value of an XML attribute.- Specified by:
getValuein interfaceXMLAttributes- Parameters:
attName- The attribute to get the value for- Returns:
- The value of the attribute as a string
-
getDecimalValue
Description copied from interface:XMLAttributesGets the value of an XML attribute of decimal type.- Specified by:
getDecimalValuein interfaceXMLAttributes- Parameters:
attName- The name of the attribute- Returns:
- The value of the attribute as a decimal
-
getDateValue
Description copied from interface:XMLAttributesGets the value of an XML attribute of date type; Dates are encoded using ISO 8601 date and time formats.- Specified by:
getDateValuein interfaceXMLAttributes- Parameters:
attName- The name of the attribute- Returns:
- The value of the attribute as a date
-
getBooleanValue
Description copied from interface:XMLAttributesGets the value of an XML attribute of boolean type.- Specified by:
getBooleanValuein interfaceXMLAttributes- Parameters:
attName- The name of the attribute- Returns:
trueif the value ofattNameis "true",falseotherwise
-
getStrictBooleanValue
Description copied from interface:XMLAttributesGets the value of an XML attribute of boolean type.- Specified by:
getStrictBooleanValuein interfaceXMLAttributes- Parameters:
attName- The name of the attribute- Returns:
trueif the value ofattNameis "true",falseotherwise
-
getIntegerValue
Description copied from interface:XMLAttributesGets the value of an XML attribute of integer type.- Specified by:
getIntegerValuein interfaceXMLAttributes- Parameters:
attName- The name of the attribute- Returns:
- The value of the attribute as an integer
-
getLongValue
Description copied from interface:XMLAttributesGets the value of an XML attribute of long type.- Specified by:
getLongValuein interfaceXMLAttributes- Parameters:
attName- The name of the attribute- Returns:
- The value of the attribute as a long
-
getBigIntegerValue
Description copied from interface:XMLAttributesGets the value of an XML attribute of big integer type.- Specified by:
getBigIntegerValuein interfaceXMLAttributes- Parameters:
attName- The name of the attribute- Returns:
- The value of the attribute as a big integer
-
getAttributesNames
Description copied from interface:XMLAttributesReturns all the attributes names.- Specified by:
getAttributesNamesin interfaceXMLAttributes- Returns:
- The attributes names
-
registerHandler
Description copied from interface:XMLAttributesRegisters an ID reference on an attribute and returns the value of the attribute.- Specified by:
registerHandlerin interfaceXMLAttributes- Parameters:
attName- The name of the referencehandler- Thehandler for references- Returns:
- The value of the attribute
-
freeze
Description copied from interface:XMLAttributesReturns a frozen copy of the XML attributes.- Specified by:
freezein interfaceXMLAttributes- Returns:
- The frozen copy of the XML attributes
-
reset
-