Package com.saperion.rmi
Class SaDocInfoImpl
- java.lang.Object
-
- com.saperion.rmi.SaDocInfoImpl
-
- All Implemented Interfaces:
SaDocInfo
,java.io.Serializable
public class SaDocInfoImpl extends java.lang.Object implements SaDocInfo
Implementation of theSaDocInfo
interface.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.saperion.intf.SaDocInfo
SaDocInfo.ElementInfo, SaDocInfo.ElementType
-
-
Constructor Summary
Constructors Constructor Description SaDocInfoImpl(int createUser)
Constructor.SaDocInfoImpl(com.saperion.jna.applsrv.m2j.natives.DocumentInfoObject documentInfo, java.lang.String revisionId)
Constructor for JNA.SaDocInfoImpl(java.util.Map<java.lang.Integer,SaDocInfo.ElementInfo> elements, int creator, java.lang.String hDoc, java.util.Properties variables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addElementInfo(java.lang.String fName, int nr, byte elementType, boolean isSelected, java.util.Properties variableData, long dataSize, int pageCnt, int frameCnt, java.lang.String documentUid, java.lang.String lnkUid, int level)
Adds a new element info to the list.void
addVariableData(java.lang.String name, java.lang.String value)
Adds new variable data record.int
getCreateUser()
int
getElementCount()
java.util.List<SaDocInfo.ElementInfo>
getElementInfo()
Returns a list of the structure-elements of this document.SaDocInfo.ElementInfo
getElementInfo(int elementNumber)
Returns the element info of the element with the specified number, if existing.java.util.Map<java.lang.Integer,SaDocInfo.ElementInfo>
getElementInfoMap()
Returns the structure-elements as a map with the corresponding element number as key.java.lang.String
getHdoc()
java.util.Properties
getVariableData()
Returns variables of the document.boolean
hasAnnotations()
java.lang.String
toString()
-
-
-
Constructor Detail
-
SaDocInfoImpl
public SaDocInfoImpl(java.util.Map<java.lang.Integer,SaDocInfo.ElementInfo> elements, int creator, java.lang.String hDoc, java.util.Properties variables)
-
SaDocInfoImpl
public SaDocInfoImpl(int createUser)
Constructor.- Parameters:
createUser
- Create user
-
SaDocInfoImpl
public SaDocInfoImpl(com.saperion.jna.applsrv.m2j.natives.DocumentInfoObject documentInfo, java.lang.String revisionId)
Constructor for JNA.- Parameters:
documentInfo
- native document info objectrevisionId
- hex-string of revision ID
-
-
Method Detail
-
addElementInfo
public void addElementInfo(java.lang.String fName, int nr, byte elementType, boolean isSelected, java.util.Properties variableData, long dataSize, int pageCnt, int frameCnt, java.lang.String documentUid, java.lang.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
public void addVariableData(java.lang.String name, java.lang.String value)
Adds new variable data record.- Parameters:
name
- Namevalue
- Value
-
getCreateUser
public int getCreateUser()
- Specified by:
getCreateUser
in interfaceSaDocInfo
- Returns:
- Document create user
- See Also:
SaDocInfo.getCreateUser()
-
getElementCount
public int getElementCount()
- Specified by:
getElementCount
in interfaceSaDocInfo
- Returns:
- Element count
- See Also:
SaDocInfo.getElementCount()
-
getElementInfo
public java.util.List<SaDocInfo.ElementInfo> getElementInfo()
Returns a list of the structure-elements of this document.- Specified by:
getElementInfo
in interfaceSaDocInfo
- Returns:
- Element information
- See Also:
SaDocInfo.getElementInfo()
-
getElementInfoMap
public java.util.Map<java.lang.Integer,SaDocInfo.ElementInfo> 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:
SaDocInfo.getElementInfoMap()
-
getElementInfo
public SaDocInfo.ElementInfo getElementInfo(int elementNumber)
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:
SaDocInfo.getElementInfo(int elementNumber)
-
getVariableData
public java.util.Properties 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:
SaDocInfo.getVariableData()
-
hasAnnotations
public boolean hasAnnotations()
- Specified by:
hasAnnotations
in interfaceSaDocInfo
- Returns:
- true if the document contains annotations
- See Also:
SaDocInfo.hasAnnotations()
-
getHdoc
public java.lang.String getHdoc()
- Specified by:
getHdoc
in interfaceSaDocInfo
- Returns:
- hDoc of the revision represented by this SaDocInfo instance
- See Also:
SaDocInfo.getHdoc()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-