Class Version

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Document

    public class Version
    extends Item
    implements java.io.Serializable
    Version of a component <p>Java class for Version complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="Version"&gt; &lt;complexContent&gt; &lt;extension base="{http://flower.com/docs/domain/component}Item"&gt; &lt;sequence&gt; &lt;element name="versionSeriesId" type="{http://flower.com/docs/domain/common}Id"/&gt; &lt;/sequence&gt; &lt;attribute name="versionLabel" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt; &lt;attribute name="currentVersion" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
    See Also:
    Serialized Form
    • Field Detail

      • versionSeriesId

        protected Id versionSeriesId
        Identifier of version series
      • versionLabel

        protected java.lang.String versionLabel
        Label of the version which changes each time a new version is created
      • currentVersion

        protected java.lang.Boolean currentVersion
        Determines if it is the current version
    • Constructor Detail

      • Version

        public Version()
        Default no-arg constructor abc
      • Version

        public Version​(Id id,
                       ComponentData data,
                       Tags tags,
                       Category category,
                       java.lang.String name,
                       Id versionSeriesId,
                       java.lang.String versionLabel,
                       java.lang.Boolean currentVersion)
        Fully-initialising value constructor
    • Method Detail

      • getVersionSeriesId

        public Id getVersionSeriesId()
        Gets the value of the versionSeriesId property. <p> Identifier of version series
        Returns:
        possible object is Id
      • setVersionSeriesId

        public void setVersionSeriesId​(Id value)
        Sets the value of the versionSeriesId property.
        Parameters:
        value - allowed object is Id
        See Also:
        getVersionSeriesId()
      • getVersionLabel

        public java.lang.String getVersionLabel()
        Gets the value of the versionLabel property. <p> Label of the version which changes each time a new version is created
        Returns:
        possible object is String
      • setVersionLabel

        public void setVersionLabel​(java.lang.String value)
        Sets the value of the versionLabel property.
        Parameters:
        value - allowed object is String
        See Also:
        getVersionLabel()
      • isCurrentVersion

        public boolean isCurrentVersion()
        Gets the value of the currentVersion property. <p> Determines if it is the current version
        Returns:
        possible object is Boolean
      • setCurrentVersion

        public void setCurrentVersion​(java.lang.Boolean value)
        Sets the value of the currentVersion property.
        Parameters:
        value - allowed object is Boolean
        See Also:
        isCurrentVersion()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Item
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Item
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class Item