Class 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

public class GFSAStructElem extends GFSAObject implements SAStructElem
Author:
Maxim Plushchov
  • Field Details

  • Constructor Details

  • Method Details

    • setNode

      public void setNode(org.verapdf.wcag.algorithms.entities.INode node)
    • getNode

      public org.verapdf.wcag.algorithms.entities.INode getNode()
    • getLinkedObjects

      public List<? extends Object> getLinkedObjects(String link)
      Specified by:
      getLinkedObjects in interface Object
      Overrides:
      getLinkedObjects in class GenericModelObject
      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: SAStructElem
      standard type of struct element
      Specified by:
      getstandardType in interface SAStructElem
    • getisTableElem

      public Boolean getisTableElem()
      Description copied from interface: SAStructElem
      true, if this is table struct element
      Specified by:
      getisTableElem in interface SAStructElem
    • getisListElem

      public Boolean getisListElem()
      Description copied from interface: SAStructElem
      true, if this is list struct element
      Specified by:
      getisListElem in interface SAStructElem
    • getisTableChild

      public Boolean getisTableChild()
      Description copied from interface: SAStructElem
      true, if this is table child element
      Specified by:
      getisTableChild in interface SAStructElem
    • getisListChild

      public Boolean getisListChild()
      Description copied from interface: SAStructElem
      true, if this is list child element
      Specified by:
      getisListChild in interface SAStructElem
    • getisLeafElem

      public Boolean getisLeafElem()
      Description copied from interface: SAStructElem
      false, if structure element contains other structure elements
      Specified by:
      getisLeafElem in interface SAStructElem
    • getChildren

      public List<Object> getChildren()
    • parseChildren

      protected void parseChildren()
    • addTextChunk

      public int addTextChunk(int number, List<org.verapdf.wcag.algorithms.entities.content.IChunk> chunks)
    • getcorrectSemanticScore

      public Double getcorrectSemanticScore()
      Description copied from interface: SAStructElem
      number ranging from 0 to 1 indicating the probability that the correct type is right defined
      Specified by:
      getcorrectSemanticScore in interface SAStructElem
    • getvalueS

      public String getvalueS()
      Description copied from interface: SAStructElem
      structure type
      Specified by:
      getvalueS in interface SAStructElem
    • getcorrectType

      public String getcorrectType()
      Description copied from interface: SAStructElem
      supposed correct element type
      Specified by:
      getcorrectType in interface SAStructElem
    • getID

      public String getID()
      Specified by:
      getID in interface Object
      Overrides:
      getID in class GenericModelObject
      Returns:
      id of the current object
    • getPageObjectNumber

      public COSKey getPageObjectNumber()
    • getparentsStandardTypes

      public String getparentsStandardTypes()
      Description copied from interface: SAStructElem
      ampersand separated list of all standard types of parents element of this structure element in the structure hierarchy
      Specified by:
      getparentsStandardTypes in interface SAStructElem
    • getkidsStandardTypes

      public String getkidsStandardTypes()
      Description copied from interface: SAStructElem
      ampersand separated list of child element types, role mapped to the standard types
      Specified by:
      getkidsStandardTypes in interface SAStructElem
    • getparentStandardType

      public String getparentStandardType()
      Description copied from interface: SAStructElem
      parent element type, role mapped to the standard type
      Specified by:
      getparentStandardType in interface SAStructElem
    • getTextValue

      public String getTextValue()
    • gethasLowestDepthError

      public Boolean gethasLowestDepthError()
      Description copied from interface: SAStructElem
      true, if this element has wrong type and all parents of this element have right types
      Specified by:
      gethasLowestDepthError in interface SAStructElem
    • getpage

      public Long getpage()
      Description copied from interface: SAStructElem
      number of the first page that contains the structure element
      Specified by:
      getpage in interface SAStructElem
    • getlastPage

      public Long getlastPage()
      Description copied from interface: SAStructElem
      number of the last page that contains the structure element
      Specified by:
      getlastPage in interface SAStructElem
    • getStructElemDictionary

      public PDStructElem getStructElemDictionary()