public class SaDocInfoImpl extends Object implements SaDocInfo
SaDocInfo interface.SaDocInfo.ElementInfo, SaDocInfo.ElementType| Constructor and Description |
|---|
SaDocInfoImpl(com.saperion.jna.applsrv.m2j.natives.DocumentInfoObject documentInfo,
String revisionId)
Constructor for JNA.
|
SaDocInfoImpl(int createUser)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
addVariableData(String name,
String value)
Adds new variable data record.
|
int |
getCreateUser() |
int |
getElementCount() |
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.
|
Map<Integer,SaDocInfo.ElementInfo> |
getElementInfoMap()
Returns the structure-elements as a map with the corresponding element number as key.
|
String |
getHdoc() |
Properties |
getVariableData()
Returns variables of the document.
|
boolean |
hasAnnotations() |
String |
toString() |
public SaDocInfoImpl(int createUser)
createUser - Create userpublic SaDocInfoImpl(com.saperion.jna.applsrv.m2j.natives.DocumentInfoObject documentInfo,
String revisionId)
documentInfo - native document info objectrevisionId - hex-string of revision IDpublic void addElementInfo(String fName, int nr, byte elementType, boolean isSelected, Properties variableData, long dataSize, int pageCnt, int frameCnt, String documentUid, String lnkUid, int level)
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 hierarchypublic void addVariableData(String name, String value)
name - Namevalue - Valuepublic int getCreateUser()
getCreateUser in interface SaDocInfoSaDocInfo.getCreateUser()public int getElementCount()
getElementCount in interface SaDocInfoSaDocInfo.getElementCount()public List<SaDocInfo.ElementInfo> getElementInfo()
getElementInfo in interface SaDocInfoSaDocInfo.getElementInfo()public Map<Integer,SaDocInfo.ElementInfo> getElementInfoMap()
getElementInfoMap in interface SaDocInfoSaDocInfo.getElementInfoMap()public SaDocInfo.ElementInfo getElementInfo(int elementNumber)
getElementInfo in interface SaDocInfoelementNumber - The element number to get information forSaDocInfo.getElementInfo(int elementNumber)public Properties getVariableData()
SaDocInfo.ElementInfo.getVariableData() to get variables contained in
a specific element.getVariableData in interface SaDocInfoSaDocInfo.getVariableData()public boolean hasAnnotations()
hasAnnotations in interface SaDocInfoSaDocInfo.hasAnnotations()public String getHdoc()
getHdoc in interface SaDocInfoSaDocInfo.getHdoc()Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.