|
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.FileEnvelope
public class FileEnvelope
This class is used for save in and load from file a set of XMLMarshallable objects.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="objectSet">
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="version" type="xs:string"/>
</xs:complexType>
</xs:element>
| Constructor Summary | |
|---|---|
FileEnvelope()
Creates a new FileEnvelope using the current SAP Convergent Charging version. |
|
FileEnvelope(java.lang.String version)
Creates a new FileEnvelope using the given String as version. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
void |
addElement(XMLMarshallable element)
Adds an element. |
java.lang.Class<?> |
getClass(java.lang.String nsUri,
java.lang.String tag,
XMLAttributes atts)
Returns the Java class for a specified XML tag and its attributes in a namespace. |
XMLMarshallable |
getElement(int i)
Returns the element at the specified index. |
java.util.Vector<XMLMarshallable> |
getElements()
Returns the Vector of elements. |
int |
getLength()
Returns the number of elements embedded in this. |
java.lang.String |
getVersion()
Returns the version used for this. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setVersion(java.lang.String version)
Sets the version to be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileEnvelope()
FileEnvelope using the current SAP Convergent Charging version.
Versionpublic FileEnvelope(java.lang.String version)
FileEnvelope using the given String as version.
version - the version to be used.| Method Detail |
|---|
public int getLength()
public void addElement(XMLMarshallable element)
element - the XMLMarshallable object to be added.public XMLMarshallable getElement(int i)
i - the index of the element to retrieve.
public java.util.Vector<XMLMarshallable> getElements()
Vector of elements.
XMLMarshallable elements.public void setVersion(java.lang.String version)
version - the version to be used.public java.lang.String getVersion()
version field.public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
public java.lang.Class<?> getClass(java.lang.String nsUri,
java.lang.String tag,
XMLAttributes atts)
XMLMappingJava class for a specified XML tag and its attributes in a namespace.
getClass in interface XMLMappingnsUri - The unique resource identifier of the namespace of the XML tagtag - The local part of the XML tagatts - The attributes of the XML tag
Java class with a default constructor
|
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 | ||||||||