Package org.verapdf.gf.model.impl.sa
Class GFSAStructElem
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.sa.GFSAStructElem
-
- All Implemented Interfaces:
Object,SAStructElem
- Direct Known Subclasses:
GFSAGeneral
public class GFSAStructElem extends GenericModelObject implements SAStructElem
- Author:
- Maxim Plushchov
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Object>childrenstatic StringCHILDREN-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Constructor Description GFSAStructElem(PDStructElem structElemDictionary, String standardType, String type, boolean isTableChild, boolean isListChild)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContext()DoublegetcorrectSemanticScore()number ranging from 0 to 1 indicating the probability that the correct type is right definedStringgetcorrectType()supposed correct element typeBooleangethasCorrectType()true, if correct type is the same as the standard typeStringgetID()BooleangetisLeafElem()false, if structure element contains other structure elementsBooleangetisListChild()true, if this is list child elementBooleangetisListElem()true, if this is list struct elementBooleangetisTableChild()true, if this is table child elementBooleangetisTableElem()true, if this is table struct elementList<? extends Object>getLinkedObjects(String link)INodegetNode()LonggetnumberOfSameCharacters()number of same characters successivelyCOSKeygetPageObjectNumber()StringgetstandardType()standard type of struct elementstatic StringgetStructureElementStandardType(PDStructElem pdStructElem)LonggetstructureID()id of struct elementStringgetStructureType()StringgetTextValue()StringgetType()protected voidparseChildren()voidsetNode(INode node)-
Methods inherited from class org.verapdf.model.GenericModelObject
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
getExtraContext, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
-
-
-
Field Detail
-
CHILDREN
public static final String CHILDREN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFSAStructElem
public GFSAStructElem(PDStructElem structElemDictionary, String standardType, String type, boolean isTableChild, boolean isListChild)
-
-
Method Detail
-
setNode
public void setNode(INode node)
-
getNode
public INode getNode()
-
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
-
getType
public String getType()
-
getStructureType
public String getStructureType()
-
getstandardType
public String getstandardType()
Description copied from interface:SAStructElemstandard type of struct element- Specified by:
getstandardTypein interfaceSAStructElem
-
getisTableElem
public Boolean getisTableElem()
Description copied from interface:SAStructElemtrue, if this is table struct element- Specified by:
getisTableElemin interfaceSAStructElem
-
getisListElem
public Boolean getisListElem()
Description copied from interface:SAStructElemtrue, if this is list struct element- Specified by:
getisListElemin interfaceSAStructElem
-
getisTableChild
public Boolean getisTableChild()
Description copied from interface:SAStructElemtrue, if this is table child element- Specified by:
getisTableChildin interfaceSAStructElem
-
getisListChild
public Boolean getisListChild()
Description copied from interface:SAStructElemtrue, if this is list child element- Specified by:
getisListChildin interfaceSAStructElem
-
getisLeafElem
public Boolean getisLeafElem()
Description copied from interface:SAStructElemfalse, if structure element contains other structure elements- Specified by:
getisLeafElemin interfaceSAStructElem
-
getstructureID
public Long getstructureID()
Description copied from interface:SAStructElemid of struct element- Specified by:
getstructureIDin interfaceSAStructElem
-
getStructureElementStandardType
public static String getStructureElementStandardType(PDStructElem pdStructElem)
-
parseChildren
protected void parseChildren()
-
getContext
public String getContext()
- Specified by:
getContextin interfaceObject- Overrides:
getContextin classGenericModelObject- Returns:
- context of the current object
-
getcorrectSemanticScore
public Double 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
-
gethasCorrectType
public Boolean gethasCorrectType()
Description copied from interface:SAStructElemtrue, if correct type is the same as the standard type- Specified by:
gethasCorrectTypein interfaceSAStructElem
-
getcorrectType
public String getcorrectType()
Description copied from interface:SAStructElemsupposed correct element type- Specified by:
getcorrectTypein interfaceSAStructElem
-
getID
public String getID()
- Specified by:
getIDin interfaceObject- Overrides:
getIDin classGenericModelObject- Returns:
- id of the current object
-
getPageObjectNumber
public COSKey getPageObjectNumber()
-
getnumberOfSameCharacters
public Long getnumberOfSameCharacters()
Description copied from interface:SAStructElemnumber of same characters successively- Specified by:
getnumberOfSameCharactersin interfaceSAStructElem
-
getTextValue
public String getTextValue()
-
-