Interface Document
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DocumentImpl,ElementDocument,GroupDocument,ItemDocument,ManifestDocument,NoteDocument,PlaceholderDocument,SpreadDocument,W2MLDocument
Base interface for all document XML types.
Base interface for all document XML types.
Derived types are
-
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.
-
Method Details
-
getVersion
String getVersion()Gets 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).- Returns:
- the renderer version, which created this document
-
setVersion
Sets the version of the application, which created this document.
Sets the version of the application, which created this document.
See alsogetVersion().- Parameters:
version- renderer version, which created this document
-
getPluginRevision
Integer getPluginRevision()Gets the revision of the application, which created this document.
Gets the revision of the application, which created this document.
See alsogetVersion().- Returns:
- the revision of the renderer, which created this document
-
setPluginRevision
Sets the revision of the application, which created this document.
Sets the revision of the application, which created this document.
See alsogetVersion().- Parameters:
pluginRevision- the revision of the renderer, which created this document
-
getRef
Scope getRef()Gets 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.- Returns:
- scope of the document, which is covered by this XML document
-
setRef
Sets 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 alsogetRef()- Parameters:
ref- scope of the document, which is covered by this XML document
-
getDocumentId
String getDocumentId()Gets 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.- Returns:
- Id of this document
-
setDocumentId
Sets 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.- Parameters:
documentId- Id of this document
-
getSpreadId
Integer getSpreadId()Gets 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 (seegetRef()of this XML document is a document spread, the spread Id is the index (zero based) of the spread contained in this XML document.- Returns:
- Id (index) of the spread contained in this document
-
setSpreadId
Sets 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 (seegetRef()of this XML document is a document spread, the spread Id is the index (zero based) of the spread contained in this XML document.- Parameters:
spreadId- Id (index) of the spread contained in this document
-
getPageId
Integer getPageId()Gets 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 (seegetRef()of this XML document is a document page, the page Id is the index (zero based) of the page contained in this XML document.- Returns:
- Id (index) of the page contained in this document
-
setPageId
Sets 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 (seegetRef()of this XML document is a document page, the page Id is the index (zero based) of the page contained in this XML document.- Parameters:
pageId- Id (index) of the page contained in this document
-
getGroupId
Integer getGroupId()Gets 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 (seegetRef()of this XML document is a comet group, the group Id is the persistent UID of the comet group contained in this XML document.- Returns:
- persistent UID of the comet group contained in this document
-
setGroupId
Sets 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 (seegetRef()of this XML document is a comet group, the group Id is the persistent UID of the comet group contained in this XML document.- Parameters:
groupId- persistent UID of the comet group contained in this document
-
getElementId
Integer getElementId()Gets 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 (seegetRef()of this XML document is an element, the element Id is the persistent UID of the element contained in this XML document.- Returns:
- persistent UID of the element contained in this document
-
setElementId
Sets 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 (seegetRef()of this XML document is an element, the element Id is the persistent UID of the element contained in this XML document.- Parameters:
elementId- persistent UID of the element contained in this document
-
getDocumentPath
String getDocumentPath()Gets 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.- Returns:
- document path / path of parent folder
-
setDocumentPath
Sets 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.- Parameters:
documentPath- document path / path of parent folder
-
getDocumentName
String getDocumentName()Gets the document name.
Gets the document name. This is the file system name of the document, this XML document is based on.
- Returns:
- name of the document, this XML document is based on.
-
setDocumentName
Sets the document name.
Sets the document name. This is the file system name of the document, this XML document is based on.
- Parameters:
documentName- name of the document, this XML document is based on.
-
getIsMissingPlugIns
Boolean getIsMissingPlugIns()Gets, 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.- Returns:
- true, if Plug-Ins where missing, false otherwise.
-
setIsMissingPlugIns
Sets, 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.- Parameters:
isMissingPlugIns- true, if Plug-Ins where missing, false otherwise.
-
getIsConverted
Boolean getIsConverted()Gets, 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.- Returns:
- true, if the document has been converted, false otherwise.
-
setIsConverted
Sets, 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.- Parameters:
isConverted- true, if the document has been converted, false otherwise.
-
getIsModified
Boolean getIsModified()Gets 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.- Returns:
- true, if the document is in modified state, false otherwise.
-
setIsModified
Sets 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.- Parameters:
isModified- true, if the document is in modified state, false otherwise.
-
getIsReadOnly
Boolean getIsReadOnly()Gets, 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.
- Returns:
- true, if the document is read only, false otherwise.
-
setIsReadOnly
Sets, 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.
- Parameters:
isReadOnly- true, if the document is read only, false otherwise.
-
setCreator
Sets the document creator.
- Parameters:
creator- the document creator
-
getCreator
String getCreator()Gets the document creator.
- Returns:
- the document creator
-