Package org.geotools.xsd.impl
Class SchemaIndexImpl
Object
SchemaIndexImpl
- All Implemented Interfaces:
SchemaIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidprotected voidprotected voidprotected OrderedMap<QName,XSDParticle> children(XSDElementDeclaration parent) voiddestroy()Cleans up the index before desctruction.protected <T> Collection<T>XSDAttributeDeclarationgetAttributeDeclaration(QName qName) Returns the attribute declaration with the specified qualified name.XSDAttributeGroupDefinitiongetAttributeGroupDefinition(QName qName) Returns the attribute group definition with the specified qualified name.protected HashMapprotected HashMapgetAttributes(XSDElementDeclaration element) Returns the attributes of a specified elements.XSDElementDeclarationgetChildElement(XSDElementDeclaration parent, QName childName) Returns a child element specified by name of a parent element.List<XSDParticle>getChildElementParticles(XSDElementDeclaration parent) Returns a list of the particles which correspond to child element declarations.XSDComplexTypeDefinitiongetComplexTypeDefinition(QName qName) Returns the complex type definition with the specified qualified name.protected HashMapXSDElementDeclarationgetElementDeclaration(QName qName) Returns the element declaration with the specified qualified name.protected HashMapXSDImport[]XSDInclude[]XSDSchema[]XSDSimpleTypeDefinitiongetSimpleTypeDefinition(QName qName) Returns the simple type definition with the specified qualified name.protected HashMapXSDTypeDefinitiongetTypeDefinition(QName qName) Returns the type definition with the specified qualified name.protected XSDNamedComponent
-
Constructor Details
-
SchemaIndexImpl
public SchemaIndexImpl(XSDSchema[] schemas)
-
-
Method Details
-
destroy
public void destroy()Description copied from interface:SchemaIndexCleans up the index before desctruction.- Specified by:
destroyin interfaceSchemaIndex
-
getSchemas
public XSDSchema[] getSchemas()- Specified by:
getSchemasin interfaceSchemaIndex- Returns:
- The schema itself.
-
getImports
public XSDImport[] getImports() -
getIncludes
public XSDInclude[] getIncludes() -
getElementDeclaration
Description copied from interface:SchemaIndexReturns the element declaration with the specified qualified name.- Specified by:
getElementDeclarationin interfaceSchemaIndex- Parameters:
qName- the qualified name of the element.- Returns:
- The element declaration, or null if no such element declaration exists.
-
getAttributeDeclaration
Description copied from interface:SchemaIndexReturns the attribute declaration with the specified qualified name.- Specified by:
getAttributeDeclarationin interfaceSchemaIndex- Parameters:
qName- the qualified name of the attribute.- Returns:
- The attribute declaration, or null if no such attribute declaration exists.
-
getAttributeGroupDefinition
Description copied from interface:SchemaIndexReturns the attribute group definition with the specified qualified name.- Specified by:
getAttributeGroupDefinitionin interfaceSchemaIndex- Parameters:
qName- the qualified name of the attribute group.- Returns:
- The attribute group definition, or null if no such attribute group definition exists.
-
getComplexTypeDefinition
Description copied from interface:SchemaIndexReturns the complex type definition with the specified qualified name.- Specified by:
getComplexTypeDefinitionin interfaceSchemaIndex- Parameters:
qName- qualified name of the complex type.- Returns:
- The complex type definition, or null if no such complex type definition exists.
-
getSimpleTypeDefinition
Description copied from interface:SchemaIndexReturns the simple type definition with the specified qualified name.- Specified by:
getSimpleTypeDefinitionin interfaceSchemaIndex- Parameters:
qName- qualified name of the simple type.- Returns:
- The simple type definition, or null if no such simple type definition exists.
-
getTypeDefinition
Description copied from interface:SchemaIndexReturns the type definition with the specified qualified name.- Specified by:
getTypeDefinitionin interfaceSchemaIndex- Parameters:
qName- qualified name of the type.- Returns:
- The type definition, or null if no such type definition exists.
-
lookup
-
children
-
getChildElement
Description copied from interface:SchemaIndexReturns a child element specified by name of a parent element.- Specified by:
getChildElementin interfaceSchemaIndex- Parameters:
parent- The parent element.childName- The name of the child.- Returns:
- The element declaration, or null if no such child exists.
-
getChildElementParticles
Description copied from interface:SchemaIndexReturns a list of the particles which correspond to child element declarations.- Specified by:
getChildElementParticlesin interfaceSchemaIndex- Parameters:
parent- The parent element.- Returns:
- A list of
XSDParticle.
-
getAttributes
Description copied from interface:SchemaIndexReturns the attributes of a specified elements.- Specified by:
getAttributesin interfaceSchemaIndex- Parameters:
element- The element.- Returns:
- The list of attributed definied for the element.
-
find
-
getElementIndex
-
getAttributeIndex
-
getAttributeGroupIndex
-
getComplexTypeIndex
-
getSimpleTypeIndex
-
buildElementIndex
protected void buildElementIndex() -
buildAttriubuteIndex
protected void buildAttriubuteIndex() -
buildAttributeGroupIndex
protected void buildAttributeGroupIndex() -
buildComplexTypeIndex
protected void buildComplexTypeIndex() -
buildSimpleTypeIndex
protected void buildSimpleTypeIndex()
-