public class SchemaGen extends Object
public access,
they are intended for use only by the JiBX developers and may change from one release to the next. To make use of
this class from your own code, call the main(String[]) method with an appropriate argument list.| Constructor and Description |
|---|
SchemaGen(IClassLocator loc,
GlobalCustom custom,
Map urinames)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList |
buildSchemas(List bindings)
Generate a list of schemas from a list of bindings.
|
SchemaHolder |
findSchema(String uri)
Find the schema to be used for a particular namespace.
|
ArrayList |
finishSchemas(Collection exists)
Finish the construction of schemas, setting links between the schemas and validating the schemas.
|
List |
generate(List bindings)
Generate a list of schemas from a list of bindings.
|
MappingDetail |
getMappingDetail(MappingElement map)
Get details of schema handling of a mapping.
|
static void |
main(String[] args)
Run the schema generation using command line parameters.
|
void |
setElementType(QName qname,
ElementElement elem,
SchemaHolder hold)
Set element type, adding schema reference if necessary.
|
static void |
writeSchemas(File dir,
Collection schemas)
Write a collection of schemas to a target directory.
|
public SchemaGen(IClassLocator loc, GlobalCustom custom, Map urinames)
loc - locator for class information (null if none)custom - binding customization information (used for creating names as needed)urinames - map from namespace URI to schema file namepublic SchemaHolder findSchema(String uri)
uri - namespace URI (null if no namespace)public void setElementType(QName qname, ElementElement elem, SchemaHolder hold)
qname - type nameelem - hold - schema holderpublic ArrayList buildSchemas(List bindings)
bindings - list of BindingElementSchemaHolderpublic ArrayList finishSchemas(Collection exists)
exists - existing schemas potentially referenced (by name, rather than id) from constructed schemasSchemaHolderpublic List generate(List bindings)
buildSchemas(List) with a call to finishSchemas(Collection) with an empty list of existing
schemas.bindings - list of BindingElementSchemaHolderpublic MappingDetail getMappingDetail(MappingElement map)
map - public static void writeSchemas(File dir, Collection schemas) throws JiBXException, IOException
dir - target directoryschemas - list of SchemaHolderJiBXExceptionIOExceptionpublic static void main(String[] args) throws JiBXException, IOException
args - JiBXExceptionIOExceptionCopyright © 2005-2014 jibx.org. All Rights Reserved.