Package org.verapdf.gf.model.impl.pd
Class GFPDStructTreeRoot
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.pd.GFPDObject
-
- org.verapdf.gf.model.impl.pd.GFPDStructTreeRoot
-
- All Implemented Interfaces:
Object,PDObject,PDStructTreeRoot
public class GFPDStructTreeRoot extends GFPDObject implements PDStructTreeRoot
- Author:
- Maksim Bezrukov
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHILDRENLink name forKkeystatic StringROLE_MAP_NAMESLink name forroleMapNameskeystatic StringSTRUCT_TREE_ROOT_TYPEType name forPBoxPDStructTreeRoot-
Fields inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
contentStream, document, id, MAX_NUMBER_OF_ELEMENTS, pdcMap, pdFont, simpleCOSObject, simplePDObject
-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Constructor Description GFPDStructTreeRoot(PDStructTreeRoot treeRoot)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangethasContentItems()true if the structure element contains content items as its childrenStringgetkidsStandardTypes()ampersand separated list of child element types, role mapped to the standard typesList<? extends Object>getLinkedObjects(String link)StringgettopLevelFirstElementStandardType()standard type of the first kid-
Methods inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
getentries, getID
-
Methods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Methods inherited from interface org.verapdf.model.pdlayer.PDObject
getentries
-
-
-
-
Field Detail
-
STRUCT_TREE_ROOT_TYPE
public static final String STRUCT_TREE_ROOT_TYPE
Type name forPBoxPDStructTreeRoot- See Also:
- Constant Field Values
-
CHILDREN
public static final String CHILDREN
Link name forKkey- See Also:
- Constant Field Values
-
ROLE_MAP_NAMES
public static final String ROLE_MAP_NAMES
Link name forroleMapNameskey- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFPDStructTreeRoot
public GFPDStructTreeRoot(PDStructTreeRoot treeRoot)
Default constructor- Parameters:
treeRoot- structure tree root implementation
-
-
Method Detail
-
getkidsStandardTypes
public String getkidsStandardTypes()
Description copied from interface:PDStructTreeRootampersand separated list of child element types, role mapped to the standard types- Specified by:
getkidsStandardTypesin interfacePDStructTreeRoot
-
gethasContentItems
public Boolean gethasContentItems()
Description copied from interface:PDStructTreeRoottrue if the structure element contains content items as its children- Specified by:
gethasContentItemsin interfacePDStructTreeRoot
-
getLinkedObjects
public List<? extends Object> getLinkedObjects(String link)
- Specified by:
getLinkedObjectsin interfaceObject- Overrides:
getLinkedObjectsin classGenericModelObject- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-
gettopLevelFirstElementStandardType
public String gettopLevelFirstElementStandardType()
Description copied from interface:PDStructTreeRootstandard type of the first kid- Specified by:
gettopLevelFirstElementStandardTypein interfacePDStructTreeRoot
-
-