XsdAnnotationChildren, XsdIdentifierElementspublic abstract class XsdAbstractElement extends Object
XsdElement, XsdAttribute, etc.| Modifier and Type | Field | Description |
|---|---|---|
(package private) static String |
ABSTRACT_TAG |
|
(package private) static String |
ATTRIBUTE_FORM_DEFAULT |
|
(package private) static String |
BASE_TAG |
|
(package private) static String |
BLOCK_DEFAULT |
|
(package private) static String |
BLOCK_TAG |
|
(package private) static String |
DEFAULT_ELEMENT_TAG |
|
(package private) static String |
DEFAULT_TAG |
|
(package private) static String |
ELEMENT_FORM_DEFAULT |
|
protected Map<String,String> |
elementFieldsMap |
A
Map object containing the keys/values of the attributes that belong to the concrete element instance. |
(package private) static String |
FINAL_DEFAULT |
|
(package private) static String |
FINAL_TAG |
|
protected static String |
FIXED_TAG |
|
(package private) static String |
FORM_TAG |
|
(package private) static String |
ID_TAG |
|
(package private) static String |
ITEM_TYPE_TAG |
|
(package private) static String |
MAX_OCCURS_TAG |
|
(package private) static String |
MEMBER_TYPES_TAG |
|
(package private) static String |
MIN_OCCURS_TAG |
|
(package private) static String |
MIXED_TAG |
|
static String |
NAME_TAG |
|
(package private) static String |
NAMESPACE |
|
(package private) static String |
NILLABLE_TAG |
|
(package private) XsdAbstractElement |
parent |
The instance which contains the present element.
|
(package private) XsdParser |
parser |
The
XsdParser instance that parsed this element. |
static String |
REF_TAG |
|
(package private) static String |
SCHEMA_LOCATION |
|
(package private) static String |
SOURCE_TAG |
|
(package private) static String |
SUBSTITUTION_GROUP_TAG |
|
(package private) static String |
TARGET_NAMESPACE |
|
(package private) static String |
TYPE_TAG |
|
(package private) static String |
USE_TAG |
|
protected static String |
VALUE_TAG |
|
(package private) static String |
VERSION |
|
(package private) static String |
XML_LANG_TAG |
|
(package private) static String |
XMLNS |
| Modifier | Constructor | Description |
|---|---|---|
protected |
XsdAbstractElement(XsdParser parser,
Map<String,String> elementFieldsMapParam) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(XsdAbstractElementVisitor xsdAbstractElementVisitor) |
Base method for all accept methods.
|
protected static Map<String,String> |
convertNodeMap(NamedNodeMap nodeMap) |
Converts a
NamedNodeMap to a Map object. |
Map<String,String> |
getElementFieldsMap() |
|
List<ReferenceBase> |
getElements() |
|
XsdAbstractElement |
getParent() |
|
XsdParser |
getParser() |
|
abstract XsdAbstractElementVisitor |
getVisitor() |
Obtains the visitor of a concrete
XsdAbstractElement instance. |
Stream<XsdAbstractElement> |
getXsdElements() |
|
void |
replaceUnsolvedElements(NamedConcreteElement element) |
This method iterates on the current element children and replaces any
UnsolvedReference object that has a
ref attribute that matches the receiving NamedConcreteElement name attribute. |
void |
setFields(Map<String,String> elementFieldsMapParam) |
This method serves as a base to all
XsdAbstractElement concrete instances which need to set their class
specific fields. |
void |
setParent(XsdAbstractElement parent) |
|
private void |
setParser(XsdParser parser) |
|
void |
validateSchemaRules() |
Runs verifications on each concrete element to ensure that the XSD schema rules are verified.
|
(package private) static ReferenceBase |
xsdParseSkeleton(Node node,
XsdAbstractElement element) |
The base code for parsing any
XsdAbstractElement. |
(package private) static String |
xsdRawContentParse(Node node) |
In special cases such as
XsdAppInfo and XsdDocumentation the contents are a simple text node,
in which case this function is more suited than using the xsdParseSkeleton(org.w3c.dom.Node, org.xmlet.xsdparser.xsdelements.XsdAbstractElement) since
those types of elements can't have children nodes. |
protected Map<String,String> elementFieldsMap
Map object containing the keys/values of the attributes that belong to the concrete element instance.static final String ATTRIBUTE_FORM_DEFAULT
static final String ELEMENT_FORM_DEFAULT
static final String BLOCK_DEFAULT
static final String FINAL_DEFAULT
static final String TARGET_NAMESPACE
static final String VERSION
static final String XMLNS
static final String ID_TAG
public static final String NAME_TAG
static final String ABSTRACT_TAG
static final String DEFAULT_ELEMENT_TAG
protected static final String FIXED_TAG
static final String TYPE_TAG
static final String MIXED_TAG
static final String BLOCK_TAG
static final String FINAL_TAG
static final String USE_TAG
static final String SUBSTITUTION_GROUP_TAG
static final String DEFAULT_TAG
static final String FORM_TAG
static final String NILLABLE_TAG
static final String MIN_OCCURS_TAG
static final String MAX_OCCURS_TAG
static final String ITEM_TYPE_TAG
static final String BASE_TAG
static final String SOURCE_TAG
static final String XML_LANG_TAG
static final String MEMBER_TYPES_TAG
static final String SCHEMA_LOCATION
static final String NAMESPACE
public static final String REF_TAG
protected static final String VALUE_TAG
XsdAbstractElement parent
public void setFields(@NotNull
Map<String,String> elementFieldsMapParam)
XsdAbstractElement concrete instances which need to set their class
specific fields.elementFieldsMapParam - The Map object containing the information previously contained in the Node
object.public abstract XsdAbstractElementVisitor getVisitor()
XsdAbstractElement instance.public void validateSchemaRules()
public void accept(XsdAbstractElementVisitor xsdAbstractElementVisitor)
xsdAbstractElementVisitor - The visitor that is visiting the current instance.public List<ReferenceBase> getElements()
public Stream<XsdAbstractElement> getXsdElements()
ConcreteElement objects present in the concrete implementation of the
XsdAbstractElement class. It doesn't return the UnsolvedReference objects.static ReferenceBase xsdParseSkeleton(Node node, XsdAbstractElement element)
XsdAbstractElement. All the concrete implementations of this class should
call this method in order to parse its children.node - The node from where the element will be parsed.element - The concrete element that will be populated and returned.private void setParser(XsdParser parser)
public XsdParser getParser()
protected static Map<String,String> convertNodeMap(NamedNodeMap nodeMap)
NamedNodeMap to a Map object. This is meant to simplify the manipulation of the
information.nodeMap - The NamedNodeMap to convert to a Map object.Map object that was generated by the conversion.public void replaceUnsolvedElements(NamedConcreteElement element)
UnsolvedReference object that has a
ref attribute that matches the receiving NamedConcreteElement name attribute.element - A fully parsed element with a name that will replace an UnsolvedReference object, if a
match between the NamedConcreteElement name attribute and the UnsolvedReference
ref attribute.public XsdAbstractElement getParent()
XsdAbstractElement object.public void setParent(XsdAbstractElement parent)
static String xsdRawContentParse(Node node)
XsdAppInfo and XsdDocumentation the contents are a simple text node,
in which case this function is more suited than using the xsdParseSkeleton(org.w3c.dom.Node, org.xmlet.xsdparser.xsdelements.XsdAbstractElement) since
those types of elements can't have children nodes.node - The Node containing either a XsdAppInfo or XsdDocumentation.Node parameter.Copyright © 2018. All rights reserved.