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()
SchemaIndex
destroy
in interface SchemaIndex
public XSDSchema[] getSchemas()
getSchemas
in interface SchemaIndex
public XSDImport[] getImports()
public XSDInclude[] getIncludes()
public XSDElementDeclaration getElementDeclaration(QName qName)
SchemaIndex
getElementDeclaration
in interface SchemaIndex
qName
- the qualified name of the element.public XSDAttributeDeclaration getAttributeDeclaration(QName qName)
SchemaIndex
getAttributeDeclaration
in interface SchemaIndex
qName
- the qualified name of the attribute.public XSDAttributeGroupDefinition getAttributeGroupDefinition(QName qName)
SchemaIndex
getAttributeGroupDefinition
in interface SchemaIndex
qName
- the qualified name of the attribute group.public XSDComplexTypeDefinition getComplexTypeDefinition(QName qName)
SchemaIndex
getComplexTypeDefinition
in interface SchemaIndex
qName
- qualified name of the complex type.public XSDSimpleTypeDefinition getSimpleTypeDefinition(QName qName)
SchemaIndex
getSimpleTypeDefinition
in interface SchemaIndex
qName
- qualified name of the simple type.public XSDTypeDefinition getTypeDefinition(QName qName)
SchemaIndex
getTypeDefinition
in interface SchemaIndex
qName
- qualified name of the type.protected OrderedMap children(XSDElementDeclaration parent)
public XSDElementDeclaration getChildElement(XSDElementDeclaration parent, QName childName)
SchemaIndex
getChildElement
in interface SchemaIndex
parent
- The parent element.childName
- The name of the child.public List getChildElementParticles(XSDElementDeclaration parent)
SchemaIndex
getChildElementParticles
in interface SchemaIndex
parent
- The parent element.XSDParticle
.public List getAttributes(XSDElementDeclaration element)
SchemaIndex
getAttributes
in interface SchemaIndex
element
- 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.