Package com.highdeal.contract.hci
Class ChargingContractItemPooledCounterModel
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.contract.hci.ChargingContractItemSharedCounterModel
com.highdeal.contract.hci.ChargingContractItemPooledCounterModel
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMarshallable
The
ChargingContractItemPooledCounterModel enables to flag a counter that comes from the
associated ChargePlanModel as pooled. 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 pooled counter that represent all counters within the same groups in the Charging Contract Item is named:
- namespace + "." + name (if namespace is not empty)
- name (if namespace is empty)
It is composed of:
- A
namewhich identifies the counter inside the associated Charge Plan Model. - A
namespacewhich is a string and enables to group counters with the same name in different contexts.
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="ChargingContractItemPooledCounterType"> <xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="namespace" type="xs:string" /> </xs:complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.highdeal.contract.hci.ChargingContractItemSharedCounterModel
addCharacterData, addChild, getName, getNamespace, marshalAttributes, marshalChildren, setAttributes, setName, setNamespaceMethods 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 Pooled Counter Model.- See Also:
-
-
Constructor Details
-
ChargingContractItemPooledCounterModel
public ChargingContractItemPooledCounterModel()
-
-
Method Details
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Specified by:
getTagNamein interfaceITagNameProvider- Overrides:
getTagNamein classChargingContractItemSharedCounterModel- Returns:
- The XML tag name
-