public class StartXliffData extends DataWithExtAttributes
| Constructor and Description |
|---|
StartXliffData(java.lang.String version)
Creates a
StartXliffData object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getSourceLanguage()
Gets the language code of the source for this document.
|
java.lang.String |
getTargetLanguage()
Gets the target language of the document.
|
java.lang.String |
getVersion()
Gets the version of this document.
|
void |
setNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
Sets a namespace declaration for this document.
|
void |
setSourceLanguage(java.lang.String sourceLang)
Sets the source language of the document.
|
void |
setTargetLanguage(java.lang.String targetLang)
Sets the target language for this document.
|
getExtAttributes, getExtAttributeValue, hasExtAttribute, setExtAttributespublic StartXliffData(java.lang.String version)
StartXliffData object.version - the version of the XLIFF document, use null to get the default.public java.lang.String getVersion()
public java.lang.String getSourceLanguage()
public void setSourceLanguage(java.lang.String sourceLang)
sourceLang - the source language to set (must not be null).InvalidParameterException - if the language code is invalid.public java.lang.String getTargetLanguage()
public void setTargetLanguage(java.lang.String targetLang)
targetLang - the target language to set (can be null).InvalidParameterException - if the language code is invalid.public void setNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
prefix - the prefix to use for the namespace.namespaceURI - the namespace URI.