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.
|
SaDocInfoImpl(Map<Integer,SaDocInfo.ElementInfo> elements,
int creator,
String hDoc,
Properties variables) |
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(Map<Integer,SaDocInfo.ElementInfo> elements, int creator, String hDoc, Properties variables)
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 SaDocInfo
SaDocInfo.getCreateUser()
public int getElementCount()
getElementCount
in interface SaDocInfo
SaDocInfo.getElementCount()
public List<SaDocInfo.ElementInfo> getElementInfo()
getElementInfo
in interface SaDocInfo
SaDocInfo.getElementInfo()
public Map<Integer,SaDocInfo.ElementInfo> getElementInfoMap()
getElementInfoMap
in interface SaDocInfo
SaDocInfo.getElementInfoMap()
public SaDocInfo.ElementInfo getElementInfo(int elementNumber)
getElementInfo
in interface SaDocInfo
elementNumber
- 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 SaDocInfo
SaDocInfo.getVariableData()
public boolean hasAnnotations()
hasAnnotations
in interface SaDocInfo
SaDocInfo.hasAnnotations()
public String getHdoc()
getHdoc
in interface SaDocInfo
SaDocInfo.getHdoc()
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.