public class SchemaIndexImpl extends Object implements SchemaIndex
| Constructor and Description |
|---|
SchemaIndexImpl(XSDSchema[] schemas) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildAttributeGroupIndex() |
protected void |
buildAttriubuteIndex() |
protected void |
buildComplexTypeIndex() |
protected void |
buildElementIndex() |
protected void |
buildSimpleTypeIndex() |
protected OrderedMap |
children(XSDElementDeclaration parent) |
void |
destroy()
Cleans up the index before desctruction.
|
protected Collection |
find(Class c) |
XSDAttributeDeclaration |
getAttributeDeclaration(QName qName)
Returns the attribute declaration with the specified qualified name.
|
XSDAttributeGroupDefinition |
getAttributeGroupDefinition(QName qName)
Returns the attribute group definition with the specified qualified name.
|
protected HashMap |
getAttributeGroupIndex() |
protected HashMap |
getAttributeIndex() |
List |
getAttributes(XSDElementDeclaration element)
Returns the attributes of a specified elements.
|
XSDElementDeclaration |
getChildElement(XSDElementDeclaration parent,
QName childName)
Returns a child element specified by name of a parent element.
|
List |
getChildElementParticles(XSDElementDeclaration parent)
Returns a list of the particles which correspond to child element declarations.
|
XSDComplexTypeDefinition |
getComplexTypeDefinition(QName qName)
Returns the complex type definition with the specified qualified name.
|
protected HashMap |
getComplexTypeIndex() |
XSDElementDeclaration |
getElementDeclaration(QName qName)
Returns the element declaration with the specified qualified name.
|
protected HashMap |
getElementIndex() |
XSDImport[] |
getImports() |
XSDInclude[] |
getIncludes() |
XSDSchema[] |
getSchemas() |
XSDSimpleTypeDefinition |
getSimpleTypeDefinition(QName qName)
Returns the simple type definition with the specified qualified name.
|
protected HashMap |
getSimpleTypeIndex() |
XSDTypeDefinition |
getTypeDefinition(QName qName)
Returns the type definition with the specified qualified name.
|
protected XSDNamedComponent |
lookup(Map index,
QName qName) |
public void destroy()
SchemaIndexdestroy in interface SchemaIndexpublic XSDSchema[] getSchemas()
getSchemas in interface SchemaIndexpublic XSDImport[] getImports()
public XSDInclude[] getIncludes()
public XSDElementDeclaration getElementDeclaration(QName qName)
SchemaIndexgetElementDeclaration in interface SchemaIndexqName - the qualified name of the element.public XSDAttributeDeclaration getAttributeDeclaration(QName qName)
SchemaIndexgetAttributeDeclaration in interface SchemaIndexqName - the qualified name of the attribute.public XSDAttributeGroupDefinition getAttributeGroupDefinition(QName qName)
SchemaIndexgetAttributeGroupDefinition in interface SchemaIndexqName - the qualified name of the attribute group.public XSDComplexTypeDefinition getComplexTypeDefinition(QName qName)
SchemaIndexgetComplexTypeDefinition in interface SchemaIndexqName - qualified name of the complex type.public XSDSimpleTypeDefinition getSimpleTypeDefinition(QName qName)
SchemaIndexgetSimpleTypeDefinition in interface SchemaIndexqName - qualified name of the simple type.public XSDTypeDefinition getTypeDefinition(QName qName)
SchemaIndexgetTypeDefinition in interface SchemaIndexqName - qualified name of the type.protected OrderedMap children(XSDElementDeclaration parent)
public XSDElementDeclaration getChildElement(XSDElementDeclaration parent,
QName childName)
SchemaIndexgetChildElement in interface SchemaIndexparent - The parent element.childName - The name of the child.public List getChildElementParticles(XSDElementDeclaration parent)
SchemaIndexgetChildElementParticles in interface SchemaIndexparent - The parent element.XSDParticle.public List getAttributes(XSDElementDeclaration element)
SchemaIndexgetAttributes in interface SchemaIndexelement - The element.protected Collection find(Class c)
protected HashMap getElementIndex()
protected HashMap getAttributeIndex()
protected HashMap getAttributeGroupIndex()
protected HashMap getComplexTypeIndex()
protected HashMap getSimpleTypeIndex()
protected void buildElementIndex()
protected void buildAttriubuteIndex()
protected void buildAttributeGroupIndex()
protected void buildComplexTypeIndex()
protected void buildSimpleTypeIndex()
Copyright © 1996–2019 Geotools. All rights reserved.