|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.xml.schema.DefinitionMiner
public class DefinitionMiner
DefinitionMiner builds data structures that aid in processing and validation
of XML Instance Documents. These key schema elements are represented as
GlobalDefs and stored in a GlobalDefMap which is keyed by element
name.
| Constructor Summary | |
|---|---|
DefinitionMiner(URI schemaURI,
String rootElementName,
Log log)
Constructor for the DefinitionMiner object. |
|
| Method Summary | |
|---|---|
void |
addGlobalDef(String name,
GlobalDef globalDef)
Adds a feature to the GlobalDef attribute of the DefinitionMiner object |
void |
addGlobalDef(String name,
GlobalDef globalDef,
Namespace ns)
Adds a feature to the GlobalDef attribute of the DefinitionMiner object |
void |
addSchemaReader(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 |
String |
getInlineTypeName(String base)
Gets the inlineTypeName attribute of the DefinitionMiner object |
NamespaceRegistry |
getNamespaces()
Gets the namespaces attribute of the DefinitionMiner object |
Document |
getRootDoc()
Gets the rootDoc attribute of the DefinitionMiner object |
SchemaReader |
getSchemaReader(String nsUri)
Gets the schemaReader attribute of the DefinitionMiner object |
SchemaReader |
getSchemaReader(URI uri)
Gets the schemaReader attribute of the DefinitionMiner object |
Element |
getSchemaRootElement()
Gets the schemaRootElement attribute of the DefinitionMiner object |
URI |
getSchemaURI()
Gets the schemaURI attribute of the DefinitionMiner object |
boolean |
hasSchemaReader(URI uri)
NOT YET DOCUMENTED |
static void |
main(String[] args)
The main program for the DefinitionMiner class |
protected void |
processSchemaFile(URI uri,
String defaultTargetNamespaceURI)
Process all files in the schema tree recursively. |
static void |
setDebug(boolean d)
Sets the debug attribute of the DefinitionMiner class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefinitionMiner(URI schemaURI,
String rootElementName,
Log log)
throws SchemaHelperException
schemaURI - URI of root Schema FilerootElementName - NOT YET DOCUMENTEDlog - NOT YET DOCUMENTED
SchemaHelperException - Description of the Exception| Method Detail |
|---|
public URI getSchemaURI()
public static void setDebug(boolean d)
d - The new debug valuepublic String getInlineTypeName(String base)
base - NOT YET DOCUMENTED
public NamespaceRegistry getNamespaces()
public void addGlobalDef(String name,
GlobalDef globalDef)
throws Exception
name - The feature to be added to the GlobalDef attributeglobalDef - The feature to be added to the GlobalDef attribute
Exception - NOT YET DOCUMENTED
public void addGlobalDef(String name,
GlobalDef globalDef,
Namespace ns)
throws 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 attribute
Exception - NOT YET DOCUMENTEDpublic GlobalDefMap getGlobalDefMap()
public Element getSchemaRootElement()
public Document getRootDoc()
public void addSchemaReader(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(URI uri)
uri - NOT YET DOCUMENTED
public SchemaReader getSchemaReader(String nsUri)
nsUri - NOT YET DOCUMENTED
public boolean hasSchemaReader(URI uri)
uri - NOT YET DOCUMENTED
protected void processSchemaFile(URI uri,
String defaultTargetNamespaceURI)
throws SchemaHelperException
uri - the particular file to be processeddefaultTargetNamespaceURI - NOT YET DOCUMENTED
SchemaHelperException - NOT YET DOCUMENTED
public static void main(String[] args)
throws Exception
args - The command line arguments
Exception - Description of the Exceptionpublic void destroy()
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||