Package com.tailf.maapi
Class MaapiSchemas.CSChoice
Object
com.tailf.maapi.MaapiSchemas.CSChoice
- Enclosing class:
- MaapiSchemas
Class representing a Schema Choice
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIf this choice is defined as a case for another choice this method returns the case, otherwise null is returned.getCases()
get List of cases for this choice.get default case for the choice.int
get MinOccurs for the choicegetNS()
get namespace represented as stringint
get namespace represented as hash valueget parent node for the choice.get List of sibling choices with the same parent node.getTag()
get choice tag represented as stringint
get choice tag represented as hash valuetoString()
Informative string representation of a CSChoice instance
-
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
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
get namespace represented as string- Returns:
- String namespace
-
getMinOccurs
public int getMinOccurs()get MinOccurs for the choice- Returns:
- int minOccurs
-
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
get parent node for the choice.- Returns:
- CSNode parent node
-
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
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
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
Informative string representation of a CSChoice instance
-