public class XsdExtension extends XsdAnnotatedElements
| Modifier and Type | Field | Description |
|---|---|---|
private ReferenceBase |
base |
A
XsdElement instance wrapped in a ReferenceBase object from which this XsdExtension
instance extends. |
private ReferenceBase |
childElement |
The child element of the
XsdExtension instance. |
private XsdExtensionVisitor |
visitor |
XsdExtensionVisitor instance which restricts the children to XsdGroup and
XsdMultipleElements 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, XMLNS| Modifier | Constructor | Description |
|---|---|---|
private |
XsdExtension(XsdParser parser,
Map<String,String> elementFieldsMapParam) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(XsdAbstractElementVisitor visitorParam) |
Base method for all accept methods.
|
private boolean |
childrenIsMultipleElement() |
|
XsdElement |
getBase() |
|
XsdAll |
getChildAsAll() |
|
XsdChoice |
getChildAsChoice() |
|
XsdGroup |
getChildAsGroup() |
|
XsdSequence |
getChildAsSequence() |
|
List<ReferenceBase> |
getElements() |
|
XsdExtensionVisitor |
getVisitor() |
Obtains the visitor of a concrete
XsdAbstractElement instance. |
Stream<XsdAttributeGroup> |
getXsdAttributeGroup() |
|
Stream<XsdAttribute> |
getXsdAttributes() |
|
XsdAbstractElement |
getXsdChildElement() |
|
static ReferenceBase |
parse(XsdParser parser,
Node node) |
|
void |
replaceUnsolvedElements(NamedConcreteElement element) |
This method should always receive two elements, one to replace the
UnsolvedReference created due to
the value present in the base attribute and another if it has an UnsolvedReference as a child element. |
void |
setChildElement(ReferenceBase childElement) |
|
void |
setFields(Map<String,String> elementFieldsMapParam) |
Uses the base attribute value to add an
UnsolvedReference to resolve further in the parsing process. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertNodeMap, getElementFieldsMap, getParent, getParser, getXsdElements, setParent, validateSchemaRules, xsdParseSkeleton, xsdRawContentParsegetAnnotation, setAnnotationgetIdpublic static final String XSD_TAG
public static final String XS_TAG
private XsdExtensionVisitor visitor
XsdExtensionVisitor instance which restricts the children to XsdGroup and
XsdMultipleElements instances.
Can also have XsdAttribute and XsdAttributeGroup elements as children as per inheritance of
AttributesVisitor.
Can also have XsdAnnotation as children as per inheritance of XsdAnnotatedElementsVisitor.private ReferenceBase childElement
XsdExtension instance. Either a XsdGroup, XsdAll,
XsdSequence or a XsdChoice instance wrapped in a ReferenceBase object.private ReferenceBase base
XsdElement instance wrapped in a ReferenceBase object from which this XsdExtension
instance extends.public void setFields(@NotNull
Map<String,String> elementFieldsMapParam)
UnsolvedReference to resolve further in the parsing process.setFields in class XsdIdentifierElementselementFieldsMapParam - The Map object containing the information previously present in the Node object.public void replaceUnsolvedElements(NamedConcreteElement element)
UnsolvedReference created due to
the value present in the base attribute and another if it has an UnsolvedReference as a child element.replaceUnsolvedElements in class XsdAbstractElementelement - A concrete element with a name that will replace the UnsolvedReference object created in the
setFields(Map) method. The UnsolvedReference is only replaced if there
is a match between the UnsolvedReference.ref and the NamedConcreteElement.name.public XsdExtensionVisitor getVisitor()
XsdAbstractElementXsdAbstractElement instance.getVisitor in class XsdAbstractElementpublic void accept(XsdAbstractElementVisitor visitorParam)
XsdAbstractElementaccept in class XsdAbstractElementvisitorParam - The visitor that is visiting the current instance.public List<ReferenceBase> getElements()
getElements in class XsdAbstractElementpublic XsdElement getBase()
XsdElement from which it extends or null if the XsdParser wasn't able to replace
the UnsolvedReference created by the base attribute value.public static ReferenceBase parse(@NotNull XsdParser parser, Node node)
public Stream<XsdAttribute> getXsdAttributes()
public Stream<XsdAttributeGroup> getXsdAttributeGroup()
public XsdAbstractElement getXsdChildElement()
public void setChildElement(ReferenceBase childElement)
public XsdGroup getChildAsGroup()
public XsdAll getChildAsAll()
public XsdChoice getChildAsChoice()
public XsdSequence getChildAsSequence()
XsdSequence object or null if childElement isn't a XsdSequence instance.private boolean childrenIsMultipleElement()
Copyright © 2018. All rights reserved.