public class XsdChoice extends XsdMultipleElements
XsdChoice or
XsdSequence it extends XsdMultipleElements. For more information check XsdMultipleElements.| Modifier and Type | Field | Description |
|---|---|---|
private String |
maxOccurs |
Specifies the maximum number of times this element can occur in the parent element.
|
private Integer |
minOccurs |
Specifies the minimum number of times this element can occur in the parent element.
|
private XsdChoiceVisitor |
visitor |
XsdChoiceVisitor instance which restricts the children elements to XsdElement, XsdGroup,
XsdChoice, XsdSequence. |
static String |
XS_TAG |
|
static String |
XSD_TAG |
ABSTRACT_TAG, ATTRIBUTE_FORM_DEFAULT, BASE_TAG, BLOCK_DEFAULT, BLOCK_TAG, DEFAULT_ELEMENT_TAG, DEFAULT_TAG, ELEMENT_FORM_DEFAULT, elementFieldsMap, FINAL_DEFAULT, FINAL_TAG, FIXED_TAG, FORM_TAG, ID_TAG, ITEM_TYPE_TAG, MAX_OCCURS_TAG, MEMBER_TYPES_TAG, MIN_OCCURS_TAG, MIXED_TAG, NAME_TAG, NAMESPACE, NILLABLE_TAG, parent, parser, REF_TAG, SCHEMA_LOCATION, SOURCE_TAG, SUBSTITUTION_GROUP_TAG, TARGET_NAMESPACE, TYPE_TAG, USE_TAG, VALUE_TAG, VERSION, XML_LANG_TAG, XMLNS| Modifier | Constructor | Description |
|---|---|---|
private |
XsdChoice(XsdParser parser,
Map<String,String> elementFieldsMapParam) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(XsdAbstractElementVisitor visitorParam) |
Base method for all accept methods.
|
Stream<XsdChoice> |
getChildrenChoices() |
|
Stream<XsdElement> |
getChildrenElements() |
|
Stream<XsdGroup> |
getChildrenGroups() |
|
Stream<XsdSequence> |
getChildrenSequences() |
|
String |
getMaxOccurs() |
|
Integer |
getMinOccurs() |
|
XsdChoiceVisitor |
getVisitor() |
Obtains the visitor of a concrete
XsdAbstractElement instance. |
static ReferenceBase |
parse(XsdParser parser,
Node node) |
|
void |
setFields(Map<String,String> elementFieldsMapParam) |
Sets the occurs fields with the information provided in the Map object or with their default values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertNodeMap, getElementFieldsMap, getParent, getParser, setParent, validateSchemaRules, xsdParseSkeleton, xsdRawContentParsegetAnnotation, setAnnotationgetIdaddElement, getChildAsChoice, getChildAsdAll, getChildAsSequence, getElements, getXsdElements, replaceUnsolvedElementspublic static final String XSD_TAG
public static final String XS_TAG
private XsdChoiceVisitor visitor
XsdChoiceVisitor instance which restricts the children elements to XsdElement, XsdGroup,
XsdChoice, XsdSequence.
Can also have XsdAnnotation as children as per inheritance of XsdAnnotatedElementsVisitor.private Integer minOccurs
private String maxOccurs
public void setFields(@NotNull
Map<String,String> elementFieldsMapParam)
setFields in class XsdIdentifierElementselementFieldsMapParam - The Map object containing the information previously contained in the Node object.public void accept(XsdAbstractElementVisitor visitorParam)
XsdAbstractElementaccept in class XsdAbstractElementvisitorParam - The visitor that is visiting the current instance.public XsdChoiceVisitor getVisitor()
XsdAbstractElementXsdAbstractElement instance.getVisitor in class XsdAbstractElementpublic static ReferenceBase parse(@NotNull XsdParser parser, Node node)
public Integer getMinOccurs()
public String getMaxOccurs()
public Stream<XsdChoice> getChildrenChoices()
XsdChoice.public Stream<XsdElement> getChildrenElements()
XsdElement.public Stream<XsdSequence> getChildrenSequences()
XsdSequence.Copyright © 2018. All rights reserved.