public class Revisions extends BaseList<Revision> implements IWithExtAttributes
<revisions> element of the ChangeTracking module.| Modifier and Type | Field and Description |
|---|---|
static String |
APPLIES_TO_ATTR_NAME
appliesTo attribute name. |
static String |
CURRENT_VERSION_ATTR_NAME
currentVersion attribute name. |
static String |
REF_ATTR_NAME
ref attribute name. |
static 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(String appliesTo)
Creates a new
Revisions object. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppliesTo()
Gets the value of the appliesTo attribute.
|
String |
getAttributesString()
Gets the attributes string.
|
String |
getClosingTag()
Gets the complete
revisions closing tag. |
String |
getClosingTagName()
Gets the closing
changeTrack tag name. |
String |
getCompleteOpeningTag()
Gets the complete
revisions opening tag. |
String |
getCurrentVersion()
Gets the value of the
currentVersion attribute. |
ExtAttributes |
getExtAttributes()
Gets the
ExtAttributes object for the parent object. |
String |
getExtAttributeValue(String namespaceURI,
String localName)
Gets the value for a given extension attribute.
|
String |
getOpeningTagName()
Gets the opening
revisions tag name. |
String |
getRef()
Gets the value for the ref attribute.
|
boolean |
hasExtAttribute()
Indicates if at least one extension attribute is present.
|
void |
setAppliesTo(String appliesTo)
Sets the value to the
appliesTo attribute. |
void |
setCurrentVersion(String currentVersion)
Sets the value of the
currentVersion attribute. |
void |
setExtAttributes(ExtAttributes attributes)
Sets the
ExtAttributes object associated with this object. |
void |
setRef(String ref)
Sets the value for the ref attribute.
|
add, clear, get, isEmpty, iterator, remove, remove, set, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final String TAG_NAME
public static final String APPLIES_TO_ATTR_NAME
appliesTo attribute name.public static final String REF_ATTR_NAME
ref attribute name.public static final String CURRENT_VERSION_ATTR_NAME
currentVersion attribute name.public Revisions()
Revisions object.public Revisions(String appliesTo)
Revisions object.appliesTo - the value for the REQUIRED attribute appliesTo.setAppliesTo(String)public final void setAppliesTo(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 String getAppliesTo()
public void setRef(String ref)
ref - the value for the ref attribute.public String getRef()
public void setCurrentVersion(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 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 String getExtAttributeValue(String namespaceURI, String localName)
IWithExtAttributesgetExtAttributeValue in interface IWithExtAttributesnamespaceURI - the URI of the namespace for the attribute.localName - the name of the attribute.public String getOpeningTagName()
revisions tag name.revisions tag name.public String getAttributesString()
public String getClosingTagName()
changeTrack tag name.changeTrack tag name.public String getCompleteOpeningTag()
revisions opening tag.revisions opening tag.public String getClosingTag()
revisions closing tag.revisions closing tag.Copyright © 2020. All rights reserved.