|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.BindingGenerator
public class BindingGenerator
Binding generator. This loads the specified input classes and processes them to generate a default binding definition.
| Constructor Summary | |
|---|---|
BindingGenerator()
Default constructor. |
|
BindingGenerator(boolean verbose,
boolean mixed,
String uri)
Constructor with settings specified. |
|
| Method Summary | |
|---|---|
String |
elementName(String cname)
Generate structure element name from class name using set conversions. |
static void |
findClassesUsed(String cname,
ArrayList mnames,
HashSet dataset,
HashSet exceptset)
Get the set of data classes passed to or returned by a list of methods within a class. |
BindingElement |
generate(ArrayList names,
HashSet abstracts,
HashMap customs,
HashMap beans,
HashMap enums,
ArrayList ignores)
Generate a set of bindings using supplied classpaths and class names. |
static void |
main(String[] args)
Main method for running compiler as application. |
void |
setCamelCase(boolean camel)
Set control flag for camel case element naming. |
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 |
| Constructor Detail |
|---|
public BindingGenerator()
public BindingGenerator(boolean verbose,
boolean mixed,
String uri)
verbose - report binding details and resultsmixed - use camel case in element namesuri - namespace URI for element bindings| Method Detail |
|---|
public void setVerbose(boolean verbose)
verbose - report verbose information in processing bindings flagpublic void setCamelCase(boolean camel)
camel - use camel case element naming flagpublic String elementName(String cname)
cname - class name to be converted
public static void findClassesUsed(String cname,
ArrayList mnames,
HashSet dataset,
HashSet exceptset)
throws JiBXException
java.lang.String, and java.lang.Object.
Exception classes thrown by the methods are also optionally accumulated.
cname - target class namemnames - method names to be checkeddataset - set for accumulation of data classes (optional, data
classes not recorded if null)exceptset - set for accumulation of exception classes (optional,
data classes not recorded if null)
JiBXException - on error in loading class information
public BindingElement generate(ArrayList names,
HashSet abstracts,
HashMap customs,
HashMap beans,
HashMap enums,
ArrayList ignores)
throws JiBXException
names - list of class names to be included in bindingabstracts - set of classes to be handled with abstract mappings in
bindingcustoms - map of customized class names to marshaller/unmarshaller
class namesbeans - map of class names to supplied lists of propertiesenums - map of typesafe enumeration classes to deserializer methodsignores - list of non-interface classes to be treated as interfaces
(no mapping, but mapped subclasses are used at runtime)
JiBXException - if error in generating the binding definitionpublic 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 | |||||||||