Class Document

  • All Implemented Interfaces:
    java.io.Serializable

    public class Document
    extends Version
    implements java.io.Serializable
    Flower component standing for a document <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{http://flower.com/docs/domain/component}Version"&gt; &lt;sequence&gt; &lt;element name="version" type="{http://www.w3.org/2001/XMLSchema}integer"/&gt; &lt;element name="mimeType" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="parentId" type="{http://flower.com/docs/domain/common}Id"/&gt; &lt;element name="files" type="{http://flower.com/docs/domain/file}DocumentFile" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
    See Also:
    Serialized Form
    • Field Detail

      • version

        protected java.math.BigInteger version
      • mimeType

        protected java.lang.String mimeType
      • parentId

        protected Id parentId
    • Constructor Detail

      • Document

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

        public Document​(Id id,
                        ComponentData data,
                        Tags tags,
                        Category category,
                        java.lang.String name,
                        Id versionSeriesId,
                        java.lang.String versionLabel,
                        java.lang.Boolean currentVersion,
                        java.math.BigInteger version,
                        java.lang.String mimeType,
                        Id parentId,
                        java.util.List<DocumentFile> files)
        Fully-initialising value constructor
    • Method Detail

      • getVersion

        public java.math.BigInteger getVersion()
        Gets the value of the version property.
        Returns:
        possible object is BigInteger
      • setVersion

        public void setVersion​(java.math.BigInteger value)
        Sets the value of the version property.
        Parameters:
        value - allowed object is BigInteger
      • getMimeType

        public java.lang.String getMimeType()
        Gets the value of the mimeType property.
        Returns:
        possible object is String
      • setMimeType

        public void setMimeType​(java.lang.String value)
        Sets the value of the mimeType property.
        Parameters:
        value - allowed object is String
      • getParentId

        public Id getParentId()
        Gets the value of the parentId property.
        Returns:
        possible object is Id
      • setParentId

        public void setParentId​(Id value)
        Sets the value of the parentId property.
        Parameters:
        value - allowed object is Id
      • getFiles

        public java.util.List<DocumentFile> getFiles()
        Gets the value of the files property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the files property. <p> For example, to add a new item, do as follows: <pre> getFiles().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list DocumentFile
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Version
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class Version
      • setFiles

        public void setFiles​(java.util.List<DocumentFile> value)