Package com.highdeal.contract.hci
Class ChargingContractItemParameterModel
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.contract.hci.ChargingContractItemParameterModel
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMapping,XMLMarshallable
The
ChargingContractItemParameterModel inside a ChargingContractItemModel redefines redefines a
parameter value of the Charge Component referenced by the ChargingContractItemModel.
It is composed of:
- A
namewhich identifies only oneChargingContractItemParameterModelinside the Charging Contract Item.
For a valid redefinition, the Charge Component parameter and the Charging Contract Item Parameter must have the samenameand the sametype. - A
defaultValuewhich is the number or the string or the date that replaces thedefaultValueof the Charge Component parameter.
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="ChargingContractItemParameterType">
<xs:sequence>
<xs:choice>
<xs:element ref="string" />
<xs:element ref="date" />
<xs:element ref="number" />
</xs:choice>
</xs:sequence>
<xs:attribute name="name" type="xs:string" />
</xs:complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Class<?>getClass(String nsUri, String tag, XMLAttributes atts) Returns theJava classfor a specifiedXML tagand its attributes in a namespace.getName()Gets thenamewhich identifies only oneChargingContractItemParameterModelinside the Charging Contract Item.Gets the XML tag name of the HCI model.getType()Gets the type of the value.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidmarshalChildren(XMLOutputter output) Gives an XML representation of the child objects of an object.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetDateValue(Date value) voidSets thenamewhich identifies only oneChargingContractItemParameterModelinside the Charging Contract Item.voidsetNumberValue(BigDecimal value) voidsetStringValue(String value) voidSets the type of the value.Methods inherited from class com.highdeal.hci.HCIModelAdapter
marshal
-
Field Details
-
TAG_NAME
The value of that constant is the XML tag name of the Charging Contract Item Parameter Model.- See Also:
-
-
Constructor Details
-
ChargingContractItemParameterModel
public ChargingContractItemParameterModel()
-
-
Method Details
-
getName
Gets thenamewhich identifies only oneChargingContractItemParameterModelinside the Charging Contract Item.- Returns:
- the
namewhich identifies only oneChargingContractItemParameterModelinside the Charging Contract Item.
-
setName
Sets thenamewhich identifies only oneChargingContractItemParameterModelinside the Charging Contract Item.- Parameters:
name- thenamewhich identifies only oneChargingContractItemParameterModelinside the Charging Contract Item.
-
getType
Gets the type of the value. When the type isnull, then the value isnull. When the value isnull, then the type is not necessarynull.- Returns:
- the type of the value
-
setType
Sets the type of the value. When the type given in argument is different of the internaltype, then the value is set tonull.- Parameters:
type- the type of the value.
-
getStringValue
- Returns:
- the value as a
Stringif thetypeisValueType.STRING,nullotherwise.
-
setStringValue
- Parameters:
value- theStringvalue
-
getDateValue
- Returns:
- the value as a
Dateif thetypeisValueType.DATE,nullotherwise.
-
setDateValue
- Parameters:
value- theDatevalue
-
getNumberValue
- Returns:
- the value as a
BigDecimalif thetypeisValueType.NUMBER,nullotherwise.
-
setNumberValue
- Parameters:
value- theBigDecimalvalue
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Specified by:
marshalAttributesin interfaceIXMLMarshallable- Parameters:
output- TheXML outputto marshal the object attributes into
-
marshalChildren
Description copied from interface:IXMLMarshallableGives an XML representation of the child objects of an object.- Specified by:
marshalChildrenin interfaceIXMLMarshallable- Parameters:
output- TheXML outputto marshal the child objects into
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Specified by:
getTagNamein interfaceITagNameProvider- Returns:
- The XML tag name
-
getClass
Description copied from interface:XMLMappingReturns theJava classfor a specifiedXML tagand its attributes in a namespace.- Specified by:
getClassin interfaceXMLMapping- Parameters:
nsUri- The unique resource identifier of the namespace of the XML tagtag- The local part of the XML tagatts- The attributes of the XML tag- Returns:
- A
Java classwith a default constructor
-