Package com.highdeal.hci
Class AbstractParameterModel
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.hci.AbstractParameterModel
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMapping,XMLMarshallable
This
Java class represents a configurable parameter description.
It is composed of:
- A
namewhich identifies the parameter. - A
descriptionallowing a better understanding about the parameter (optional). - A
valuewhich can be a String, a Date or a Number. - An
additionalInfowhich can be a String, a Date or a Number.
-
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.Gets the list ofAdditional Informations.Class<?>getClass(String nsUri, String tag, XMLAttributes atts) Returns theJava classfor a specifiedXML tagand its attributes in a namespace.Gets the description allowing a better understanding about the parameter of the Charging Contract Item.getName()Gets the name of the parameter description defined by the user.Gets the XML tag name of the HCI model.getType()Gets the type of the value.Gets a typed value.booleanhasValue()Whether the parameter has a 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.voidsetDescription(String description) Sets the description allowing a better understanding about the parameter of the Charging Contract Item.voidSets the name of the parameter description defined by the user.voidSets a typed value.Methods inherited from class com.highdeal.hci.HCIModelAdapter
marshal
-
Field Details
-
TAG_NAME
The XML tag name of this data model: "parameter"- See Also:
-
-
Constructor Details
-
AbstractParameterModel
-
-
Method Details
-
hasValue
public boolean hasValue()Whether the parameter has a value.- Returns:
- whether the parameter has a value
-
getName
Gets the name of the parameter description defined by the user.- Returns:
- The name of the parameter description defined by the user
-
setName
Sets the name of the parameter description defined by the user.- Parameters:
name- The name of the parameter description defined by the user
-
getDescription
Gets the description allowing a better understanding about the parameter of the Charging Contract Item.- Returns:
- The description allowing a better understanding about the parameter of the Charging Contract Item
-
setDescription
Sets the description allowing a better understanding about the parameter of the Charging Contract Item.- Parameters:
description- The description allowing a better understanding about the parameter of 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 isn't necessarynull.- Returns:
- The type of the value
-
getValue
Gets a typed value.- Parameters:
aType- The type of the value- Returns:
- the typed value or null if the given parameter type is not supported.
-
setValue
Sets a typed value.- Parameters:
aType- The type of the valueaValue- The value
-
getAdditionalInfoList
Gets the list ofAdditional Informations.- Returns:
- The list of Additional Informations
-
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
-