Package com.saperion.rmi
Class SaDocInfoImpl
java.lang.Object
com.saperion.rmi.SaDocInfoImpl
- All Implemented Interfaces:
SaDocInfo
,Serializable
Implementation of the
SaDocInfo
interface.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.saperion.intf.SaDocInfo
SaDocInfo.ElementInfo, SaDocInfo.ElementType
-
Constructor Summary
ConstructorsConstructorDescriptionSaDocInfoImpl
(int createUser) Constructor.SaDocInfoImpl
(com.saperion.jna.applsrv.m2j.natives.DocumentInfoObject documentInfo, String revisionId) Constructor for JNA.SaDocInfoImpl
(Map<Integer, SaDocInfo.ElementInfo> elements, int creator, String hDoc, Properties variables) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addElementInfo
(String fName, int nr, byte elementType, boolean isSelected, Properties variableData, long dataSize, int pageCnt, int frameCnt, String documentUid, String lnkUid, int level) Adds a new element info to the list.void
addVariableData
(String name, String value) Adds new variable data record.int
int
Returns a list of the structure-elements of this document.getElementInfo
(int elementNumber) Returns the element info of the element with the specified number, if existing.Returns the structure-elements as a map with the corresponding element number as key.getHdoc()
Returns variables of the document.boolean
toString()
-
Constructor Details
-
SaDocInfoImpl
public SaDocInfoImpl(Map<Integer, SaDocInfo.ElementInfo> elements, int creator, String hDoc, Properties variables) -
SaDocInfoImpl
public SaDocInfoImpl(int createUser) Constructor.- Parameters:
createUser
- Create user
-
SaDocInfoImpl
public SaDocInfoImpl(com.saperion.jna.applsrv.m2j.natives.DocumentInfoObject documentInfo, String revisionId) Constructor for JNA.- Parameters:
documentInfo
- native document info objectrevisionId
- hex-string of revision ID
-
-
Method Details
-
addElementInfo
public void addElementInfo(String fName, int nr, byte elementType, boolean isSelected, Properties variableData, long dataSize, int pageCnt, int frameCnt, String documentUid, String lnkUid, int level) Adds a new element info to the list.- Parameters:
fName
- File namenr
- NumberelementType
- Element typeisSelected
- Is selectedvariableData
- Properties object containing names and values of variablesdataSize
- size of elementpageCnt
- number of pagesframeCnt
- number of framesdocumentUid
- uid of the documentlnkUid
- uid of the linked documentlevel
- element's level in the structure hierarchy
-
addVariableData
Adds new variable data record.- Parameters:
name
- Namevalue
- Value
-
getCreateUser
public int getCreateUser()- Specified by:
getCreateUser
in interfaceSaDocInfo
- Returns:
- Document create user
- See Also:
-
getElementCount
public int getElementCount()- Specified by:
getElementCount
in interfaceSaDocInfo
- Returns:
- Element count
- See Also:
-
getElementInfo
Returns a list of the structure-elements of this document.- Specified by:
getElementInfo
in interfaceSaDocInfo
- Returns:
- Element information
- See Also:
-
getElementInfoMap
Returns the structure-elements as a map with the corresponding element number as key.- Specified by:
getElementInfoMap
in interfaceSaDocInfo
- Returns:
- the element information as a map.
- See Also:
-
getElementInfo
Returns the element info of the element with the specified number, if existing. Null is returned if no element-info is existing for the given element number.- Specified by:
getElementInfo
in interfaceSaDocInfo
- Parameters:
elementNumber
- The element number to get information for- Returns:
- the document info for the given element number, if existing - null otherwise.
- See Also:
-
getVariableData
Returns variables of the document. UseSaDocInfo.ElementInfo.getVariableData()
to get variables contained in a specific element.- Specified by:
getVariableData
in interfaceSaDocInfo
- Returns:
- Document variable data
- See Also:
-
hasAnnotations
public boolean hasAnnotations()- Specified by:
hasAnnotations
in interfaceSaDocInfo
- Returns:
- true if the document contains annotations
- See Also:
-
getHdoc
-
toString
-