Class FragmentNode

java.lang.Object
pro.cyberyon.mojet.nodes.AbstractNode<Fragment>
pro.cyberyon.mojet.nodes.FragmentNode
All Implemented Interfaces:
NodeVisitable

public class FragmentNode extends AbstractNode<Fragment>
Node represening a fragment
Author:
Guillaume CHAUVET
  • Constructor Details

    • FragmentNode

      public FragmentNode(String accessor, Fragment annotation, TypeHandler<?> handler)
      Construct a fragment node instance
      Parameters:
      accessor - the field accessor name
      annotation - the fragment annotation
      handler - the concrete handle to use
  • Method Details

    • getLenght

      public int getLenght()
      The length of data area
      Returns:
      a strict positive number
    • getPadder

      public char getPadder()
      The padding charactere
      Returns:
      the padding value
    • getAlignement

      public Fragment.PadWay getAlignement()
      the padding way
      Returns:
      the alignement xay
    • getFormat

      public String getFormat()
      The format for handling data
      Returns:
      a string, or null
    • isOptional

      public boolean isOptional()
      Flag for optional content
      Returns:
      true if optional
    • accept

      public void accept(NodeVisitor visitor)
      Consume a visitor
      Parameters:
      visitor - an instance