public class XsdGroup extends XsdNamedElements
XsdNamedElements because it's one of the
XsdAbstractElement concrete classes that can have a XsdNamedElements.name attribute.| Modifier and Type | Field | Description |
|---|---|---|
private XsdMultipleElements |
childElement |
The child element of the
XsdGroup instance. |
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 XsdGroupVisitor |
visitor |
XsdGroupVisitor instance which restricts his children to XsdAll, XsdChoice or
XsdSequence instances. |
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, XMLNSname| Modifier | Constructor | Description |
|---|---|---|
private |
XsdGroup(XsdParser parser,
Map<String,String> elementFieldsMapParam) |
|
private |
XsdGroup(XsdAbstractElement parent,
XsdParser parser,
Map<String,String> elementFieldsMapParam) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(XsdAbstractElementVisitor visitorParam) |
Base method for all accept methods.
|
XsdNamedElements |
clone(Map<String,String> placeHolderAttributes) |
Performs a copy of the current object for replacing purposes.
|
XsdAll |
getChildAsAll() |
|
XsdChoice |
getChildAsChoice() |
|
XsdSequence |
getChildAsSequence() |
|
XsdMultipleElements |
getChildElement() |
|
List<ReferenceBase> |
getElements() |
|
String |
getMaxOccurs() |
|
Integer |
getMinOccurs() |
|
XsdGroupVisitor |
getVisitor() |
Obtains the visitor of a concrete
XsdAbstractElement instance. |
static ReferenceBase |
parse(XsdParser parser,
Node node) |
|
private void |
rule2() |
Asserts if the current object has the name attribute when not being a direct child of the XsdSchema element, which is
not allowed, throwing an exception in that case.
|
private void |
rule3() |
Asserts if the current has no value for its name attribute while being a direct child of the top level XsdSchema element,
which is required.
|
void |
setChildElement(XsdMultipleElements childElement) |
|
void |
setFields(Map<String,String> elementFieldsMapParam) |
Sets the occurs fields either with the Map values or with their default values.
|
void |
validateSchemaRules() |
Runs verifications on each concrete element to ensure that the XSD schema rules are verified.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertNodeMap, getElementFieldsMap, getParent, getParser, getXsdElements, replaceUnsolvedElements, setParent, xsdParseSkeleton, xsdRawContentParsegetAnnotation, setAnnotationgetIdgetName, getRawName, setNamepublic static final String XSD_TAG
public static final String XS_TAG
private XsdGroupVisitor visitor
XsdGroupVisitor instance which restricts his children to XsdAll, XsdChoice or
XsdSequence instances.
Can also have XsdAnnotation children as per inheritance of XsdAnnotatedElementsVisitor.private XsdMultipleElements childElement
XsdGroup instance. It can be a XsdAll, XsdChoice or a
XsdSequence instance.private Integer minOccurs
private String maxOccurs
private XsdGroup(@NotNull
XsdParser parser,
@NotNull
Map<String,String> elementFieldsMapParam)
private XsdGroup(XsdAbstractElement parent, @NotNull XsdParser parser, @NotNull Map<String,String> elementFieldsMapParam)
public void setFields(@NotNull
Map<String,String> elementFieldsMapParam)
setFields in class XsdNamedElementselementFieldsMapParam - The Map object containing the information previously contained in the Node object.public void validateSchemaRules()
validateSchemaRules in class XsdNamedElementsprivate void rule2()
private void rule3()
public void accept(XsdAbstractElementVisitor visitorParam)
XsdAbstractElementaccept in class XsdAbstractElementvisitorParam - The visitor that is visiting the current instance.public XsdGroupVisitor getVisitor()
XsdAbstractElementXsdAbstractElement instance.getVisitor in class XsdAbstractElementpublic List<ReferenceBase> getElements()
getElements in class XsdAbstractElementXsdGroup instance.public XsdNamedElements clone(@NotNull Map<String,String> placeHolderAttributes)
UnsolvedReference objects in the reference solving process.clone in class XsdNamedElementsplaceHolderAttributes - The additional attributes to add to the clone.public void setChildElement(XsdMultipleElements childElement)
public XsdMultipleElements getChildElement()
public XsdAll getChildAsAll()
public XsdChoice getChildAsChoice()
public XsdSequence getChildAsSequence()
XsdSequence object or null if childElement isn't a XsdSequence instance.public static ReferenceBase parse(@NotNull XsdParser parser, Node node)
public Integer getMinOccurs()
public String getMaxOccurs()
Copyright © 2018. All rights reserved.