All Known Subinterfaces:
Schema.Field, Schema.Record
Enclosing interface:
Schema

public static interface Schema.Node
Schema Node - A Schema.Record or a Schema.Field.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns maximum number of occurrences.
    int
    Returns minimum number of occurrences.
    Returns the node name.
    boolean
    Returns true of the node has variable multiplicity.
    i.e.
  • Method Details

    • getName

      String getName()
      Returns the node name.
      Returns:
      the node name
    • getMin

      int getMin()
      Returns minimum number of occurrences.

      This may be 0 for a variable multiplicity field; otherwise, it will be a positive value.

      Returns:
      the minimum number of occurrences of the node within its parent
    • getMax

      int getMax()
      Returns maximum number of occurrences.

      This will be a positive value greater than or equal to the min value, or -1 to indicate an unlimited number.

      Returns:
      the maximum number of occurrences of the node within its parent
    • isVariable

      boolean isVariable()
      Returns true of the node has variable multiplicity.
      i.e. min != max.
      Returns:
      true if the node has variable multiplicity, or false if it has fixed multiplicity