|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.SchemaGenerator
public class SchemaGenerator
Binding generator. This loads the specified input classes and processes them to generate a default binding definition.
| Field Summary | |
|---|---|
static String |
XML_URI
Fixed XML namespace. |
static String |
XMLNS_URI
Fixed XML namespace namespace. |
| Constructor Summary | |
|---|---|
SchemaGenerator(ArrayList paths)
Constructor with only paths supplied. |
|
SchemaGenerator(boolean verbose,
boolean equal,
boolean aqual,
ArrayList paths)
Constructor with settings specified. |
|
| Method Summary | |
|---|---|
void |
generate(BindingElement binding)
Process a binding definition for schema generation. |
DefinitionContext |
getDefinitions()
Get innermost containing definition context. |
Element[] |
getSchemas()
Get array of generated schemas. |
static void |
main(String[] args)
Main method for running compiler as application. |
void |
setAttributeQualified(boolean qual)
Set control flag for attribute qualified default schema. |
void |
setElementQualified(boolean qual)
Set control flag for element qualified default schema. |
void |
setVerbose(boolean verbose)
Set control flag for verbose processing reports. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XML_URI
public static final String XMLNS_URI
| Constructor Detail |
|---|
public SchemaGenerator(ArrayList paths)
paths - class paths to be checked for classes referenced by bindings
public SchemaGenerator(boolean verbose,
boolean equal,
boolean aqual,
ArrayList paths)
verbose - report binding details and resultsequal - use element form default qualified flagaqual - use attribute form default qualified flagpaths - class paths to be checked for classes referenced by bindings| Method Detail |
|---|
public void setVerbose(boolean verbose)
verbose - report verbose information in processing bindings flagpublic void setElementQualified(boolean qual)
qual - element qualified default schemas flagpublic void setAttributeQualified(boolean qual)
qual - attribute qualified default schemas flagpublic Element[] getSchemas()
public DefinitionContext getDefinitions()
public void generate(BindingElement binding)
throws JiBXException
binding - root element of binding
JiBXException - if error in generating the schemapublic static void main(String[] args)
args - command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||