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 TypeMethodDescriptionvoidaddElementInfo(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.voidaddVariableData(String name, String value) Adds new variable data record.intintReturns 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.booleantoString()
-
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:
getCreateUserin interfaceSaDocInfo- Returns:
- Document create user
- See Also:
-
getElementCount
public int getElementCount()- Specified by:
getElementCountin interfaceSaDocInfo- Returns:
- Element count
- See Also:
-
getElementInfo
Returns a list of the structure-elements of this document.- Specified by:
getElementInfoin interfaceSaDocInfo- Returns:
- Element information
- See Also:
-
getElementInfoMap
Returns the structure-elements as a map with the corresponding element number as key.- Specified by:
getElementInfoMapin 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:
getElementInfoin 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:
getVariableDatain interfaceSaDocInfo- Returns:
- Document variable data
- See Also:
-
hasAnnotations
public boolean hasAnnotations()- Specified by:
hasAnnotationsin interfaceSaDocInfo- Returns:
- true if the document contains annotations
- See Also:
-
getHdoc
-
toString
-