public abstract class AbstractParameterModel extends HCIModelAdapter implements XMLMapping
Java class represents a configurable parameter description.
It is composed of:
name which identifies the parameter.description allowing a better understanding about the parameter (optional).value which can be a String, a Date or a Number.additionalInfo which can be a String, a Date or a Number.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this data model: "parameter"
|
| Constructor and Description |
|---|
AbstractParameterModel(ValueType... types) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.util.List<AdditionalInfoModel> |
getAdditionalInfoList()
Gets the list of
Additional Informations. |
java.lang.Class<?> |
getClass(java.lang.String nsUri,
java.lang.String tag,
XMLAttributes atts)
Returns the
Java class for a specified XML tag and its attributes in a namespace. |
java.lang.String |
getDescription()
Gets the description allowing a better understanding about the parameter of the Charging Contract Item.
|
java.lang.String |
getName()
Gets the name of the parameter description defined by the user.
|
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model.
|
ValueType |
getType()
Gets the type of the value.
|
java.lang.Object |
getValue(ValueType aType)
Gets a typed value.
|
boolean |
hasValue()
Whether the parameter has a 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 |
setDescription(java.lang.String description)
Sets the description allowing a better understanding about the parameter of the Charging Contract Item.
|
void |
setName(java.lang.String name)
Sets the name of the parameter description defined by the user.
|
void |
setValue(ValueType aType,
java.lang.Object aValue)
Sets a typed value.
|
marshalpublic static final java.lang.String TAG_NAME
public AbstractParameterModel(ValueType... types)
public boolean hasValue()
public java.lang.String getName()
public void setName(java.lang.String name)
name - The name of the parameter description defined by the userpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description allowing a better understanding about the parameter of the Charging Contract Itempublic ValueType getType()
null, then the value is null.
When the value is null, then the type isn't necessary null.public java.lang.Object getValue(ValueType aType)
aType - The type of the valuepublic void setValue(ValueType aType, java.lang.Object aValue)
aType - The type of the valueaValue - The valuepublic java.util.List<AdditionalInfoModel> getAdditionalInfoList()
Additional Informations.public void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.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 java.lang.String getTagName()
ITagNameProvidergetTagName in interface ITagNameProviderpublic java.lang.Class<?> getClass(java.lang.String nsUri,
java.lang.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