Class ParamInfoGroup

java.lang.Object
com.adobe.xmp.schema.rng.model.ParamInfoGroup
All Implemented Interfaces:
ParamInfo

public class ParamInfoGroup extends Object implements ParamInfo
Defines a group of constraints on a property value.
  • Constructor Details

    • ParamInfoGroup

      public ParamInfoGroup(ParamInfoGroup.Operator operator)
      Constructs a new ParamInfoGroup.
      Parameters:
      operator - Operator which defines relationship between a stack of ParamInfo objects
  • Method Details

    • getOperator

      public ParamInfoGroup.Operator getOperator()
      Returns:
      the mOperator
    • push

      public void push(ParamInfo info)
      Pushes the ParamInfo object in this ParamInfoGroup
      Parameters:
      info - ParamInfo object to push
    • empty

      public boolean empty()
      Tests if this ParamInfoGroup is empty.
      Returns:
      true if and only if this ParamInfoGroup contains no ParamInfo items; false otherwise.
    • getParams

      public Stack<ParamInfo> getParams()
      Returns:
      Stack of ParamInfo objects contained in this ParamInfoGroup
    • equals

      public boolean equals(ParamInfo param)
      Specified by:
      equals in interface ParamInfo
      Parameters:
      param -
      Returns:
      Return true if param is equal to this, else false
    • setChoice

      public void setChoice(boolean isChoice)
      Set if this param group is defined inside a rng:choice
      Parameters:
      isChoice - boolean
    • isChoice

      public boolean isChoice()
      Gets if this param group is defined inside a rng:choice
      Returns:
      boolean
    • toString

      public String toString()
      Overrides:
      toString in class Object