public class ChargingContractItemSharedCounterModel extends HCIModelAdapter
ChargingContractItemSharedCounterModel enables to flag a counter that comes from the
associated ChargePlanModel as shared. It means that the counter will be grouped with other shared or pooled counters
from different ChargingContractItemModel. Counters are grouped according to the concatenation of their "namespace + name"
(namespace could be empty).
The real shared counter that represent all counters within the same groups in the Charging Contract Item is named:
It is composed of:
name which identifies the counter inside the associated Charge Plan Model.namespace which is a string and enables to group counters with the same name in different contexts.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="ChargingContractItemSharedCounterType"> <xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="namespace" type="xs:string" /> </xs:complexType>
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The value XML tag name of the Charging Contract Item Shared Counter Model
|
| Constructor and Description |
|---|
ChargingContractItemSharedCounterModel() |
| 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. |
String |
getName()
Gets the
name which identifies only one counter inside the Charging Contract Item. |
String |
getNamespace()
Gets the
namespace which defines a group of counters among Charging Contract Items. |
String |
getTagName()
Gets the XML tag name of the HCI model.
|
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 |
setName(String name)
Sets the
name which identifies only one counter inside the Charging Contract Item. |
void |
setNamespace(String namespace)
Sets the
namespace which defines a group of counters among Charging Contract Items. |
marshalpublic static final String TAG_NAME
public ChargingContractItemSharedCounterModel()
public String getName()
name which identifies only one counter inside the Charging Contract Item.name which identifies only one counter inside the Charging Contract Item.public void setName(String name)
name which identifies only one counter inside the Charging Contract Item.name - the name which identifies only one counter inside the Charging Contract Item.public String getNamespace()
namespace which defines a group of counters among Charging Contract Items.
An empty namespace defines the default group of counters.namespace which defines a group of counters among Charging Contract Items.public void setNamespace(String namespace)
namespace which defines a group of counters among Charging Contract Items.
An empty namespace defines the default group of counters.namespace - the namespace which defines a group of counters among Charging Contract Items.public String getTagName()
ITagNameProviderpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the child objects intopublic void addCharacterData(String cData)
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.tagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current element