public class SearchCodeResult extends java.lang.Object implements OperationResult
Search Code operation. SearchCodeOp The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="searchCodeResult">
<xs:complexType>
<xs:sequence>
<xs:element ref="objectCode" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="objectCode">
<xs:complexType>
<xs:attribute name="code" type="xs:string"/>
<xs:attribute name="subCode" type="xs:string"/>
<xs:attribute name="modelCompatibility">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="offer"/>
<xs:enumeration value="chargePlan"/>
<xs:enumeration value="allowancePlan"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
| Modifier and Type | Class and Description |
|---|---|
static class |
SearchCodeResult.ModelCompatibility |
static class |
SearchCodeResult.ObjectCode |
| Constructor and Description |
|---|
SearchCodeResult()
Builds an empty SearchCodeResult.
|
| 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. |
void |
addCode(java.lang.String code,
SearchCodeResult.ModelCompatibility compatibility)
Deprecated.
|
void |
addObjectCode(SearchCodeResult.ObjectCode obj) |
java.util.Vector<java.lang.String> |
getCodes()
Deprecated.
|
java.util.Vector<SearchCodeResult.ModelCompatibility> |
getModelCompatiblity()
Deprecated.
|
java.util.List<SearchCodeResult.ObjectCode> |
getObjectCodes() |
java.lang.String |
getOperandReference()
Gets the code or the reference (if no code exists) that identifies the operand of the operation request;
If the operation is not auditable, the operand reference is
null. |
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.
|
public java.util.List<SearchCodeResult.ObjectCode> getObjectCodes()
public void addObjectCode(SearchCodeResult.ObjectCode obj)
@Deprecated public java.util.Vector<java.lang.String> getCodes()
string codes@Deprecated
public void addCode(java.lang.String code,
SearchCodeResult.ModelCompatibility compatibility)
@Deprecated public java.util.Vector<SearchCodeResult.ModelCompatibility> getModelCompatiblity()
public java.lang.String getOperandReference()
OperationResultnull.getOperandReference in interface OperationResultpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic 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 marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into