|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.RateModel
com.highdeal.pnr.hci.OneShotRateModel
public class OneShotRateModel
This class represents a one shot rate that applies on a particular internal event, such as subscription (for setup fees) or cancellation.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:simpleType name="oneShotName">
<xs:restriction base="xs:string">
<xs:enumeration value="_subscription_event_"/>
<xs:enumeration value="_cancellation_event_"/>
<xs:enumeration value="_early_cancellation_event_"/>
<xs:enumeration value="_suspension_event_"/>
<xs:enumeration value="_resumption_event_"/>
<xs:enumeration value="_any_propagated_event_"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="oneShot">
<xs:complexType>
<xs:sequence>
<xs:element ref="component" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="eventName" type="oneShotName" use="required"/>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
static java.lang.String |
ANY_PROPAGATED_EVENT
Event name for one-time event from a master business relationship. |
static java.lang.String |
CANCELLATION_EVENT
Event name for the cancellation. |
static java.lang.String |
EARLY_CANCELLATION_EVENT
Event name for the early cancellation. |
static java.lang.String |
RESUMPTION_EVENT
Event name for the resumption. |
static java.lang.String |
SUBSCRIPTION_EVENT
Event name for the subscription. |
static java.lang.String |
SUSPENSION_EVENT
Event name for the suspension. |
static java.lang.String |
TAG_NAME
The value of that constant is the XML tag name of the one shot rate. |
| Constructor Summary | |
|---|---|
OneShotRateModel()
|
|
| Method Summary | |
|---|---|
boolean |
checkValidity()
Returns true if the one shot rate is valid. |
java.util.Vector<java.lang.String> |
getAvailableEventNames()
Gets available event names. |
RatingContextDescription |
getContext(ContextualNode child)
Gets the context for the specified child. |
static java.util.Vector<PropertyDescriptionModel> |
getDefaultPropertyDescriptions(java.lang.String eventName)
Returns the descriptions for the default property according to the type of the event for one shot rates. |
java.lang.String |
getEventName()
Gets the name of the event that this one shot rate charges. |
protected java.lang.String |
getEventNameFromAttributeName(java.lang.String attributeEventName)
Get the event name of this one shot rate according to the specified xml attribute. |
protected java.lang.String |
getTagName()
Returns the tag nameof this model. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
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 |
setEventName(java.lang.String name)
Sets the name of the event that this one shot rate charges. |
| Methods inherited from class com.highdeal.pnr.hci.RateModel |
|---|
addCharacterData, addChild, getDescription, getName, getParent, getRateComponent, inheritedContext, marshalAttributes, remove, setDescription, setName, setParent, setRateComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SUBSCRIPTION_EVENT
public static final java.lang.String CANCELLATION_EVENT
public static final java.lang.String EARLY_CANCELLATION_EVENT
public static final java.lang.String SUSPENSION_EVENT
public static final java.lang.String RESUMPTION_EVENT
public static final java.lang.String ANY_PROPAGATED_EVENT
public static final java.lang.String TAG_NAME
| Constructor Detail |
|---|
public OneShotRateModel()
| Method Detail |
|---|
public java.lang.String getEventName()
public void setEventName(java.lang.String name)
name - the name of the event.
Allowed values are :
public boolean checkValidity()
checkValidity in class RateModelpublic RatingContextDescription getContext(ContextualNode child)
child - the child node
public java.util.Vector<java.lang.String> getAvailableEventNames()
String containing all available event names.public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallablesetAttributes in class RateModelatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface IXMLMarshallablemarshal in interface XMLMarshallablemarshal in class RateModeloutput - The XML output to marshal the object intoprotected java.lang.String getTagName()
TAG_NAMEprotected java.lang.String getEventNameFromAttributeName(java.lang.String attributeEventName)
attributeEventName - the name of the xml attribute
public void marshalChildren(XMLOutputter output)
IXMLMarshallable
marshalChildren in interface IXMLMarshallablemarshalChildren in class RateModeloutput - The XML output to marshal the child objects intopublic static java.util.Vector<PropertyDescriptionModel> getDefaultPropertyDescriptions(java.lang.String eventName)
PropertyDescriptionModel.
eventName - the name of the event.
property description models.
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||