|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.CounterModel
public class CounterModel
This class represents a counter in a business relationship. A counter has a name and a current value.
| XML Schema Fragment |
<xs:element name="counter">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="value" type="xs:decimal"/>
</xs:complexType>
</xs:element> |
| Constructor Summary | |
|---|---|
CounterModel()
Constructs an empty counter model. |
|
CounterModel(CounterDescriptionModel counterDesc)
Constructs a counter from a Counter description |
|
CounterModel(java.lang.String name)
Constructs a counter with a name. |
|
CounterModel(java.lang.String name,
java.math.BigDecimal value)
Constructs a counter with a name and a current value. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String name,
XMLMarshallable child)
Adds a child to the objects, the child represents
the marshallable object to be added into the content tree. |
boolean |
checkValidity()
Returns true if the counter is valid. |
java.lang.String |
getName()
Returns the name of the counter. |
java.math.BigDecimal |
getValue()
Returns the value of the counter. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, and of its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the tag beeing processed. |
void |
setName(java.lang.String name)
Sets the name of the counter. |
void |
setValue(java.math.BigDecimal value)
Sets the value of the counter. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CounterModel()
public CounterModel(java.lang.String name)
name - the name of the counter.
public CounterModel(java.lang.String name,
java.math.BigDecimal value)
name - the name of the counter.value - the current value of the counter.public CounterModel(CounterDescriptionModel counterDesc)
counterDesc - the description of the counter.| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the counter.public java.math.BigDecimal getValue()
public void setValue(java.math.BigDecimal value)
value - the value of the counter.public boolean checkValidity()
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - the XML attributes of the current tag.
public void addChild(java.lang.String name,
XMLMarshallable child)
XMLMarshallablechild represents
the marshallable object to be added into the content tree.
addChild in interface XMLMarshallablename - the name of tag for the child.child - the child to be added.public void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - the character data to be added.public void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - the XML output to marshall the object into.public java.lang.String toString()
toString in class java.lang.Object
|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2
(c) Copyright 2009 SAP AG. All rights reserved.