final class XmlSchemaScope
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private XmlSchemaAnyAttribute |
anyAttr |
private java.util.HashMap<javax.xml.namespace.QName,XmlSchemaAttrInfo> |
attributes |
private XmlSchemaParticle |
child |
private java.util.Map<java.lang.String,XmlSchema> |
schemasByNamespace |
private java.util.Map<javax.xml.namespace.QName,XmlSchemaScope> |
scopeCache |
private XmlSchemaTypeInfo |
typeInfo |
private java.util.Set<javax.xml.namespace.QName> |
userRecognizedTypes |
| Modifier | Constructor and Description |
|---|---|
private |
XmlSchemaScope()
Initialization of members to be filled in during the walk.
|
private |
XmlSchemaScope(XmlSchemaScope child,
XmlSchemaType type) |
(package private) |
XmlSchemaScope(XmlSchemaType type,
java.util.Map<java.lang.String,XmlSchema> xmlSchemasByNamespace,
java.util.Map<javax.xml.namespace.QName,XmlSchemaScope> scopeCache,
java.util.Set<javax.xml.namespace.QName> userRecognizedTypes)
Initializes a new
XmlSchemaScope with a base
XmlSchemaElement. |
| Modifier and Type | Method and Description |
|---|---|
private java.util.HashMap<javax.xml.namespace.QName,XmlSchemaAttrInfo> |
createAttributeMap(java.util.Collection<? extends XmlSchemaAttributeOrGroupRef> attrs) |
(package private) XmlSchemaAnyAttribute |
getAnyAttribute()
The wildcard attribute, if any.
|
private XmlSchemaAttrInfo |
getAttribute(XmlSchemaAttribute attribute,
boolean forceCopy) |
(package private) java.util.Collection<XmlSchemaAttrInfo> |
getAttributesInScope()
The attributes visible in the current scope.
|
private java.util.ArrayList<XmlSchemaAttrInfo> |
getAttributesOf(XmlSchemaAttributeGroup attrGroup) |
private java.util.ArrayList<XmlSchemaAttrInfo> |
getAttributesOf(XmlSchemaAttributeGroupRef groupRef) |
private static java.lang.String |
getName(XmlSchemaNamed name,
java.lang.String defaultName) |
(package private) XmlSchemaParticle |
getParticle()
If the value is represented by a particle, returns that particle.
|
private XmlSchemaScope |
getScope(XmlSchemaType type) |
(package private) XmlSchemaTypeInfo |
getTypeInfo()
The type information of the value in scope.
|
private javax.xml.namespace.QName |
getUserRecognizedType(javax.xml.namespace.QName simpleType,
XmlSchemaTypeInfo parent) |
private java.util.HashMap<javax.xml.namespace.QName,XmlSchemaAttrInfo> |
mergeAttributes(java.util.HashMap<javax.xml.namespace.QName,XmlSchemaAttrInfo> parentAttrs,
java.util.HashMap<javax.xml.namespace.QName,XmlSchemaAttrInfo> childAttrs) |
private static java.util.HashMap<XmlSchemaRestriction.Type,java.util.List<XmlSchemaRestriction>> |
mergeFacets(java.util.HashMap<XmlSchemaRestriction.Type,java.util.List<XmlSchemaRestriction>> parentFacets,
java.util.List<XmlSchemaFacet> child) |
private static XmlSchemaTypeInfo |
restrictTypeInfo(XmlSchemaTypeInfo parentTypeInfo,
java.util.HashMap<XmlSchemaRestriction.Type,java.util.List<XmlSchemaRestriction>> facets) |
private void |
walk(boolean isMixed,
XmlSchemaContent content) |
private void |
walk(XmlSchemaComplexType complexType) |
private void |
walk(XmlSchemaSimpleType simpleType) |
private void |
walk(XmlSchemaType type) |
private java.util.Map<java.lang.String,XmlSchema> schemasByNamespace
private java.util.Map<javax.xml.namespace.QName,XmlSchemaScope> scopeCache
private XmlSchemaTypeInfo typeInfo
private java.util.HashMap<javax.xml.namespace.QName,XmlSchemaAttrInfo> attributes
private XmlSchemaParticle child
private XmlSchemaAnyAttribute anyAttr
private java.util.Set<javax.xml.namespace.QName> userRecognizedTypes
private XmlSchemaScope()
private XmlSchemaScope(XmlSchemaScope child, XmlSchemaType type)
XmlSchemaScope(XmlSchemaType type, java.util.Map<java.lang.String,XmlSchema> xmlSchemasByNamespace, java.util.Map<javax.xml.namespace.QName,XmlSchemaScope> scopeCache, java.util.Set<javax.xml.namespace.QName> userRecognizedTypes)
XmlSchemaScope with a base
XmlSchemaElement. The element type and attributes will be
traversed, and attribute lists and element children will be retrieved.element - The base element to build the scope from.substitutions - The master list of substitution groups to pull from.userRecognizedTypes - The set of types recognized by the caller.XmlSchemaTypeInfo getTypeInfo()
java.util.Collection<XmlSchemaAttrInfo> getAttributesInScope()
XmlSchemaParticle getParticle()
null.XmlSchemaAnyAttribute getAnyAttribute()
private void walk(XmlSchemaType type)
private void walk(XmlSchemaSimpleType simpleType)
private void walk(XmlSchemaComplexType complexType)
private void walk(boolean isMixed,
XmlSchemaContent content)
private java.util.ArrayList<XmlSchemaAttrInfo> getAttributesOf(XmlSchemaAttributeGroupRef groupRef)
private java.util.ArrayList<XmlSchemaAttrInfo> getAttributesOf(XmlSchemaAttributeGroup attrGroup)
private XmlSchemaAttrInfo getAttribute(XmlSchemaAttribute attribute, boolean forceCopy)
private java.util.HashMap<javax.xml.namespace.QName,XmlSchemaAttrInfo> createAttributeMap(java.util.Collection<? extends XmlSchemaAttributeOrGroupRef> attrs)
private java.util.HashMap<javax.xml.namespace.QName,XmlSchemaAttrInfo> mergeAttributes(java.util.HashMap<javax.xml.namespace.QName,XmlSchemaAttrInfo> parentAttrs, java.util.HashMap<javax.xml.namespace.QName,XmlSchemaAttrInfo> childAttrs)
private XmlSchemaScope getScope(XmlSchemaType type)
private javax.xml.namespace.QName getUserRecognizedType(javax.xml.namespace.QName simpleType,
XmlSchemaTypeInfo parent)
private static java.lang.String getName(XmlSchemaNamed name, java.lang.String defaultName)
private static java.util.HashMap<XmlSchemaRestriction.Type,java.util.List<XmlSchemaRestriction>> mergeFacets(java.util.HashMap<XmlSchemaRestriction.Type,java.util.List<XmlSchemaRestriction>> parentFacets, java.util.List<XmlSchemaFacet> child)
private static XmlSchemaTypeInfo restrictTypeInfo(XmlSchemaTypeInfo parentTypeInfo, java.util.HashMap<XmlSchemaRestriction.Type,java.util.List<XmlSchemaRestriction>> facets)