Class DocumentImpl
- All Implemented Interfaces:
Document,Serializable
- Direct Known Subclasses:
ElementDocument,GroupDocument,ItemDocument,ManifestDocument,NoteDocument,PlaceholderDocument,SpreadDocument,W2MLDocument
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the document creator.Gets the document Id of this document.Gets the document name.Gets the document path / parent folder.Gets the element Id of the content described in this XML document.Gets the group Id of the content described in this XML document.Gets, whether this document has been converted, when being opened.Gets, whether Plug-Ins where missing when generating this XML document.Gets the modified state of the document, this XML document is based on.Gets, whether the document, this XML document is based on, is read only.Gets the page Id of the content described in this XML document.Gets the revision of the application, which created this document.getRef()Gets the scope of the document, which is covered by this XML document.Gets the spread Id of the content described in this XML document.Gets the version of the application, which created this document.voidsetCreator(String creator) Sets the document creator.voidsetDocumentId(String documentId) Sets the document Id of this document.voidsetDocumentName(String documentName) Sets the document name.voidsetDocumentPath(String documentPath) Sets the document path / parent folder.voidsetElementId(Integer elementId) Sets the element Id of the content described in this XML document.voidsetGroupId(Integer groupId) Sets the group Id of the content described in this XML document.voidsetIsConverted(Boolean isConverted) Sets, whether this document has been converted, when being opened.voidsetIsMissingPlugIns(Boolean isMissingPlugIns) Sets, whether Plug-Ins where missing when generating this XML document.voidsetIsModified(Boolean isModified) Sets the modified state of the document, this XML document is based on.voidsetIsReadOnly(Boolean isReadOnly) Sets, whether the document, this XML document is based on, is read only.voidSets the page Id of the content described in this XML document.voidsetPluginRevision(Integer pluginRevision) Sets the revision of the application, which created this document.voidSets the scope of the document, which is covered by this XML document.voidsetSpreadId(Integer spreadId) Sets the spread Id of the content described in this XML document.voidsetVersion(String version) Sets the version of the application, which created this document.
-
Constructor Details
-
DocumentImpl
public DocumentImpl()
-
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Description copied from interface:DocumentGets the document creator.
- Specified by:
getCreatorin interfaceDocument- Returns:
- the creator
-
setCreator
Description copied from interface:DocumentSets the document creator.
- Specified by:
setCreatorin interfaceDocument- Parameters:
creator- the creator to set
-