|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.xml.impl.SchemaIndexImpl
public class SchemaIndexImpl
Constructor Summary | |
---|---|
SchemaIndexImpl(org.eclipse.xsd.XSDSchema[] schemas)
|
Method Summary | |
---|---|
protected void |
buildAttributeGroupIndex()
|
protected void |
buildAttriubuteIndex()
|
protected void |
buildComplexTypeIndex()
|
protected void |
buildElementIndex()
|
protected void |
buildSimpleTypeIndex()
|
protected org.apache.commons.collections.OrderedMap |
children(org.eclipse.xsd.XSDElementDeclaration parent)
|
void |
destroy()
Cleans up the index before desctruction. |
protected java.util.Collection |
find(java.lang.Class c)
|
org.eclipse.xsd.XSDAttributeDeclaration |
getAttributeDeclaration(javax.xml.namespace.QName qName)
Returns the attribute declaration with the specified qualified name. |
org.eclipse.xsd.XSDAttributeGroupDefinition |
getAttributeGroupDefinition(javax.xml.namespace.QName qName)
Returns the attribute group definition with the specified qualified name. |
protected java.util.HashMap |
getAttributeGroupIndex()
|
protected java.util.HashMap |
getAttributeIndex()
|
java.util.List |
getAttributes(org.eclipse.xsd.XSDElementDeclaration element)
Returns the attributes of a specified elements. |
org.eclipse.xsd.XSDElementDeclaration |
getChildElement(org.eclipse.xsd.XSDElementDeclaration parent,
javax.xml.namespace.QName childName)
Returns a child element specified by name of a parent element. |
java.util.List |
getChildElementParticles(org.eclipse.xsd.XSDElementDeclaration parent)
Returns a list of the particles which correspond to child element declarations. |
org.eclipse.xsd.XSDComplexTypeDefinition |
getComplexTypeDefinition(javax.xml.namespace.QName qName)
Returns the complex type definition with the specified qualified name. |
protected java.util.HashMap |
getComplexTypeIndex()
|
org.eclipse.xsd.XSDElementDeclaration |
getElementDeclaration(javax.xml.namespace.QName qName)
Returns the element declaration with the specified qualified name. |
protected java.util.HashMap |
getElementIndex()
|
org.eclipse.xsd.XSDImport[] |
getImports()
|
org.eclipse.xsd.XSDInclude[] |
getIncludes()
|
org.eclipse.xsd.XSDSchema[] |
getSchemas()
|
org.eclipse.xsd.XSDSimpleTypeDefinition |
getSimpleTypeDefinition(javax.xml.namespace.QName qName)
Returns the simple type definition with the specified qualified name. |
protected java.util.HashMap |
getSimpleTypeIndex()
|
org.eclipse.xsd.XSDTypeDefinition |
getTypeDefinition(javax.xml.namespace.QName qName)
Returns the type definition with the specified qualified name. |
protected org.eclipse.xsd.XSDNamedComponent |
lookup(java.util.Map index,
javax.xml.namespace.QName qName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaIndexImpl(org.eclipse.xsd.XSDSchema[] schemas)
Method Detail |
---|
public void destroy()
SchemaIndex
destroy
in interface SchemaIndex
public org.eclipse.xsd.XSDSchema[] getSchemas()
getSchemas
in interface SchemaIndex
public org.eclipse.xsd.XSDImport[] getImports()
public org.eclipse.xsd.XSDInclude[] getIncludes()
public org.eclipse.xsd.XSDElementDeclaration getElementDeclaration(javax.xml.namespace.QName qName)
SchemaIndex
getElementDeclaration
in interface SchemaIndex
qName
- the qualified name of the element.
public org.eclipse.xsd.XSDAttributeDeclaration getAttributeDeclaration(javax.xml.namespace.QName qName)
SchemaIndex
getAttributeDeclaration
in interface SchemaIndex
qName
- the qualified name of the attribute.
public org.eclipse.xsd.XSDAttributeGroupDefinition getAttributeGroupDefinition(javax.xml.namespace.QName qName)
SchemaIndex
getAttributeGroupDefinition
in interface SchemaIndex
qName
- the qualified name of the attribute group.
public org.eclipse.xsd.XSDComplexTypeDefinition getComplexTypeDefinition(javax.xml.namespace.QName qName)
SchemaIndex
getComplexTypeDefinition
in interface SchemaIndex
qName
- qualified name of the complex type.
public org.eclipse.xsd.XSDSimpleTypeDefinition getSimpleTypeDefinition(javax.xml.namespace.QName qName)
SchemaIndex
getSimpleTypeDefinition
in interface SchemaIndex
qName
- qualified name of the simple type.
public org.eclipse.xsd.XSDTypeDefinition getTypeDefinition(javax.xml.namespace.QName qName)
SchemaIndex
getTypeDefinition
in interface SchemaIndex
qName
- qualified name of the type.
protected org.eclipse.xsd.XSDNamedComponent lookup(java.util.Map index, javax.xml.namespace.QName qName)
protected org.apache.commons.collections.OrderedMap children(org.eclipse.xsd.XSDElementDeclaration parent)
public org.eclipse.xsd.XSDElementDeclaration getChildElement(org.eclipse.xsd.XSDElementDeclaration parent, javax.xml.namespace.QName childName)
SchemaIndex
getChildElement
in interface SchemaIndex
parent
- The parent element.childName
- The name of the child.
public java.util.List getChildElementParticles(org.eclipse.xsd.XSDElementDeclaration parent)
SchemaIndex
getChildElementParticles
in interface SchemaIndex
parent
- The parent element.
XSDParticle
.public java.util.List getAttributes(org.eclipse.xsd.XSDElementDeclaration element)
SchemaIndex
getAttributes
in interface SchemaIndex
element
- The element.
protected java.util.Collection find(java.lang.Class c)
protected java.util.HashMap getElementIndex()
protected java.util.HashMap getAttributeIndex()
protected java.util.HashMap getAttributeGroupIndex()
protected java.util.HashMap getComplexTypeIndex()
protected java.util.HashMap getSimpleTypeIndex()
protected void buildElementIndex()
protected void buildAttriubuteIndex()
protected void buildAttributeGroupIndex()
protected void buildComplexTypeIndex()
protected void buildSimpleTypeIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |