Class Revisions

    • Constructor Detail

      • Revisions

        public Revisions()
        Default constructor. Creates a new Revisions object.
      • Revisions

        public Revisions​(String appliesTo)
        Creates a new Revisions object.
        Parameters:
        appliesTo - the value for the REQUIRED attribute appliesTo.
        See Also:
        setAppliesTo(String)
      • Revisions

        public Revisions​(Revisions original)
        Creates a copy of an existing Revisions object
        Parameters:
        original - the existing object to duplicate
    • Method Detail

      • setAppliesTo

        public final void setAppliesTo​(String appliesTo)
        Sets the value to the 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.
        Parameters:
        appliesTo - the value for the appliesTo attribute.
      • getAppliesTo

        public String getAppliesTo()
        Gets the value of the appliesTo attribute.
        Returns:
        the value of the appliesTo attribute.
      • setRef

        public void setRef​(String ref)
        Sets the value for the ref attribute.
        Parameters:
        ref - the value for the ref attribute.
      • getRef

        public String getRef()
        Gets the value for the ref attribute.
        Returns:
        the value for the ref attribute (can be null).
      • setCurrentVersion

        public void setCurrentVersion​(String currentVersion)
        Sets the value of the currentVersion attribute.
        Parameters:
        currentVersion - must be the value of the version attribute of one of the revision elements listed in the same revisions element.
      • getCurrentVersion

        public String getCurrentVersion()
        Gets the value of the currentVersion attribute.
        Returns:
        the value of the currentVersion attribute.
      • hasExtAttribute

        public boolean hasExtAttribute()
        Description copied from interface: IWithExtAttributes
        Indicates if at least one extension attribute is present.
        Specified by:
        hasExtAttribute in interface IWithExtAttributes
        Returns:
        true if at least one extension attribute is present; false otherwise.
      • getExtAttributeValue

        public String getExtAttributeValue​(String namespaceURI,
                                           String localName)
        Description copied from interface: IWithExtAttributes
        Gets the value for a given extension attribute.
        Specified by:
        getExtAttributeValue in interface IWithExtAttributes
        Parameters:
        namespaceURI - the URI of the namespace for the attribute.
        localName - the name of the attribute.
        Returns:
        the value of the extension attribute, or null if it does not exist.
      • getOpeningTagName

        public String getOpeningTagName()
        Gets the opening revisions tag name.
        Returns:
        the opening revisions tag name.
      • getAttributesString

        public String getAttributesString()
        Gets the attributes string.
        Returns:
        the attributes string.
      • getClosingTagName

        public String getClosingTagName()
        Gets the closing changeTrack tag name.
        Returns:
        the closing changeTrack tag name.
      • getCompleteOpeningTag

        public String getCompleteOpeningTag()
        Gets the complete revisions opening tag.
        Returns:
        the complete revisions opening tag.
      • getClosingTag

        public String getClosingTag()
        Gets the complete revisions closing tag.
        Returns:
        the complete revisions closing tag.