Class NodeVerificationCriteria.NodeVerificationCriteriaBuilder

java.lang.Object
com.github.tadukoo.parsing.fileformat.NodeVerificationCriteria.NodeVerificationCriteriaBuilder
Enclosing class:
NodeVerificationCriteria

public static class NodeVerificationCriteria.NodeVerificationCriteriaBuilder extends Object
Node Verification Criteria Builder is a builder for NodeVerificationCriteria. It has the following parameters:
Node Verification Criteria
Name Description Default or Required
logger The EasyLogger to use in logging messages Required
filepath The path to the file - used in some formatting Defaults to null
node The Node to be checked Required
format The FormatNode that defines the expected format Required
nullParent Whether to check that the parent is null or not Defaults to false
nullChild Whether to check that the child is null or not Defaults to false
nullPrevSibling Whether to check that the previous sibling is null or not Defaults to false
nullNextSibling Whether to check that the next sibling is null or not Defaults to false
parent The expected parent for the Node Defaults to null
child The expected child for the Node Defaults to null
prevSibling The expected previous sibling for the Node Defaults to null
nextSibling The expected next sibling for the Node Defaults to null
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
  • Field Details

    • logger

      private com.github.tadukoo.util.logger.EasyLogger logger
      The EasyLogger to use in logging messages
    • filepath

      private String filepath
      The path to the file - used in some formatting
    • node

      private Node node
      The Node to be checked
    • format

      private FormatNode format
      The FormatNode that defines the expected format
    • nullParent

      private boolean nullParent
      Whether to check that the parent is null or not
    • nullChild

      private boolean nullChild
      Whether to check that the child is null or not
    • nullPrevSibling

      private boolean nullPrevSibling
      Whether to check that the previous sibling is null or not
    • nullNextSibling

      private boolean nullNextSibling
      Whether to check that the next sibling is null or not
    • parent

      private Node parent
      The expected parent for the Node
    • child

      private Node child
      The expected child for the Node
    • prevSibling

      private Node prevSibling
      The expected previous sibling for the Node
    • nextSibling

      private Node nextSibling
      The expected next sibling for the Node
  • Constructor Details

    • NodeVerificationCriteriaBuilder

      private NodeVerificationCriteriaBuilder()
      Not allowed to create this outside of FormatNodeVerification
  • Method Details