|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.jibx.schema.codegen.extend.SerializableDecorator
public class SerializableDecorator
Code generation decorator which adds the java.lang.Serializable interface to each class, and optionally
also adds a private static final long serialVersionUID value.
| Field Summary | |
|---|---|
private ASTParser |
m_parser
Parser instance used by class. |
private java.lang.Long |
m_serialVersion
Serial version UID value ( null if not set). |
| Constructor Summary | |
|---|---|
SerializableDecorator()
|
|
| Method Summary | |
|---|---|
void |
finish(IClassHolder holder)
Method called after completing code generation for the target class. |
void |
setSerialVersion(java.lang.Long version)
Set serial version. |
void |
start(IClassHolder holder)
Method called before starting code generation for the target class. |
void |
valueAdded(java.lang.String basename,
boolean collect,
java.lang.String type,
FieldDeclaration field,
MethodDeclaration getmeth,
MethodDeclaration setmeth,
java.lang.String descript,
IClassHolder holder)
Method called after adding each data value to class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final ASTParser m_parser
private java.lang.Long m_serialVersion
null if not set).
| Constructor Detail |
|---|
public SerializableDecorator()
| Method Detail |
|---|
public void setSerialVersion(java.lang.Long version)
version - public void finish(IClassHolder holder)
finish in interface ClassDecoratorholder - public void start(IClassHolder holder)
start in interface ClassDecoratorholder -
public void valueAdded(java.lang.String basename,
boolean collect,
java.lang.String type,
FieldDeclaration field,
MethodDeclaration getmeth,
MethodDeclaration setmeth,
java.lang.String descript,
IClassHolder holder)
valueAdded in interface ClassDecoratorbasename - base name used for data valuecollect - repeated value flagtype - value type (item value type, in the case of a repeated value)field - actual fieldgetmeth - read access methodsetmeth - write access methoddescript - value description textholder -
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||