|
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.hci.HCIModelAdapter
com.highdeal.chrono.hci.AbstractPeriodObjectModel
public abstract class AbstractPeriodObjectModel
This abstract Java class defines a period that represents an object that is valid upon a certain period of time;
It has an XML representation.
Important Note
The timestamps can
be null, meaning that the object has no defined starting and/or ending.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="AbstractPeriodObjectType"> <xs:attribute name="start" type="xs:dateTime"/> <xs:attribute name="end" type="xs:dateTime"/> </xs:complexType>
| Field Summary | |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of the data model: "period" |
| Constructor Summary | |
|---|---|
AbstractPeriodObjectModel()
Builds an empty period object. |
|
AbstractPeriodObjectModel(java.util.Date start,
java.util.Date end)
Builds a full period object. |
|
| Method Summary | |
|---|---|
com.highdeal.util.range.TimeFrame |
asTimeFrame()
Returns this object as TimeFrame object. |
java.util.Date |
getEnd()
Returns the end date of the period. |
java.util.Date |
getStart()
Returns the start date of the period. |
java.lang.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 |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setEnd(java.util.Date end)
Sets the end date of the period. |
void |
setStart(java.util.Date start)
Sets the start date of the period. |
| Methods inherited from class com.highdeal.hci.HCIModelAdapter |
|---|
marshal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.highdeal.hci.IXMLMarshallable |
|---|
marshalChildren |
| Methods inherited from interface com.highdeal.hci.XMLMarshallable |
|---|
addCharacterData, addChild |
| Field Detail |
|---|
public static final java.lang.String TAG_NAME
| Constructor Detail |
|---|
public AbstractPeriodObjectModel()
public AbstractPeriodObjectModel(java.util.Date start,
java.util.Date end)
start - The start date for the elementend - The end date for the element| Method Detail |
|---|
public java.util.Date getStart()
IPeriodObjectModel
getStart in interface IPeriodObjectModelnull if
the element has always been validpublic void setStart(java.util.Date start)
IPeriodObjectModel
setStart in interface IPeriodObjectModelstart - The possibly null start date of the period for
the elementpublic java.util.Date getEnd()
IPeriodObjectModel
getEnd in interface IPeriodObjectModelnull if
the element will always be validpublic void setEnd(java.util.Date end)
IPeriodObjectModel
setEnd in interface IPeriodObjectModelend - The end date of the periodpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallable
marshalAttributes in interface IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic java.lang.String getTagName()
ITagNameProvider
getTagName in interface ITagNameProviderpublic com.highdeal.util.range.TimeFrame asTimeFrame()
IPeriodObjectModelTimeFrame object.
asTimeFrame in interface IPeriodObjectModelTimeFrame object.
|
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 | ||||||||