public class TranslationRowModel extends Object implements XMLMarshallable
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="row">
<xs:complexType>
<xs:attribute name="i0" type="xs:string" use="optional"/>
<xs:attribute name="i1" type="xs:string" use="optional"/>
<xs:attribute name="i2" type="xs:string" use="optional"/>
<xs:attribute name="i3" type="xs:string" use="optional"/>
<xs:attribute name="i4" type="xs:string" use="optional"/>
<xs:attribute name="sd" type="xs:dateTime" use="optional" />
<xs:attribute name="ed" type="xs:dateTime" use="optional" />
<xs:attribute name="s0" type="xs:string" use="optional"/>
<xs:attribute name="n0" type="xs:decimal" use="optional"/>
<xs:attribute name="s1" type="xs:string" use="optional"/>
<xs:attribute name="n1" type="xs:decimal" use="optional"/>
<xs:attribute name="s2" type="xs:string" use="optional"/>
<xs:attribute name="n2" type="xs:decimal" use="optional"/>
<xs:attribute name="s3" type="xs:string" use="optional"/>
<xs:attribute name="n3" type="xs:decimal" use="optional"/>
<xs:attribute name="s4" type="xs:string" use="optional"/>
<xs:attribute name="n4" type="xs:decimal" use="optional"/>
<xs:attribute name="s5" type="xs:string" use="optional"/>
<xs:attribute name="n5" type="xs:decimal" use="optional"/>
<xs:attribute name="s6" type="xs:string" use="optional"/>
<xs:attribute name="n6" type="xs:decimal" use="optional"/>
<xs:attribute name="s7" type="xs:string" use="optional"/>
<xs:attribute name="n7" type="xs:decimal" use="optional"/>
<xs:attribute name="s8" type="xs:string" use="optional"/>
<xs:attribute name="n8" type="xs:decimal" use="optional"/>
<xs:attribute name="s9" type="xs:string" use="optional"/>
<xs:attribute name="n9" type="xs:decimal" use="optional"/>
<xs:attribute name="s10" type="xs:string" use="optional"/>
<xs:attribute name="n10" type="xs:decimal" use="optional"/>
<xs:attribute name="s11" type="xs:string" use="optional"/>
<xs:attribute name="n11" type="xs:decimal" use="optional"/>
<xs:attribute name="s12" type="xs:string" use="optional"/>
<xs:attribute name="n12" type="xs:decimal" use="optional"/>
<xs:attribute name="s13" type="xs:string" use="optional"/>
<xs:attribute name="n13" type="xs:decimal" use="optional"/>
<xs:attribute name="s14" type="xs:string" use="optional"/>
<xs:attribute name="n14" type="xs:decimal" use="optional"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
TranslationRowModel()
Builds an empty TranslationRowModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
Date |
getEndDate()
Returns the end date for this row.
|
boolean |
getIfDatesAreUsed() |
String |
getInValue(int inIndex)
Returns the input value from an index.
|
Object |
getOutValue(int outIndex)
Returns the output value from an index.
|
Date |
getStartDate()
Returns the start date for this row.
|
boolean |
isValid(Vector<OutAttributeModel> outAttributes)
Returns true if the translation row is valid.
|
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 |
setEndDate(Date d)
Sets the end date for this row.
|
void |
setInValue(int inIndex,
String value)
Sets the input value at an index.
|
void |
setOutValue(int outIndex,
Object value)
Sets the output value at an index.
|
void |
setStartDate(Date d)
Sets the start date for this row.
|
public TranslationRowModel()
public String getInValue(int inIndex)
inIndex - the index.public void setInValue(int inIndex,
String value)
inIndex - the index.value - the input value.public Date getStartDate()
public void setStartDate(Date d)
d - The start date for this row.public Date getEndDate()
public void setEndDate(Date d)
d - The end date for this row.public Object getOutValue(int outIndex)
outIndex - the index.public void setOutValue(int outIndex,
Object value)
outIndex - the index.value - the output value.public boolean isValid(Vector<OutAttributeModel> outAttributes)
outAttributes - a Vector of OutAttributeModel representing out attribute format.public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic boolean getIfDatesAreUsed()
public void addChild(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(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