public class BindingGenerator extends Object
| Constructor and Description |
|---|
BindingGenerator()
Default constructor.
|
BindingGenerator(boolean verbose,
boolean mixed,
String uri)
Constructor with settings specified.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 bindingspublic 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 convertedpublic static void findClassesUsed(String cname, ArrayList mnames, HashSet dataset, HashSet exceptset) throws org.jibx.runtime.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)org.jibx.runtime.JiBXException - on error in loading class informationpublic BindingElement generate(ArrayList names, HashSet abstracts, HashMap customs, HashMap beans, HashMap enums, ArrayList ignores) throws org.jibx.runtime.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)org.jibx.runtime.JiBXException - if error in generating the binding definitionpublic static void main(String[] args)
args - command line argumentsCopyright © 2005–2016 jibx.org. All rights reserved.