Package org.verapdf.gf.model.impl.pd
Class GFPDStructElem
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.pd.GFPDObject
-
- org.verapdf.gf.model.impl.pd.GFPDStructElem
-
- All Implemented Interfaces:
Object
,PDObject
,PDStructElem
- Direct Known Subclasses:
GFSEAnnot
,GFSEArt
,GFSEArtifact
,GFSEAside
,GFSEBibEntry
,GFSEBlockQuote
,GFSECaption
,GFSECode
,GFSEDiv
,GFSEDocument
,GFSEDocumentFragment
,GFSEEm
,GFSEFENote
,GFSEFigure
,GFSEForm
,GFSEFormula
,GFSEH
,GFSEHn
,GFSEIndex
,GFSEL
,GFSELbl
,GFSELBody
,GFSELI
,GFSELink
,GFSENonStandard
,GFSENonStruct
,GFSENote
,GFSEP
,GFSEPart
,GFSEPrivate
,GFSEQuote
,GFSERB
,GFSEReference
,GFSERP
,GFSERT
,GFSERuby
,GFSESect
,GFSESpan
,GFSEStrong
,GFSESub
,GFSETable
,GFSETableCell
,GFSETBody
,GFSETFoot
,GFSETHead
,GFSETitle
,GFSETOC
,GFSETOCI
,GFSETR
,GFSEWarichu
,GFSEWP
,GFSEWT
public class GFPDStructElem extends GFPDObject implements PDStructElem
- Author:
- Maksim Bezrukov
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTUAL_TEXT
Link name forActualText
keystatic String
CHILDREN
Link name forK
keystatic String
LANG
Link name forLang
keystatic String
STRUCTURE_ELEMENT_TYPE
Type name forGFPDStructElem
static String
STRUCTURE_TYPE
Link name forS
key-
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 Modifier Constructor Description GFPDStructElem(PDStructElem structElemDictionary)
Default constructorprotected
GFPDStructElem(PDStructElem structElemDictionary, String standardType, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActualText()
value of the /ActualText entryString
getAlt()
value of the /Alt entryList<GFPDStructElem>
getChildren()
Boolean
getcircularMappingExist()
true, if circular mapping existString
getE()
value of the /E entryBoolean
gethasContentItems()
true if the structure element contains content items as its childrenBoolean
getisRemappedStandardType()
true if type is standard but remappedString
getkidsStandardTypes()
ampersand separated list of child element types, role mapped to the standard typesList<? extends Object>
getLinkedObjects(String link)
String
getparentLang()
value of parent Lang entryString
getparentStandardType()
parent element type, role mapped to the standard typeString
getstandardType()
standard structure type defined via role mapString
getType()
the value of the Type entryString
getvalueS()
structure type-
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
-
STRUCTURE_ELEMENT_TYPE
public static final String STRUCTURE_ELEMENT_TYPE
Type name forGFPDStructElem
- See Also:
- Constant Field Values
-
CHILDREN
public static final String CHILDREN
Link name forK
key- See Also:
- Constant Field Values
-
STRUCTURE_TYPE
public static final String STRUCTURE_TYPE
Link name forS
key- See Also:
- Constant Field Values
-
LANG
public static final String LANG
Link name forLang
key- See Also:
- Constant Field Values
-
ACTUAL_TEXT
public static final String ACTUAL_TEXT
Link name forActualText
key- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFPDStructElem
protected GFPDStructElem(PDStructElem structElemDictionary, String standardType, String type)
-
GFPDStructElem
public GFPDStructElem(PDStructElem structElemDictionary)
Default constructor- Parameters:
structElemDictionary
- dictionary of structure element
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:PDStructElem
the value of the Type entry- Specified by:
getType
in interfacePDStructElem
- Returns:
- Type entry of current structure element
-
getkidsStandardTypes
public String getkidsStandardTypes()
Description copied from interface:PDStructElem
ampersand separated list of child element types, role mapped to the standard types- Specified by:
getkidsStandardTypes
in interfacePDStructElem
-
getparentStandardType
public String getparentStandardType()
Description copied from interface:PDStructElem
parent element type, role mapped to the standard type- Specified by:
getparentStandardType
in interfacePDStructElem
-
gethasContentItems
public Boolean gethasContentItems()
Description copied from interface:PDStructElem
true if the structure element contains content items as its children- Specified by:
gethasContentItems
in interfacePDStructElem
-
getvalueS
public String getvalueS()
Description copied from interface:PDStructElem
structure type- Specified by:
getvalueS
in interfacePDStructElem
-
getstandardType
public String getstandardType()
Description copied from interface:PDStructElem
standard structure type defined via role map- Specified by:
getstandardType
in interfacePDStructElem
-
getisRemappedStandardType
public Boolean getisRemappedStandardType()
Description copied from interface:PDStructElem
true if type is standard but remapped- Specified by:
getisRemappedStandardType
in interfacePDStructElem
-
getAlt
public String getAlt()
Description copied from interface:PDStructElem
value of the /Alt entry- Specified by:
getAlt
in interfacePDStructElem
-
getActualText
public String getActualText()
Description copied from interface:PDStructElem
value of the /ActualText entry- Specified by:
getActualText
in interfacePDStructElem
-
getE
public String getE()
Description copied from interface:PDStructElem
value of the /E entry- Specified by:
getE
in interfacePDStructElem
-
getcircularMappingExist
public Boolean getcircularMappingExist()
Description copied from interface:PDStructElem
true, if circular mapping exist- Specified by:
getcircularMappingExist
in interfacePDStructElem
-
getLinkedObjects
public List<? extends Object> getLinkedObjects(String link)
- Specified by:
getLinkedObjects
in interfaceObject
- Overrides:
getLinkedObjects
in classGenericModelObject
- Parameters:
link
- - the name of a link- Returns:
- List of objects with the given link
-
getChildren
public List<GFPDStructElem> getChildren()
-
getparentLang
public String getparentLang()
Description copied from interface:PDStructElem
value of parent Lang entry- Specified by:
getparentLang
in interfacePDStructElem
-
-