public class TransServType extends java.lang.Object implements XMLMarshallable
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="transServType">
<xs:complexType>
<xs:attribute name="transactionType" type="xs:integer" use="required"/>
<xs:attribute name="serviceType" type="xs:integer" use="required"/>
<xs:attribute name="transactionLabel" type="xs:string" use="required"/>
<xs:attribute name="serviceLabel" type="xs:string" use="required"/>
<xs:attribute name="description" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
TransServType()
Create an empty transaction/service type.
|
TransServType(int transactionType,
int serviceType,
java.lang.String transactionLabel,
java.lang.String serviceLabel,
java.lang.String description)
Create a transaction/service type.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
java.lang.String |
getDescription()
Returns the transaction/service type description.
|
java.lang.String |
getServiceLabel()
Returns the service type label.
|
int |
getServiceType()
Returns the service type number.
|
java.lang.String |
getTransactionLabel()
Returns the transaction type label.
|
int |
getTransactionType()
Returns the transaction type number.
|
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 |
setDescription(java.lang.String description)
Sets the transaction/service type description.
|
void |
setServiceLabel(java.lang.String serviceLabel)
Sets the service label.
|
void |
setServiceType(int serviceType)
Sets the service type number.
|
void |
setTransactionLabel(java.lang.String transactionLabel)
Sets the transaction type label.
|
void |
setTransactionType(int transactionType)
Sets the transaction type number.
|
java.lang.String |
toString()
Returns a string representation of the transaction/service type.
|
public TransServType()
public TransServType(int transactionType,
int serviceType,
java.lang.String transactionLabel,
java.lang.String serviceLabel,
java.lang.String description)
transactionType - the transaction type number.serviceType - the service type number.transactionLabel - the transaction type label.serviceLabel - the service type label.description - the transaction/service type description.public final int getTransactionType()
public void setTransactionType(int transactionType)
transactionType - the transaction type number.public final int getServiceType()
public void setServiceType(int serviceType)
serviceType - the service type number.public final java.lang.String getTransactionLabel()
public void setTransactionLabel(java.lang.String transactionLabel)
transactionLabel - the transaction type label.public final java.lang.String getServiceLabel()
public void setServiceLabel(java.lang.String serviceLabel)
serviceLabel - the service type label.public final java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the transaction/service type description.public java.lang.String toString()
toString in class java.lang.Objectpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic 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)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into