deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official

org.deegree.tools.feature.gml
Class SchemaAnalyzer

java.lang.Object
  extended by org.deegree.tools.feature.gml.SchemaAnalyzer

@Tool(value="Prints an analysis of the global element declarations in an XML schema and their content models.")
public class SchemaAnalyzer
extends Object

Prints an analysis of the global element declarations in an XML schema.

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Field Summary
protected  org.apache.xerces.xs.XSModel schema
           
 
Constructor Summary
protected SchemaAnalyzer(org.apache.xerces.xs.XSModel schema)
           
 
Method Summary
(package private)  String generateOccurenceInfo(org.apache.xerces.xs.XSParticle particle)
           
(package private)  String generateParticleHierarchy(org.apache.xerces.xs.XSParticle particle, String indent)
           
(package private)  String generateSubstitutionHierarchy(org.apache.xerces.xs.XSElementDeclaration elementDecl, String indent)
           
(package private)  String generateTypeHierarchy(org.apache.xerces.xs.XSTypeDefinition type, String indent)
           
 String getElementDeclarationSummary(String namespace)
           
(package private)  List<PropertyDeclaration> getProperties(org.apache.xerces.xs.XSElementDeclaration elementDecl)
           
 Set<org.apache.xerces.xs.XSElementDeclaration> getSubstitutions(org.apache.xerces.xs.XSElementDeclaration substitutee)
           
(package private)  boolean isParticleRedundant(org.apache.xerces.xs.XSParticle particle)
           
static void main(String[] args)
           
 void printComplexTypesSummary(String namespace)
           
 void printSimpleTypesSummary(String namespace)
           
 String toString(QName elementName)
           
(package private)  String toString(org.apache.xerces.xs.XSComplexTypeDefinition complexType)
           
 String toString(org.apache.xerces.xs.XSElementDeclaration elementDecl)
           
(package private)  String toString(org.apache.xerces.xs.XSSimpleTypeDefinition simpleType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schema

protected final org.apache.xerces.xs.XSModel schema
Constructor Detail

SchemaAnalyzer

protected SchemaAnalyzer(org.apache.xerces.xs.XSModel schema)
Method Detail

getSubstitutions

public Set<org.apache.xerces.xs.XSElementDeclaration> getSubstitutions(org.apache.xerces.xs.XSElementDeclaration substitutee)

toString

public String toString(QName elementName)

toString

public String toString(org.apache.xerces.xs.XSElementDeclaration elementDecl)

toString

String toString(org.apache.xerces.xs.XSSimpleTypeDefinition simpleType)

toString

String toString(org.apache.xerces.xs.XSComplexTypeDefinition complexType)

generateTypeHierarchy

String generateTypeHierarchy(org.apache.xerces.xs.XSTypeDefinition type,
                             String indent)

generateParticleHierarchy

String generateParticleHierarchy(org.apache.xerces.xs.XSParticle particle,
                                 String indent)

isParticleRedundant

boolean isParticleRedundant(org.apache.xerces.xs.XSParticle particle)

generateOccurenceInfo

String generateOccurenceInfo(org.apache.xerces.xs.XSParticle particle)

generateSubstitutionHierarchy

String generateSubstitutionHierarchy(org.apache.xerces.xs.XSElementDeclaration elementDecl,
                                     String indent)

getProperties

List<PropertyDeclaration> getProperties(org.apache.xerces.xs.XSElementDeclaration elementDecl)

getElementDeclarationSummary

public String getElementDeclarationSummary(String namespace)

printSimpleTypesSummary

public void printSimpleTypesSummary(String namespace)

printComplexTypesSummary

public void printComplexTypesSummary(String namespace)

main

public static void main(String[] args)
                 throws ClassCastException,
                        ClassNotFoundException,
                        InstantiationException,
                        IllegalAccessException,
                        IOException
Parameters:
args -
Throws:
IllegalAccessException
InstantiationException
ClassNotFoundException
ClassCastException
IOException

deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>