XsdAll, XsdChoice, XsdSequencepublic abstract class XsdMultipleElements extends XsdAnnotatedElements
XsdAll, XsdChoice and
XsdSequence. Those three classes share elements which is a list of
XsdAbstractElement objects contained in each of these types. The types of the instances present in the
elements list depends on the concrete type, XsdAll, XsdChoice or
XsdSequence.| Modifier and Type | Field | Description |
|---|---|---|
private List<ReferenceBase> |
elements |
A list of elements that are contained in the concrete implementation of the
XsdMultipleElements instance. |
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| Constructor | Description |
|---|---|
XsdMultipleElements(XsdParser parser,
Map<String,String> elementFieldsMapParam) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addElement(XsdAbstractElement element) |
|
static XsdChoice |
getChildAsChoice(XsdMultipleElements element) |
|
static XsdAll |
getChildAsdAll(XsdMultipleElements element) |
|
static XsdSequence |
getChildAsSequence(XsdMultipleElements element) |
|
List<ReferenceBase> |
getElements() |
|
Stream<XsdAbstractElement> |
getXsdElements() |
|
void |
replaceUnsolvedElements(NamedConcreteElement elementWrapper) |
Replaces possible
UnsolvedReference objects in the elements if any of their
UnsolvedReference.ref field matches the NamedConcreteElement.name field. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, convertNodeMap, getElementFieldsMap, getParent, getParser, getVisitor, setParent, validateSchemaRules, xsdParseSkeleton, xsdRawContentParsegetAnnotation, setAnnotationgetId, setFieldsprivate List<ReferenceBase> elements
XsdMultipleElements instance.public void replaceUnsolvedElements(NamedConcreteElement elementWrapper)
UnsolvedReference objects in the elements if any of their
UnsolvedReference.ref field matches the NamedConcreteElement.name field.replaceUnsolvedElements in class XsdAbstractElementelementWrapper - A NamedConcreteElement with a name that will replace an UnsolvedReference
object, if a match between the NamedConcreteElement.name attribute and the
UnsolvedReference.ref attribute.public List<ReferenceBase> getElements()
getElements in class XsdAbstractElementpublic Stream<XsdAbstractElement> getXsdElements()
getXsdElements in class XsdAbstractElementUnsolvedReference objects aren't returned.public void addElement(XsdAbstractElement element)
public static XsdAll getChildAsdAll(XsdMultipleElements element)
public static XsdChoice getChildAsChoice(XsdMultipleElements element)
public static XsdSequence getChildAsSequence(XsdMultipleElements element)
element - The element containing the child to return.XsdSequence object or null if childElement isn't a XsdSequence instance.Copyright © 2018. All rights reserved.