public class TranslateValueOp extends java.lang.Object implements MessageOperation
If the translation table does not exist, the connected SAP CC system launches
a DoesNotExistException.
TranslateValueResult The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="translate">
<xs:complexType>
<xs:attribute name="tableCode" type="xs:string"/>
<xs:attribute name="operator" type="xs:string"/>
<xs:attribute name="date" type="xs:dateTime"/>
<xs:attribute name="referenceDate" type="xs:dateTime" use="optional" />
<xs:attribute name="i0" type="xs:string"/>
<xs:attribute name="i1" type="xs:string"/>
<xs:attribute name="i2" type="xs:string"/>
<xs:attribute name="i3" type="xs:string"/>
<xs:attribute name="i4" type="xs:string"/>
</xs:complexType>
</xs:element>
You can send this operation request in HCI messages to the following final target types of instances in the connected SAP CC system:
| Edition | Final Target Instances | |||||
| rater | updater | guider | bulkLoader | taxer | dispatcher | |
| charge | No | Yes | No | No | No | No |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OPERATION_NAME |
| Constructor and Description |
|---|
TranslateValueOp()
Builds an empty operation.
|
| 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.util.Date |
getDate()
Returns the date used for the translate operation.
|
java.lang.String |
getInValue(int i)
Returns the input value used for the translate operation.
|
java.lang.String |
getName()
The name of the operation is "translate".
|
int |
getOperator()
Gets the operator.
|
java.util.Date |
getReferenceDate()
Returns the reference date, it used to check column "start date" and column "end date".
|
java.lang.String |
getTableCode()
Returns the translation table code used for the translate operation.
|
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 |
setDate(java.util.Date d)
Sets the date used for the translate operation.
|
void |
setInValue(int i,
java.lang.String v)
Sets the input value used for the translate operation.
|
void |
setOperator(int o)
Sets the operator.
|
void |
setReferenceDate(java.util.Date d)
Sets the reference date is used to check column "start date" and column "end date".
|
void |
setTableCode(java.lang.String table)
Sets the translation table code used for the translate operation.
|
public static final java.lang.String OPERATION_NAME
public java.lang.String getName()
getName in interface MessageOperationpublic java.lang.String getTableCode()
public void setTableCode(java.lang.String table)
table - The translation table code used for the translate operationpublic java.util.Date getDate()
public void setDate(java.util.Date d)
d - The date used for the translate operationpublic java.util.Date getReferenceDate()
public void setReferenceDate(java.util.Date d)
d - The date used for the translate operationpublic int getOperator()
public void setOperator(int o)
o - The operatorpublic java.lang.String getInValue(int i)
i - The rank of the input value to returnpublic void setInValue(int i,
java.lang.String v)
i - The rank of the input value to setv - The value used for the translate operationpublic 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