Class XmlSchemaScope
java.lang.Object
org.apache.ws.commons.schema.walker.XmlSchemaScope
The scope represents the set of types, attributes, and child groups invalid input: '&'
elements that the current type represents.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate XmlSchemaAnyAttributeprivate HashMap<QName, XmlSchemaAttrInfo> private XmlSchemaParticleprivate SchemasByNamespaceprivate Map<QName, XmlSchemaScope> private XmlSchemaTypeInfo -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInitialization of members to be filled in during the walk.privateXmlSchemaScope(XmlSchemaScope child, XmlSchemaType type) (package private)XmlSchemaScope(XmlSchemaType type, SchemasByNamespace xmlSchemasByNamespace, Map<QName, XmlSchemaScope> scopeCache, Set<QName> userRecognizedTypes) Initializes a newXmlSchemaScopewith a baseXmlSchemaElement. -
Method Summary
Modifier and TypeMethodDescriptionprivate HashMap<QName, XmlSchemaAttrInfo> createAttributeMap(Collection<? extends XmlSchemaAttributeOrGroupRef> attrs) (package private) XmlSchemaAnyAttributeThe wildcard attribute, if any.private XmlSchemaAttrInfogetAttribute(XmlSchemaAttribute attribute, boolean forceCopy) (package private) Collection<XmlSchemaAttrInfo> The attributes visible in the current scope.private ArrayList<XmlSchemaAttrInfo> getAttributesOf(XmlSchemaAttributeGroup attrGroup) private ArrayList<XmlSchemaAttrInfo> getAttributesOf(XmlSchemaAttributeGroupRef groupRef) private static StringgetName(XmlSchemaNamed name, String defaultName) (package private) XmlSchemaParticleIf the value is represented by a particle, returns that particle.private XmlSchemaScopegetScope(XmlSchemaType type) (package private) XmlSchemaTypeInfoThe type information of the value in scope.private QNamegetUserRecognizedType(QName simpleType, XmlSchemaTypeInfo parent) private HashMap<QName, XmlSchemaAttrInfo> mergeAttributes(HashMap<QName, XmlSchemaAttrInfo> parentAttrs, HashMap<QName, XmlSchemaAttrInfo> childAttrs) private static HashMap<XmlSchemaRestriction.Type, List<XmlSchemaRestriction>> mergeFacets(HashMap<XmlSchemaRestriction.Type, List<XmlSchemaRestriction>> parentFacets, List<XmlSchemaFacet> child) private static XmlSchemaTypeInforestrictTypeInfo(XmlSchemaTypeInfo parentTypeInfo, HashMap<XmlSchemaRestriction.Type, List<XmlSchemaRestriction>> facets) private voidwalk(boolean isMixed, XmlSchemaContent content) private voidwalk(XmlSchemaComplexType complexType) private voidwalk(XmlSchemaSimpleType simpleType) private voidwalk(XmlSchemaType type)
-
Field Details
-
schemasByNamespace
-
scopeCache
-
typeInfo
-
attributes
-
child
-
anyAttr
-
userRecognizedTypes
-
-
Constructor Details
-
XmlSchemaScope
private XmlSchemaScope()Initialization of members to be filled in during the walk. -
XmlSchemaScope
-
XmlSchemaScope
XmlSchemaScope(XmlSchemaType type, SchemasByNamespace xmlSchemasByNamespace, Map<QName, XmlSchemaScope> scopeCache, Set<QName> userRecognizedTypes) Initializes a newXmlSchemaScopewith a baseXmlSchemaElement. The element type and attributes will be traversed, and attribute lists and element children will be retrieved.
-
-
Method Details
-
getTypeInfo
XmlSchemaTypeInfo getTypeInfo()The type information of the value in scope. -
getAttributesInScope
Collection<XmlSchemaAttrInfo> getAttributesInScope()The attributes visible in the current scope. -
getParticle
XmlSchemaParticle getParticle()If the value is represented by a particle, returns that particle. Otherwise returnsnull. -
getAnyAttribute
XmlSchemaAnyAttribute getAnyAttribute()The wildcard attribute, if any. -
walk
-
walk
-
walk
-
walk
-
getAttributesOf
-
getAttributesOf
-
getAttribute
-
createAttributeMap
private HashMap<QName,XmlSchemaAttrInfo> createAttributeMap(Collection<? extends XmlSchemaAttributeOrGroupRef> attrs) -
mergeAttributes
private HashMap<QName,XmlSchemaAttrInfo> mergeAttributes(HashMap<QName, XmlSchemaAttrInfo> parentAttrs, HashMap<QName, XmlSchemaAttrInfo> childAttrs) -
getScope
-
getUserRecognizedType
-
getName
-
mergeFacets
private static HashMap<XmlSchemaRestriction.Type,List<XmlSchemaRestriction>> mergeFacets(HashMap<XmlSchemaRestriction.Type, List<XmlSchemaRestriction>> parentFacets, List<XmlSchemaFacet> child) -
restrictTypeInfo
private static XmlSchemaTypeInfo restrictTypeInfo(XmlSchemaTypeInfo parentTypeInfo, HashMap<XmlSchemaRestriction.Type, List<XmlSchemaRestriction>> facets)
-