|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.classes.BoundClass
public class BoundClass
Bound class handler. Each instance controls and organizes information for a class included in one or more binding definitions.
| Method Summary | |
|---|---|
void |
addFactory(String fact)
Add binding factory to class. |
String |
deriveClassName(String prefix,
String suffix)
Derive generated class name for bound class. |
ClassFile |
getClassFile()
Get bound class file information. |
String |
getClassName()
Get bound class file name. |
static BoundClass |
getInstance(ClassFile cf,
BoundClass context)
Get binding information for class. |
static BoundClass |
getInstance(String name,
BoundClass context)
Get binding information for class. |
ClassItem |
getLoadMethod(ClassItem item,
ClassFile from)
Get load access method for member of this class. |
ClassFile |
getMungedFile()
Get munged class file information. |
ClassItem |
getStoreMethod(ClassItem item,
ClassFile from)
Get store access method for member of this class. |
BindingMethod |
getUniqueMethod(MethodBuilder builder)
Get unique method. |
BindingMethod |
getUniqueNamed(MethodBuilder builder)
Get unique method. |
boolean |
isDirectAccess()
Check if class being changed directly. |
static void |
reset()
Discard cached information and reset in preparation for a new binding run. |
void |
setFactoryList()
Generate factory list. |
static void |
setModify(File root,
String pkg,
String name)
Set override modification information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ClassFile getClassFile()
public String getClassName()
public ClassFile getMungedFile()
public boolean isDirectAccess()
true if bound class is being modified,
false if using a surrogate
public ClassItem getLoadMethod(ClassItem item,
ClassFile from)
throws JiBXException
item - field or method to be accessedfrom - context class from which access is required
JiBXException - on configuration error
public ClassItem getStoreMethod(ClassItem item,
ClassFile from)
throws JiBXException
item - field or method to be accessedfrom - context class from which access is required
JiBXException - on configuration error
public BindingMethod getUniqueMethod(MethodBuilder builder)
throws JiBXException
builder - method to be defined
JiBXException - on configuration error
public BindingMethod getUniqueNamed(MethodBuilder builder)
throws JiBXException
builder - method to be defined
JiBXException - on configuration errorpublic void addFactory(String fact)
fact - binding factory name
public void setFactoryList()
throws JiBXException
JiBXException - on configuration error
public static BoundClass getInstance(ClassFile cf,
BoundClass context)
throws JiBXException
cf - bound class informationcontext - context class for code generation, or null
if no context
JiBXException - on configuration error
public static BoundClass getInstance(String name,
BoundClass context)
throws JiBXException
name - fully qualified name of bound classcontext - context class for code generation, or null
if no context
JiBXException - on configuration errorpublic static void reset()
public static void setModify(File root,
String pkg,
String name)
root - classpath root directory for added classespkg - package for added classesname - binding name
public String deriveClassName(String prefix,
String suffix)
prefix - generated class name prefixsuffix - generated class name suffix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||