public class RoleMap
extends java.lang.Object
Constructor and Description |
---|
RoleMap(Obj dict)
Initialize a RoleMap using an existing low-leval Cos/SDF role map dictionary.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDirectMap(java.lang.String type)
Get the direct map from the given type.
|
Obj |
getSDFObj()
Get the RoleMap dictionary as a SDFObj.
|
boolean |
isValid()
Checks if RoleMap is valid.
|
public RoleMap(Obj dict)
Note: This constructor does not copy any data, but is instead the logical equivalent of a type cast.
dict
- - a low-level (SDF/Cos) RoleMap dictionary.public boolean isValid() throws PDFNetException
PDFNetException
public java.lang.String getDirectMap(java.lang.String type) throws PDFNetException
type
- the input StructElement typePDFNetException
public Obj getSDFObj()