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 StringACTUAL_TEXTLink name forActualTextkeystatic StringCHILDRENLink name forKkeystatic StringLANGLink name forLangkeystatic StringSTRUCTURE_ELEMENT_TYPEType name forGFPDStructElemstatic StringSTRUCTURE_TYPELink name forSkey-
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 constructorprotectedGFPDStructElem(PDStructElem structElemDictionary, String standardType, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActualText()value of the /ActualText entryStringgetAlt()value of the /Alt entryList<GFPDStructElem>getChildren()BooleangetcircularMappingExist()true, if circular mapping existStringgetE()value of the /E entryBooleangethasContentItems()true if the structure element contains content items as its childrenBooleangetisRemappedStandardType()true if type is standard but remappedStringgetkidsStandardTypes()ampersand separated list of child element types, role mapped to the standard typesList<? extends Object>getLinkedObjects(String link)StringgetparentLang()value of parent Lang entryStringgetparentStandardType()parent element type, role mapped to the standard typeStringgetstandardType()standard structure type defined via role mapStringgetType()the value of the Type entryStringgetvalueS()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 forKkey- See Also:
- Constant Field Values
-
STRUCTURE_TYPE
public static final String STRUCTURE_TYPE
Link name forSkey- See Also:
- Constant Field Values
-
LANG
public static final String LANG
Link name forLangkey- See Also:
- Constant Field Values
-
ACTUAL_TEXT
public static final String ACTUAL_TEXT
Link name forActualTextkey- 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:PDStructElemthe value of the Type entry- Specified by:
getTypein interfacePDStructElem- Returns:
- Type entry of current structure element
-
getkidsStandardTypes
public String getkidsStandardTypes()
Description copied from interface:PDStructElemampersand separated list of child element types, role mapped to the standard types- Specified by:
getkidsStandardTypesin interfacePDStructElem
-
getparentStandardType
public String getparentStandardType()
Description copied from interface:PDStructElemparent element type, role mapped to the standard type- Specified by:
getparentStandardTypein interfacePDStructElem
-
gethasContentItems
public Boolean gethasContentItems()
Description copied from interface:PDStructElemtrue if the structure element contains content items as its children- Specified by:
gethasContentItemsin interfacePDStructElem
-
getvalueS
public String getvalueS()
Description copied from interface:PDStructElemstructure type- Specified by:
getvalueSin interfacePDStructElem
-
getstandardType
public String getstandardType()
Description copied from interface:PDStructElemstandard structure type defined via role map- Specified by:
getstandardTypein interfacePDStructElem
-
getisRemappedStandardType
public Boolean getisRemappedStandardType()
Description copied from interface:PDStructElemtrue if type is standard but remapped- Specified by:
getisRemappedStandardTypein interfacePDStructElem
-
getAlt
public String getAlt()
Description copied from interface:PDStructElemvalue of the /Alt entry- Specified by:
getAltin interfacePDStructElem
-
getActualText
public String getActualText()
Description copied from interface:PDStructElemvalue of the /ActualText entry- Specified by:
getActualTextin interfacePDStructElem
-
getE
public String getE()
Description copied from interface:PDStructElemvalue of the /E entry- Specified by:
getEin interfacePDStructElem
-
getcircularMappingExist
public Boolean getcircularMappingExist()
Description copied from interface:PDStructElemtrue, if circular mapping exist- Specified by:
getcircularMappingExistin interfacePDStructElem
-
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
-
getChildren
public List<GFPDStructElem> getChildren()
-
getparentLang
public String getparentLang()
Description copied from interface:PDStructElemvalue of parent Lang entry- Specified by:
getparentLangin interfacePDStructElem
-
-