public class ChargingContractItemParameterModel extends HCIModelAdapter implements XMLMapping
ChargingContractItemParameterModel inside a ChargingContractItemModel redefines redefines a
parameter value of the Charge Component referenced by the ChargingContractItemModel.
It is composed of:
name which identifies only one ChargingContractItemParameterModel inside the Charging Contract Item.name and the same type.
defaultValue which is the number or the string or the date that replaces the defaultValue of the Charge Component parameter.
The XML APIs specify the following XSD fragment:
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The value of that constant is the XML tag name of the Charging Contract Item Parameter Model.
|
| Constructor and Description |
|---|
ChargingContractItemParameterModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
Class<?> |
getClass(String nsUri,
String tag,
XMLAttributes atts)
Returns the
Java class for a specified XML tag and its attributes in a namespace. |
Date |
getDateValue()
|
String |
getName()
Gets the
name which identifies only one ChargingContractItemParameterModel inside the Charging Contract Item. |
BigDecimal |
getNumberValue()
|
String |
getStringValue()
|
String |
getTagName()
Gets the XML tag name of the HCI model.
|
ValueType |
getType()
Gets the type of the value.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setDateValue(Date value)
|
void |
setName(String name)
Sets the
name which identifies only one ChargingContractItemParameterModel inside the Charging Contract Item. |
void |
setNumberValue(BigDecimal value)
|
void |
setStringValue(String value)
|
void |
setType(ValueType type)
Sets the type of the value.
|
marshalpublic static final String TAG_NAME
public String getName()
name which identifies only one ChargingContractItemParameterModel inside the Charging Contract Item.name which identifies only one ChargingContractItemParameterModel inside the Charging Contract Item.public void setName(String name)
name which identifies only one ChargingContractItemParameterModel inside the Charging Contract Item.name - the name which identifies only one ChargingContractItemParameterModel inside the Charging Contract Item.public ValueType getType()
null, then the value is null.
When the value is null, then the type is not necessary null.public void setType(ValueType type)
type,
then the value is set to null.type - the type of the value.public String getStringValue()
String if the type is ValueType.STRING, null otherwise.public void setStringValue(String value)
value - the String valuepublic Date getDateValue()
Date if the type is ValueType.DATE, null otherwise.public void setDateValue(Date value)
value - the Date valuepublic BigDecimal getNumberValue()
BigDecimal if the type is ValueType.NUMBER, null otherwise.public void setNumberValue(BigDecimal value)
value - the BigDecimal valuepublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallablemarshalAttributes in interface IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallablemarshalChildren in interface IXMLMarshallableoutput - The XML output to marshal the child objects intopublic String getTagName()
ITagNameProvidergetTagName in interface ITagNameProviderpublic Class<?> getClass(String nsUri, String tag, XMLAttributes atts)
XMLMappingJava class for a specified XML tag and its attributes in a namespace.getClass in interface XMLMappingnsUri - The unique resource identifier of the namespace of the XML tagtag - The local part of the XML tagatts - The attributes of the XML tagJava class with a default constructor