Package com.flower.docs.domain.document
Class Document
- java.lang.Object
-
- com.flower.docs.domain.common.IdentifiableElement
-
- com.flower.docs.domain.component.Component
-
- com.flower.docs.domain.component.Item
-
- com.flower.docs.domain.component.Version
-
- com.flower.docs.domain.document.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> <complexType> <complexContent> <extension base="{http://flower.com/docs/domain/component}Version"> <sequence> <element name="version" type="{http://www.w3.org/2001/XMLSchema}integer"/> <element name="mimeType" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="parentId" type="{http://flower.com/docs/domain/common}Id"/> <element name="files" type="{http://flower.com/docs/domain/file}DocumentFile" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType> </pre>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<DocumentFile>filesprotected java.lang.StringmimeTypeprotected IdparentIdprotected java.math.BigIntegerversion-
Fields inherited from class com.flower.docs.domain.component.Version
currentVersion, versionLabel, versionSeriesId
-
Fields inherited from class com.flower.docs.domain.common.IdentifiableElement
id
-
-
Constructor Summary
Constructors Constructor Description Document()Default no-arg constructor abcDocument(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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.util.List<DocumentFile>getFiles()Gets the value of the files property.java.lang.StringgetMimeType()Gets the value of the mimeType property.IdgetParentId()Gets the value of the parentId property.java.math.BigIntegergetVersion()Gets the value of the version property.inthashCode()voidsetFiles(java.util.List<DocumentFile> value)voidsetMimeType(java.lang.String value)Sets the value of the mimeType property.voidsetParentId(Id value)Sets the value of the parentId property.voidsetVersion(java.math.BigInteger value)Sets the value of the version property.java.lang.StringtoString()-
Methods inherited from class com.flower.docs.domain.component.Version
getVersionLabel, getVersionSeriesId, isCurrentVersion, setCurrentVersion, setVersionLabel, setVersionSeriesId
-
Methods inherited from class com.flower.docs.domain.component.Component
getCategory, getData, getName, getTags, setCategory, setData, setName, setTags
-
Methods inherited from class com.flower.docs.domain.common.IdentifiableElement
getId, setId
-
-
-
-
Field Detail
-
version
protected java.math.BigInteger version
-
mimeType
protected java.lang.String mimeType
-
parentId
protected Id parentId
-
files
protected java.util.List<DocumentFile> files
-
-
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 isBigInteger
-
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 isString
-
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 isId
-
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 listDocumentFile
-
setFiles
public void setFiles(java.util.List<DocumentFile> value)
-
-