Package org.verapdf.gf.model.impl.sa
Class GFSAStructElem
java.lang.Object
org.verapdf.model.GenericModelObject
org.verapdf.gf.model.impl.sa.GFSAObject
org.verapdf.gf.model.impl.sa.GFSAStructElem
- All Implemented Interfaces:
Object,SAObject,SAStructElem
- Direct Known Subclasses:
GFSAAnnot,GFSAArt,GFSAArtifact,GFSAAside,GFSABibEntry,GFSABlockQuote,GFSACaption,GFSACode,GFSADiv,GFSADocument,GFSADocumentFragment,GFSAEm,GFSAFENote,GFSAFigure,GFSAForm,GFSAFormula,GFSAH,GFSAHn,GFSAIndex,GFSAL,GFSALbl,GFSALBody,GFSALI,GFSALink,GFSANonStandard,GFSANonStruct,GFSANote,GFSAP,GFSAPart,GFSAPrivate,GFSAQuote,GFSARB,GFSAReference,GFSARP,GFSART,GFSARuby,GFSASect,GFSASpan,GFSAStrong,GFSASub,GFSATable,GFSATableCell,GFSATBody,GFSATFoot,GFSATHead,GFSATitle,GFSATOC,GFSATOCI,GFSATR,GFSAWarichu,GFSAWP,GFSAWT
- Author:
- Maxim Plushchov
-
Field Summary
FieldsFields inherited from class org.verapdf.gf.model.impl.sa.GFSAObject
objectFields inherited from class org.verapdf.model.GenericModelObject
contextDependent -
Constructor Summary
ConstructorsConstructorDescriptionGFSAStructElem(PDStructElem structElemDictionary, String standardType, String type, String parentsStandardTypes) -
Method Summary
Modifier and TypeMethodDescriptionintaddTextChunk(int number, List<IChunk> chunks) number ranging from 0 to 1 indicating the probability that the correct type is right definedsupposed correct element typetrue, if this element has wrong type and all parents of this element have right typesgetID()false, if structure element contains other structure elementstrue, if this is list child elementtrue, if this is list struct elementtrue, if this is table child elementtrue, if this is table struct elementampersand separated list of child element types, role mapped to the standard typesnumber of the last page that contains the structure elementgetLinkedObjects(String link) getNode()getpage()number of the first page that contains the structure elementampersand separated list of all standard types of parents element of this structure element in the structure hierarchyparent element type, role mapped to the standard typestandard type of struct elementgetType()structure typeprotected voidvoidMethods inherited from class org.verapdf.gf.model.impl.sa.GFSAObject
getContext, geterrorArguments, getErrorArguments, geterrorCodes, getErrorCodes, getObject, getstructureID, setObjectMethods inherited from class org.verapdf.model.GenericModelObject
getExtraContext, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentMethods inherited from interface org.verapdf.model.salayer.SAObject
geterrorArguments, geterrorCodes, getstructureID
-
Field Details
-
CHILDREN
- See Also:
-
structElemDictionary
-
children
-
-
Constructor Details
-
GFSAStructElem
public GFSAStructElem(PDStructElem structElemDictionary, String standardType, String type, String parentsStandardTypes)
-
-
Method Details
-
setNode
-
getNode
-
getLinkedObjects
- Specified by:
getLinkedObjectsin interfaceObject- Overrides:
getLinkedObjectsin classGenericModelObject- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-
getType
-
getStructureType
-
getstandardType
Description copied from interface:SAStructElemstandard type of struct element- Specified by:
getstandardTypein interfaceSAStructElem
-
getisTableElem
Description copied from interface:SAStructElemtrue, if this is table struct element- Specified by:
getisTableElemin interfaceSAStructElem
-
getisListElem
Description copied from interface:SAStructElemtrue, if this is list struct element- Specified by:
getisListElemin interfaceSAStructElem
-
getisTableChild
Description copied from interface:SAStructElemtrue, if this is table child element- Specified by:
getisTableChildin interfaceSAStructElem
-
getisListChild
Description copied from interface:SAStructElemtrue, if this is list child element- Specified by:
getisListChildin interfaceSAStructElem
-
getisLeafElem
Description copied from interface:SAStructElemfalse, if structure element contains other structure elements- Specified by:
getisLeafElemin interfaceSAStructElem
-
getChildren
-
parseChildren
protected void parseChildren() -
addTextChunk
-
getcorrectSemanticScore
Description copied from interface:SAStructElemnumber ranging from 0 to 1 indicating the probability that the correct type is right defined- Specified by:
getcorrectSemanticScorein interfaceSAStructElem
-
getvalueS
Description copied from interface:SAStructElemstructure type- Specified by:
getvalueSin interfaceSAStructElem
-
getcorrectType
Description copied from interface:SAStructElemsupposed correct element type- Specified by:
getcorrectTypein interfaceSAStructElem
-
getID
- Specified by:
getIDin interfaceObject- Overrides:
getIDin classGenericModelObject- Returns:
- id of the current object
-
getPageObjectNumber
-
getparentsStandardTypes
Description copied from interface:SAStructElemampersand separated list of all standard types of parents element of this structure element in the structure hierarchy- Specified by:
getparentsStandardTypesin interfaceSAStructElem
-
getkidsStandardTypes
Description copied from interface:SAStructElemampersand separated list of child element types, role mapped to the standard types- Specified by:
getkidsStandardTypesin interfaceSAStructElem
-
getparentStandardType
Description copied from interface:SAStructElemparent element type, role mapped to the standard type- Specified by:
getparentStandardTypein interfaceSAStructElem
-
getTextValue
-
gethasLowestDepthError
Description copied from interface:SAStructElemtrue, if this element has wrong type and all parents of this element have right types- Specified by:
gethasLowestDepthErrorin interfaceSAStructElem
-
getpage
Description copied from interface:SAStructElemnumber of the first page that contains the structure element- Specified by:
getpagein interfaceSAStructElem
-
getlastPage
Description copied from interface:SAStructElemnumber of the last page that contains the structure element- Specified by:
getlastPagein interfaceSAStructElem
-
getStructElemDictionary
-