Class SemanticNode
- java.lang.Object
-
- org.verapdf.wcag.algorithms.entities.BaseObject
-
- org.verapdf.wcag.algorithms.entities.SemanticNode
-
- Direct Known Subclasses:
AnnotationNode,GFSANode,GFSARoot,SemanticDocument,SemanticFigure,SemanticGroupingNode,SemanticImageNode,SemanticTable,SemanticTextNode
public class SemanticNode extends BaseObject implements INode
-
-
Constructor Summary
Constructors Constructor Description SemanticNode()SemanticNode(SemanticType initialSemanticType)SemanticNode(SemanticType initialSemanticType, Integer objectKeyNumber)SemanticNode(SemanticType initialSemanticType, List<Integer> errorCodes, List<List<Object>> errorArguments, Integer objectKeyNumber)SemanticNode(BoundingBox bbox)SemanticNode(BoundingBox bbox, SemanticType initialSemanticType)SemanticNode(BoundingBox bbox, SemanticType initialSemanticType, SemanticType semanticType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(INode child)booleanequals(Object o)IAttributesDictionarygetAttributesDictionary()List<INode>getChildren()DoublegetCorrectSemanticScore()intgetDepth()booleangetHasLowestDepthError()IntegergetIndex()SemanticTypegetInitialSemanticType()INodegetNextNeighbor()INodegetNextNode()NodeInfogetNodeInfo()IntegergetObjectKeyNumber()INodegetParent()INodegetPreviousNeighbor()INodegetPreviousNode()SemanticTypegetSemanticType()inthashCode()booleanisLeaf()booleanisRoot()voidsetAttributesDictionary(IAttributesDictionary AttributesDictionary)voidsetCorrectSemanticScore(Double correctSemanticScore)voidsetDepth(int depth)voidsetHasLowestDepthError()voidsetIndex(Integer index)voidsetParent(INode node)voidsetSemanticType(SemanticType semanticType)StringtoString()-
Methods inherited from class org.verapdf.wcag.algorithms.entities.BaseObject
getBottomY, getBoundingBox, getCenterX, getCenterY, getErrorArguments, getErrorCodes, getHeight, getLastPageNumber, getLeftX, getPageNumber, getRecognizedStructureId, getRightX, getTopY, getWidth, setBoundingBox, setLastPageNumber, setPageNumber, setRecognizedStructureId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.verapdf.wcag.algorithms.entities.IObject
getBottomY, getBoundingBox, getCenterX, getCenterY, getErrorArguments, getErrorCodes, getHeight, getLastPageNumber, getLeftX, getPageNumber, getRecognizedStructureId, getRightX, getTopY, getWidth, setBoundingBox, setLastPageNumber, setPageNumber, setRecognizedStructureId
-
-
-
-
Field Detail
-
nodeInfo
public NodeInfo nodeInfo
-
-
Constructor Detail
-
SemanticNode
public SemanticNode()
-
SemanticNode
public SemanticNode(SemanticType initialSemanticType)
-
SemanticNode
public SemanticNode(SemanticType initialSemanticType, Integer objectKeyNumber)
-
SemanticNode
public SemanticNode(SemanticType initialSemanticType, List<Integer> errorCodes, List<List<Object>> errorArguments, Integer objectKeyNumber)
-
SemanticNode
public SemanticNode(BoundingBox bbox, SemanticType initialSemanticType, SemanticType semanticType)
-
SemanticNode
public SemanticNode(BoundingBox bbox, SemanticType initialSemanticType)
-
SemanticNode
public SemanticNode(BoundingBox bbox)
-
-
Method Detail
-
getCorrectSemanticScore
public Double getCorrectSemanticScore()
- Specified by:
getCorrectSemanticScorein interfaceINode
-
setCorrectSemanticScore
public void setCorrectSemanticScore(Double correctSemanticScore)
- Specified by:
setCorrectSemanticScorein interfaceINode
-
getSemanticType
public SemanticType getSemanticType()
- Specified by:
getSemanticTypein interfaceINode
-
setSemanticType
public void setSemanticType(SemanticType semanticType)
- Specified by:
setSemanticTypein interfaceINode
-
getInitialSemanticType
public SemanticType getInitialSemanticType()
- Specified by:
getInitialSemanticTypein interfaceINode
-
getChildren
public List<INode> getChildren()
- Specified by:
getChildrenin interfaceINode
-
getObjectKeyNumber
public Integer getObjectKeyNumber()
- Specified by:
getObjectKeyNumberin interfaceINode
-
getNextNeighbor
public INode getNextNeighbor()
- Specified by:
getNextNeighborin interfaceINode
-
getPreviousNeighbor
public INode getPreviousNeighbor()
- Specified by:
getPreviousNeighborin interfaceINode
-
getNextNode
public INode getNextNode()
- Specified by:
getNextNodein interfaceINode
-
getPreviousNode
public INode getPreviousNode()
- Specified by:
getPreviousNodein interfaceINode
-
setHasLowestDepthError
public void setHasLowestDepthError()
- Specified by:
setHasLowestDepthErrorin interfaceINode
-
getAttributesDictionary
public IAttributesDictionary getAttributesDictionary()
- Specified by:
getAttributesDictionaryin interfaceINode
-
setAttributesDictionary
public void setAttributesDictionary(IAttributesDictionary AttributesDictionary)
- Specified by:
setAttributesDictionaryin interfaceINode
-
getHasLowestDepthError
public boolean getHasLowestDepthError()
- Specified by:
getHasLowestDepthErrorin interfaceINode
-
getNodeInfo
public NodeInfo getNodeInfo()
- Specified by:
getNodeInfoin interfaceINode
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseObject
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classBaseObject
-
-