Class FeatureExtractionResult

java.lang.Object
org.verapdf.features.FeatureExtractionResult

public final class FeatureExtractionResult extends Object
Features Collection
Author:
Maksim Bezrukov
  • Constructor Details

    • FeatureExtractionResult

      public FeatureExtractionResult()
      Constructs new object
  • Method Details

    • addNewFeatureTree

      public void addNewFeatureTree(FeatureObjectType type, FeatureTreeNode root)
      Add new feature tree for a type
      Parameters:
      type - type of feature object
      root - root element of a feature tree
    • getFeatureTreesForType

      public List<FeatureTreeNode> getFeatureTreesForType(FeatureObjectType type)
      Gets list of feature trees for the type
      Parameters:
      type - type of the feature object
      Returns:
      list of feature trees for the given type
    • addNewError

      public void addNewError(FeatureObjectType type, String errorID)
      Add new error to feature type
      Parameters:
      type - type of feature object
      errorID - errorID
    • getErrorsForType

      public List<String> getErrorsForType(FeatureObjectType type)
      Gets list of feature trees for the type
      Parameters:
      type - type of the feature object
      Returns:
      list of errorss for the given type
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object