public class Revisions extends BaseList<Revision> implements IWithExtAttributes
<revisions> element of the ChangeTracking module.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APPLIES_TO_ATTR_NAME
appliesTo attribute name. |
static java.lang.String |
CURRENT_VERSION_ATTR_NAME
currentVersion attribute name. |
static java.lang.String |
REF_ATTR_NAME
ref attribute name. |
static java.lang.String |
TAG_NAME
The tag element name constant.
|
| Constructor and Description |
|---|
Revisions()
Default constructor.
|
Revisions(Revisions original)
Creates a copy of an existing
Revisions object |
Revisions(java.lang.String appliesTo)
Creates a new
Revisions object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAppliesTo()
Gets the value of the appliesTo attribute.
|
java.lang.String |
getAttributesString()
Gets the attributes string.
|
java.lang.String |
getClosingTag()
Gets the complete
revisions closing tag. |
java.lang.String |
getClosingTagName()
Gets the closing
changeTrack tag name. |
java.lang.String |
getCompleteOpeningTag()
Gets the complete
revisions opening tag. |
java.lang.String |
getCurrentVersion()
Gets the value of the
currentVersion attribute. |
ExtAttributes |
getExtAttributes()
Gets the
ExtAttributes object for the parent object. |
java.lang.String |
getExtAttributeValue(java.lang.String namespaceURI,
java.lang.String localName)
Gets the value for a given extension attribute.
|
java.lang.String |
getOpeningTagName()
Gets the opening
revisions tag name. |
java.lang.String |
getRef()
Gets the value for the ref attribute.
|
boolean |
hasExtAttribute()
Indicates if at least one extension attribute is present.
|
void |
setAppliesTo(java.lang.String appliesTo)
Sets the value to the
appliesTo attribute. |
void |
setCurrentVersion(java.lang.String currentVersion)
Sets the value of the
currentVersion attribute. |
void |
setExtAttributes(ExtAttributes attributes)
Sets the
ExtAttributes object associated with this object. |
void |
setRef(java.lang.String ref)
Sets the value for the ref attribute.
|
public static final java.lang.String TAG_NAME
public static final java.lang.String APPLIES_TO_ATTR_NAME
appliesTo attribute name.public static final java.lang.String REF_ATTR_NAME
ref attribute name.public static final java.lang.String CURRENT_VERSION_ATTR_NAME
currentVersion attribute name.public Revisions()
Revisions object.public Revisions(java.lang.String appliesTo)
Revisions object.appliesTo - the value for the REQUIRED attribute appliesTo.setAppliesTo(String)public final void setAppliesTo(java.lang.String appliesTo)
appliesTo attribute. It must be the
name of any valid XLIFF element which is a sibling, or a child of a
sibling element, to the change track module within the scope of the
enclosing element. If a null or empty string is provided, an
IllegalArgumentException is thrown.appliesTo - the value for the appliesTo attribute.public java.lang.String getAppliesTo()
public void setRef(java.lang.String ref)
ref - the value for the ref attribute.public java.lang.String getRef()
public void setCurrentVersion(java.lang.String currentVersion)
currentVersion attribute.currentVersion - must be the value of the version attribute of one
of the revision elements listed in the same
revisions element.public java.lang.String getCurrentVersion()
currentVersion attribute.currentVersion attribute.public ExtAttributes getExtAttributes()
IWithExtAttributesExtAttributes object for the parent object.
If none exists, one is created.getExtAttributes in interface IWithExtAttributesExtAttributes object for the parent object, never null.public void setExtAttributes(ExtAttributes attributes)
IWithExtAttributesExtAttributes object associated with this object.setExtAttributes in interface IWithExtAttributesattributes - the ExtAttributes object associated with this object.
If null, a new ExtAttributes object is created.public boolean hasExtAttribute()
IWithExtAttributeshasExtAttribute in interface IWithExtAttributespublic java.lang.String getExtAttributeValue(java.lang.String namespaceURI,
java.lang.String localName)
IWithExtAttributesgetExtAttributeValue in interface IWithExtAttributesnamespaceURI - the URI of the namespace for the attribute.localName - the name of the attribute.public java.lang.String getOpeningTagName()
revisions tag name.revisions tag name.public java.lang.String getAttributesString()
public java.lang.String getClosingTagName()
changeTrack tag name.changeTrack tag name.public java.lang.String getCompleteOpeningTag()
revisions opening tag.revisions opening tag.public java.lang.String getClosingTag()
revisions closing tag.revisions closing tag.