Class DocumentImpl
- java.lang.Object
-
- com.priint.pubserver.metadata.xml.base.DocumentImpl
-
- All Implemented Interfaces:
Document,java.io.Serializable
- Direct Known Subclasses:
ElementDocument,GroupDocument,ItemDocument,ManifestDocument,NoteDocument,PlaceholderDocument,SpreadDocument,W2MLDocument
public class DocumentImpl extends java.lang.Object implements java.io.Serializable, Document
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCreator()Gets the document creator.java.lang.StringgetDocumentId()Gets the document Id of this document.java.lang.StringgetDocumentName()Gets the document name.java.lang.StringgetDocumentPath()Gets the document path / parent folder.java.lang.IntegergetElementId()Gets the element Id of the content described in this XML document.java.lang.IntegergetGroupId()Gets the group Id of the content described in this XML document.java.lang.BooleangetIsConverted()Gets, whether this document has been converted, when being opened.java.lang.BooleangetIsMissingPlugIns()Gets, whether Plug-Ins where missing when generating this XML document.java.lang.BooleangetIsModified()Gets the modified state of the document, this XML document is based on.java.lang.BooleangetIsReadOnly()Gets, whether the document, this XML document is based on, is read only.java.lang.IntegergetPageId()Gets the page Id of the content described in this XML document.java.lang.IntegergetPluginRevision()Gets the revision of the application, which created this document.ScopegetRef()Gets the scope of the document, which is covered by this XML document.java.lang.IntegergetSpreadId()Gets the spread Id of the content described in this XML document.java.lang.StringgetVersion()Gets the version of the application, which created this document.voidsetCreator(java.lang.String creator)Sets the document creator.voidsetDocumentId(java.lang.String documentId)Sets the document Id of this document.voidsetDocumentName(java.lang.String documentName)Sets the document name.voidsetDocumentPath(java.lang.String documentPath)Sets the document path / parent folder.voidsetElementId(java.lang.Integer elementId)Sets the element Id of the content described in this XML document.voidsetGroupId(java.lang.Integer groupId)Sets the group Id of the content described in this XML document.voidsetIsConverted(java.lang.Boolean isConverted)Sets, whether this document has been converted, when being opened.voidsetIsMissingPlugIns(java.lang.Boolean isMissingPlugIns)Sets, whether Plug-Ins where missing when generating this XML document.voidsetIsModified(java.lang.Boolean isModified)Sets the modified state of the document, this XML document is based on.voidsetIsReadOnly(java.lang.Boolean isReadOnly)Sets, whether the document, this XML document is based on, is read only.voidsetPageId(java.lang.Integer pageId)Sets the page Id of the content described in this XML document.voidsetPluginRevision(java.lang.Integer pluginRevision)Sets the revision of the application, which created this document.voidsetRef(Scope ref)Sets the scope of the document, which is covered by this XML document.voidsetSpreadId(java.lang.Integer spreadId)Sets the spread Id of the content described in this XML document.voidsetVersion(java.lang.String version)Sets the version of the application, which created this document.
-
-
-
Method Detail
-
getVersion
public java.lang.String getVersion()
Description copied from interface:DocumentGets the version of the application, which created this document.
Gets the version of the application, which created this document.
In case of priint:pdf renderer, this is the pdf renderer version, in case of InDesign, this is the version of the priint:comet Plug-Ins (rather than the InDesign version).- Specified by:
getVersionin interfaceDocument- Returns:
- the renderer version, which created this document
-
setVersion
public void setVersion(java.lang.String version)
Description copied from interface:DocumentSets the version of the application, which created this document.
Sets the version of the application, which created this document.
See alsoDocument.getVersion().- Specified by:
setVersionin interfaceDocument- Parameters:
version- renderer version, which created this document
-
getPluginRevision
public java.lang.Integer getPluginRevision()
Description copied from interface:DocumentGets the revision of the application, which created this document.
Gets the revision of the application, which created this document.
See alsoDocument.getVersion().- Specified by:
getPluginRevisionin interfaceDocument- Returns:
- the revision of the renderer, which created this document
-
setPluginRevision
public void setPluginRevision(java.lang.Integer pluginRevision)
Description copied from interface:DocumentSets the revision of the application, which created this document.
Sets the revision of the application, which created this document.
See alsoDocument.getVersion().- Specified by:
setPluginRevisionin interfaceDocument- Parameters:
pluginRevision- the revision of the renderer, which created this document
-
getRef
public Scope getRef()
Description copied from interface:DocumentGets the scope of the document, which is covered by this XML document.
Gets the scope of the document, which is covered by this XML document.
Scope describes the region of the document, which is covered by a XML document. This could be the entire document (Scope.DOCUMENT) or a single frame (Scope.ELEMENT) or any other of the values defined by this enumeration.
-
setRef
public void setRef(Scope ref)
Description copied from interface:DocumentSets the scope of the document, which is covered by this XML document.
Sets the scope of the document, which is covered by this XML document.
See alsoDocument.getRef()
-
getDocumentId
public java.lang.String getDocumentId()
Description copied from interface:DocumentGets the document Id of this document.
Gets the document Id of this document.
There is no formal requirement for the Id of a document, however it should be possible to identify this document using this Id e.g. in a publication or document management system.- Specified by:
getDocumentIdin interfaceDocument- Returns:
- Id of this document
-
setDocumentId
public void setDocumentId(java.lang.String documentId)
Description copied from interface:DocumentSets the document Id of this document.
Sets the document Id of this document.
There is no formal requirement for the Id of a document, however it should be possible to identify this document using this Id e.g. in a publication or document management system.- Specified by:
setDocumentIdin interfaceDocument- Parameters:
documentId- Id of this document
-
getSpreadId
public java.lang.Integer getSpreadId()
Description copied from interface:DocumentGets the spread Id of the content described in this XML document.
Gets the spread Id of the content described in this XML document.
If the scope (seeDocument.getRef()of this XML document is a document spread, the spread Id is the index (zero based) of the spread contained in this XML document.- Specified by:
getSpreadIdin interfaceDocument- Returns:
- Id (index) of the spread contained in this document
-
setSpreadId
public void setSpreadId(java.lang.Integer spreadId)
Description copied from interface:DocumentSets the spread Id of the content described in this XML document.
Sets the spread Id of the content described in this XML document.
If the scope (seeDocument.getRef()of this XML document is a document spread, the spread Id is the index (zero based) of the spread contained in this XML document.- Specified by:
setSpreadIdin interfaceDocument- Parameters:
spreadId- Id (index) of the spread contained in this document
-
getPageId
public java.lang.Integer getPageId()
Description copied from interface:DocumentGets the page Id of the content described in this XML document.
Gets the page Id of the content described in this XML document.
If the scope (seeDocument.getRef()of this XML document is a document page, the page Id is the index (zero based) of the page contained in this XML document.
-
setPageId
public void setPageId(java.lang.Integer pageId)
Description copied from interface:DocumentSets the page Id of the content described in this XML document.
Sets the page Id of the content described in this XML document.
If the scope (seeDocument.getRef()of this XML document is a document page, the page Id is the index (zero based) of the page contained in this XML document.
-
getGroupId
public java.lang.Integer getGroupId()
Description copied from interface:DocumentGets the group Id of the content described in this XML document.
Gets the group Id of the content described in this XML document.
If the scope (seeDocument.getRef()of this XML document is a comet group, the group Id is the persistent UID of the comet group contained in this XML document.- Specified by:
getGroupIdin interfaceDocument- Returns:
- persistent UID of the comet group contained in this document
-
setGroupId
public void setGroupId(java.lang.Integer groupId)
Description copied from interface:DocumentSets the group Id of the content described in this XML document.
Sets the group Id of the content described in this XML document.
If the scope (seeDocument.getRef()of this XML document is a comet group, the group Id is the persistent UID of the comet group contained in this XML document.- Specified by:
setGroupIdin interfaceDocument- Parameters:
groupId- persistent UID of the comet group contained in this document
-
getElementId
public java.lang.Integer getElementId()
Description copied from interface:DocumentGets the element Id of the content described in this XML document.
Gets the element Id of the content described in this XML document.
If the scope (seeDocument.getRef()of this XML document is an element, the element Id is the persistent UID of the element contained in this XML document.- Specified by:
getElementIdin interfaceDocument- Returns:
- persistent UID of the element contained in this document
-
setElementId
public void setElementId(java.lang.Integer elementId)
Description copied from interface:DocumentSets the element Id of the content described in this XML document.
Sets the element Id of the content described in this XML document.
If the scope (seeDocument.getRef()of this XML document is an element, the element Id is the persistent UID of the element contained in this XML document.- Specified by:
setElementIdin interfaceDocument- Parameters:
elementId- persistent UID of the element contained in this document
-
getDocumentPath
public java.lang.String getDocumentPath()
Description copied from interface:DocumentGets the document path / parent folder.
Gets the document path / parent folder of the document, this XML document is based on.
Note: the path does not contain the filename.- Specified by:
getDocumentPathin interfaceDocument- Returns:
- document path / path of parent folder
-
setDocumentPath
public void setDocumentPath(java.lang.String documentPath)
Description copied from interface:DocumentSets the document path / parent folder.
Sets the document path / parent folder of the document, this XML document is based on.
Note: the path does not contain the filename.- Specified by:
setDocumentPathin interfaceDocument- Parameters:
documentPath- document path / path of parent folder
-
getDocumentName
public java.lang.String getDocumentName()
Description copied from interface:DocumentGets the document name.
Gets the document name. This is the file system name of the document, this XML document is based on.
- Specified by:
getDocumentNamein interfaceDocument- Returns:
- name of the document, this XML document is based on.
-
setDocumentName
public void setDocumentName(java.lang.String documentName)
Description copied from interface:DocumentSets the document name.
Sets the document name. This is the file system name of the document, this XML document is based on.
- Specified by:
setDocumentNamein interfaceDocument- Parameters:
documentName- name of the document, this XML document is based on.
-
getIsMissingPlugIns
public java.lang.Boolean getIsMissingPlugIns()
Description copied from interface:DocumentGets, whether Plug-Ins where missing when generating this XML document.
Gets, whether Plug-Ins where missing when generating this XML document.
If this flag is true, the content of this XML file is likely to be incomplete.- Specified by:
getIsMissingPlugInsin interfaceDocument- Returns:
- true, if Plug-Ins where missing, false otherwise.
-
setIsMissingPlugIns
public void setIsMissingPlugIns(java.lang.Boolean isMissingPlugIns)
Description copied from interface:DocumentSets, whether Plug-Ins where missing when generating this XML document.
Sets, whether Plug-Ins where missing when generating this XML document.
If this flag is true, the content of this XML file is likely to be incomplete.- Specified by:
setIsMissingPlugInsin interfaceDocument- Parameters:
isMissingPlugIns- true, if Plug-Ins where missing, false otherwise.
-
getIsConverted
public java.lang.Boolean getIsConverted()
Description copied from interface:DocumentGets, whether this document has been converted, when being opened.
Gets, whether this document has been converted, when being opened.
This flag is true, if a document has been opened e.g. with a newer InDesign version, than it was saved last.
If this flag is true, certain properties (such as document path and name) may not be reliable.- Specified by:
getIsConvertedin interfaceDocument- Returns:
- true, if the document has been converted, false otherwise.
-
setIsConverted
public void setIsConverted(java.lang.Boolean isConverted)
Description copied from interface:DocumentSets, whether this document has been converted, when being opened.
Sets, whether this document has been converted, when being opened.
This flag is true, if a document has been opened e.g. with a newer InDesign version, than it was saved last.
If this flag is true, certain properties (such as document path and name) may not be reliable.- Specified by:
setIsConvertedin interfaceDocument- Parameters:
isConverted- true, if the document has been converted, false otherwise.
-
getIsModified
public java.lang.Boolean getIsModified()
Description copied from interface:DocumentGets the modified state of the document, this XML document is based on.
Gets the modified state of the document, this XML document is based on.
If this flag is true, the content of this XML document does not reflect the saved state of the document.- Specified by:
getIsModifiedin interfaceDocument- Returns:
- true, if the document is in modified state, false otherwise.
-
setIsModified
public void setIsModified(java.lang.Boolean isModified)
Description copied from interface:DocumentSets the modified state of the document, this XML document is based on.
Sets the modified state of the document, this XML document is based on.
If this flag is true, the content of this XML document does not reflect the saved state of the document.- Specified by:
setIsModifiedin interfaceDocument- Parameters:
isModified- true, if the document is in modified state, false otherwise.
-
getIsReadOnly
public java.lang.Boolean getIsReadOnly()
Description copied from interface:DocumentGets, whether the document, this XML document is based on, is read only.
Gets, whether the document, this XML document is based on, is read only.
- Specified by:
getIsReadOnlyin interfaceDocument- Returns:
- true, if the document is read only, false otherwise.
-
setIsReadOnly
public void setIsReadOnly(java.lang.Boolean isReadOnly)
Description copied from interface:DocumentSets, whether the document, this XML document is based on, is read only.
Sets, whether the document, this XML document is based on, is read only.
- Specified by:
setIsReadOnlyin interfaceDocument- Parameters:
isReadOnly- true, if the document is read only, false otherwise.
-
getCreator
public java.lang.String getCreator()
Description copied from interface:DocumentGets the document creator.
- Specified by:
getCreatorin interfaceDocument- Returns:
- the creator
-
setCreator
public void setCreator(java.lang.String creator)
Description copied from interface:DocumentSets the document creator.
- Specified by:
setCreatorin interfaceDocument- Parameters:
creator- the creator to set
-
-