public class XsdSchema extends XsdAnnotatedElements
| Modifier and Type | Field | Description |
|---|---|---|
private FormEnum |
attributeFormDefault |
Specifies if the form attribute for the current
XsdSchema children attributes. |
private BlockDefaultEnum |
blockDefault |
Specifies if the block attribute for the current
XsdSchema children such as XsdElement and
XsdComplexType. |
private FormEnum |
elementFormDefault |
Specifies if the form attribute for the current
XsdSchema children elements. |
private List<XsdAbstractElement> |
elements |
The children elements contained in this
XsdSchema element. |
private FinalDefaultEnum |
finalDefault |
Specifies if the final attribute for the current
XsdSchema children such as XsdElement,
XsdSimpleType and XsdComplexType. |
private String |
targetNamespace |
A URI reference of the namespace of this
XsdSchema element. |
private String |
version |
The version of this
XsdSchema element. |
private XsdSchemaVisitor |
visitor |
XsdSchemaVisitor which restricts its children to XsdInclude, XsdImport,
XsdAnnotation, XsdSimpleType, XsdComplexType, XsdGroup, XsdAttribute,
XsdAttributeGroup and XsdElement instances. |
private String |
xmlns |
A URI reference that specifies one or more namespaces for use in this
XsdSchema. |
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 |
XsdSchema(XsdParser parser,
Map<String,String> elementFieldsMapParam) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, convertNodeMap, getElementFieldsMap, getParent, getParser, replaceUnsolvedElements, setParent, validateSchemaRules, xsdParseSkeleton, xsdRawContentParsegetAnnotation, setAnnotationgetIdpublic static final String XSD_TAG
public static final String XS_TAG
private XsdSchemaVisitor visitor
XsdSchemaVisitor which restricts its children to XsdInclude, XsdImport,
XsdAnnotation, XsdSimpleType, XsdComplexType, XsdGroup, XsdAttribute,
XsdAttributeGroup and XsdElement instances.private FormEnum attributeFormDefault
XsdSchema children attributes. The default value is
"unqualified". Other possible value is "qualified".private FormEnum elementFormDefault
XsdSchema children elements. The default value is
"unqualified". Other possible value is "qualified".private BlockDefaultEnum blockDefault
XsdSchema children such as XsdElement and
XsdComplexType. The default value is "". Other possible value are "extension", "restriction",
"substitution" and "#all".private FinalDefaultEnum finalDefault
XsdSchema children such as XsdElement,
XsdSimpleType and XsdComplexType. The default value is "". Other possible value are "extension",
"restriction", "list", "union" and "#all".private String targetNamespace
XsdSchema element.private String xmlns
XsdSchema. If no prefix is assigned,
the schema components of the namespace can be used with unqualified references.private List<XsdAbstractElement> elements
XsdSchema element.public void setFields(@NotNull
Map<String,String> elementFieldsMapParam)
XsdSchema instance. Most values don't have default values except the
XsdAttribute.use field. Regarding the XsdAttribute.type field we check if the value present is a
built-in type, if not we create an UnsolvedReference object to be resolved at a later time in the
parsing process.setFields in class XsdIdentifierElementselementFieldsMapParam - The Map object containing all the information previously contained in the parsed Node.public XsdAbstractElementVisitor getVisitor()
XsdAbstractElementXsdAbstractElement instance.getVisitor in class XsdAbstractElementpublic Stream<XsdAbstractElement> getXsdElements()
getXsdElements in class XsdAbstractElementConcreteElement objects present in the concrete implementation of the
XsdAbstractElement class. It doesn't return the UnsolvedReference objects.public List<ReferenceBase> getElements()
getElements in class XsdAbstractElementpublic static ReferenceBase parse(@NotNull XsdParser parser, Node node)
public void add(XsdInclude element)
public void add(XsdImport element)
public void add(XsdAnnotation element)
public void add(XsdSimpleType element)
public void add(XsdComplexType element)
public void add(XsdGroup element)
public void add(XsdAttributeGroup element)
public void add(XsdElement element)
public void add(XsdAttribute element)
public String getAttributeFormDefault()
public String getElementFormDefault()
public String getBlockDefault()
public String getFinalDefault()
public String getTargetNamespace()
public String getVersion()
public String getXmlns()
public Stream<XsdInclude> getChildrenIncludes()
XsdInclude.public Stream<XsdImport> getChildrenImports()
XsdImport.public Stream<XsdAnnotation> getChildrenAnnotations()
XsdAnnotation.public Stream<XsdSimpleType> getChildrenSimpleTypes()
XsdSimpleType.public Stream<XsdComplexType> getChildrenComplexTypes()
XsdComplexType.public Stream<XsdGroup> getChildrenGroups()
XsdGroup.public Stream<XsdAttributeGroup> getChildrenAttributeGroups()
XsdAttributeGroup.public Stream<XsdElement> getChildrenElements()
XsdElement.public Stream<XsdAttribute> getChildrenAttributes()
XsdAttribute.Copyright © 2018. All rights reserved.