public class DefinitionMiner
extends java.lang.Object
GlobalDefMap
which is keyed by element
name.Constructor and Description |
---|
DefinitionMiner(java.net.URI schemaURI,
java.lang.String rootElementName,
Log log)
Constructor for the DefinitionMiner object.
|
Modifier and Type | Method and Description |
---|---|
void |
addGlobalDef(java.lang.String name,
GlobalDef globalDef)
Adds a feature to the GlobalDef attribute of the DefinitionMiner object
|
void |
addGlobalDef(java.lang.String name,
GlobalDef globalDef,
org.dom4j.Namespace ns)
Adds a feature to the GlobalDef attribute of the DefinitionMiner object
|
void |
addSchemaReader(java.net.URI uri,
SchemaReader reader)
Adds a feature to the SchemaFile attribute of the DefinitionMiner object
|
void |
destroy()
NOT YET DOCUMENTED
|
GlobalDefMap |
getGlobalDefMap()
Gets the globalDefMap attribute of the DefinitionMiner object
|
java.lang.String |
getInlineTypeName(java.lang.String base)
Gets the inlineTypeName attribute of the DefinitionMiner object
|
NamespaceRegistry |
getNamespaces()
Gets the namespaces attribute of the DefinitionMiner object
|
org.dom4j.Document |
getRootDoc()
Gets the rootDoc attribute of the DefinitionMiner object
|
SchemaReader |
getSchemaReader(java.lang.String nsUri)
Gets the schemaReader attribute of the DefinitionMiner object
|
SchemaReader |
getSchemaReader(java.net.URI uri)
Gets the schemaReader attribute of the DefinitionMiner object
|
org.dom4j.Element |
getSchemaRootElement()
Gets the schemaRootElement attribute of the DefinitionMiner object
|
java.net.URI |
getSchemaURI()
Gets the schemaURI attribute of the DefinitionMiner object
|
boolean |
hasSchemaReader(java.net.URI uri)
NOT YET DOCUMENTED
|
static void |
main(java.lang.String[] args)
The main program for the DefinitionMiner class
|
protected void |
processSchemaFile(java.net.URI uri,
java.lang.String defaultTargetNamespaceURI)
Process all files in the schema tree recursively.
|
static void |
setDebug(boolean d)
Sets the debug attribute of the DefinitionMiner class
|
public DefinitionMiner(java.net.URI schemaURI, java.lang.String rootElementName, Log log) throws SchemaHelperException
schemaURI
- URI of root Schema FilerootElementName
- NOT YET DOCUMENTEDlog
- NOT YET DOCUMENTEDSchemaHelperException
- Description of the Exceptionpublic java.net.URI getSchemaURI()
public static void setDebug(boolean d)
d
- The new debug valuepublic java.lang.String getInlineTypeName(java.lang.String base)
base
- NOT YET DOCUMENTEDpublic NamespaceRegistry getNamespaces()
public void addGlobalDef(java.lang.String name, GlobalDef globalDef) throws java.lang.Exception
name
- The feature to be added to the GlobalDef attributeglobalDef
- The feature to be added to the GlobalDef attributejava.lang.Exception
- NOT YET DOCUMENTEDpublic void addGlobalDef(java.lang.String name, GlobalDef globalDef, org.dom4j.Namespace ns) throws java.lang.Exception
name
- The feature to be added to the GlobalDef attributeglobalDef
- The feature to be added to the GlobalDef attributens
- The feature to be added to the GlobalDef attributejava.lang.Exception
- NOT YET DOCUMENTEDpublic GlobalDefMap getGlobalDefMap()
public org.dom4j.Element getSchemaRootElement()
public org.dom4j.Document getRootDoc()
public void addSchemaReader(java.net.URI uri, SchemaReader reader)
uri
- The feature to be added to the SchemaFile attributereader
- The feature to be added to the SchemaReader attributepublic SchemaReader getSchemaReader(java.net.URI uri)
uri
- NOT YET DOCUMENTEDpublic SchemaReader getSchemaReader(java.lang.String nsUri)
nsUri
- NOT YET DOCUMENTEDpublic boolean hasSchemaReader(java.net.URI uri)
uri
- NOT YET DOCUMENTEDprotected void processSchemaFile(java.net.URI uri, java.lang.String defaultTargetNamespaceURI) throws SchemaHelperException
uri
- the particular file to be processeddefaultTargetNamespaceURI
- NOT YET DOCUMENTEDSchemaHelperException
- NOT YET DOCUMENTEDpublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- Description of the Exceptionpublic void destroy()