Class MaapiSchemas.CSChoice

Object
com.tailf.maapi.MaapiSchemas.CSChoice
Enclosing class:
MaapiSchemas

public class MaapiSchemas.CSChoice extends Object
Class representing a Schema Choice
  • Constructor Details

    • CSChoice

      public CSChoice()
      Constructor for CSChoice class
  • Method Details

    • getTagHash

      public int getTagHash()
      get choice tag represented as hash value
      Returns:
      int hashvalue for the tag
    • getTag

      public String getTag()
      get choice tag represented as string
      Returns:
      string tag
    • getNSHash

      public int getNSHash()
      get namespace represented as hash value
      Returns:
      int hashvalue for the namespace
    • getNS

      public String getNS()
      get namespace represented as string
      Returns:
      String namespace
    • getMinOccurs

      public int getMinOccurs()
      get MinOccurs for the choice
      Returns:
      int minOccurs
    • getDefaultCase

      public MaapiSchemas.CSCase getDefaultCase()
      get default case for the choice. The case is represented by a CSCase object
      Returns:
      CSCase default case or null if not defined
    • getParentNode

      public MaapiSchemas.CSNode getParentNode()
      get parent node for the choice.
      Returns:
      CSNode parent node
    • getCases

      public List<MaapiSchemas.CSCase> getCases()
      get List of cases for this choice. Cases are represented by CSCase objects and the list is a list of CSCase objects accordingly
      Returns:
      List of cases
    • getCaseParent

      public MaapiSchemas.CSCase getCaseParent()
      If this choice is defined as a case for another choice this method returns the case, otherwise null is returned.
      Returns:
      CsCase the case parent for this case if any
    • getSiblings

      public List<MaapiSchemas.CSChoice> getSiblings()
      get List of sibling choices with the same parent node. The List is a list of CSChoices and includes the current choice.
      Returns:
      List of sibling choices
    • toString

      public String toString()
      Informative string representation of a CSChoice instance
      Overrides:
      toString in class Object
      Returns:
      String