|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.legstar.codegen.models.AbstractPropertiesModel
com.legstar.jaxb.gen.JaxbGenModel
public class JaxbGenModel
Parameters used for the COBOL-annotated JAXB classes generation.
| Field Summary | |
|---|---|
static boolean |
DEFAULT_ECICOMPATIBLE
Default value for use ECI compatible mode. |
static boolean |
DEFAULT_GENERATEISSETMETHOD
Default value for generate isSet method. |
static boolean |
DEFAULT_INTERNALBINDINGS
Default value for use of internal bindings. |
static boolean |
DEFAULT_NOPACKAGEINFO
Default value for no package-info generation. |
static long |
DEFAULT_SERIALIZABLE_ID
Default value for serializable ID. |
static String |
JAXB_ECICOMPATIBLE
Use the ECI naming conventions. |
static String |
JAXB_INTERNALBINDINGS
JAXB uses internal bindings. |
static String |
JAXB_NOPACKAGEINFO
Don't generate package-info.java. |
static String |
JAXB_PACKAGENAME
JAXB package name. |
static String |
JAXB_XJB_ELEMENTNAME_PREFIX
Element name prefix. |
static String |
JAXB_XJB_ELEMENTNAME_SUFFIX
Element name suffix. |
static String |
JAXB_XJB_ISGENERATEISSETMETHOD
Generate isSet methods. |
static String |
JAXB_XJB_SERIALIZABLE_ID
Serializable ID. |
static String |
JAXB_XJB_TYPENAME_PREFIX
Type name prefix. |
static String |
JAXB_XJB_TYPENAME_SUFFIX
Type name suffix. |
static String |
JAXB_XSD_LOCATION
Physical location of the XML schema. |
static String |
XJB_CHARSET
Character set used for the XJB file content. |
static String |
XJB_GENERATOR_NAME
Velocity identifier for this generator. |
static String |
XJB_TEMPLATE
A template for a JAXB external binding customization file. |
| Constructor Summary | |
|---|---|
JaxbGenModel()
A no-Arg constructor. |
|
JaxbGenModel(Properties props)
Construct from a properties file. |
|
| Method Summary | |
|---|---|
void |
generateXjb(File targetFile)
Creates an external binding customization file ready for JAXB. |
String |
getElementNamePrefix()
|
String |
getElementNameSuffix()
|
String |
getJaxbPackageName()
If specified, generated code will be placed under this Java package. |
long |
getSerializableUid()
|
String |
getTypeNamePrefix()
|
String |
getTypeNameSuffix()
|
String |
getXsdLocation()
|
boolean |
isEciCompatible()
Whether the ECI naming conventions should be used. |
boolean |
isGenerateIsSetMethod()
|
boolean |
isInternalBindings()
whether internal bindings or and external binding should be used. |
boolean |
isNoPackageInfo()
Prevents generation of JAXB package-info.java which does not compile under JDK 1.5. |
boolean |
needElementNameXmlTransform()
|
boolean |
needTypeNameXmlTransform()
|
boolean |
needXmlTransform()
|
void |
setEciCompatible(boolean eciCompatible)
Whether the ECI naming conventions should be used. |
void |
setElementNamePrefix(String elementNamePrefix)
|
void |
setElementNameSuffix(String elementNameSuffix)
|
void |
setGenerateIsSetMethod(boolean generateIsSetMethod)
|
void |
setInternalBindings(boolean internalBindings)
Whether internal bindings or and external binding should be used. |
void |
setJaxbPackageName(String jaxbPackageName)
If specified, generated code will be placed under this Java package. |
void |
setNoPackageInfo(boolean noPackageInfo)
Prevents generation of JAXB package-info.java which does not compile under JDK 1.5. |
void |
setSerializableUid(long serializableUid)
|
void |
setTypeNamePrefix(String typeNamePrefix)
|
void |
setTypeNameSuffix(String typeNameSuffix)
|
void |
setXsdLocation(String xsdLocation)
|
Properties |
toProperties()
|
| Methods inherited from class com.legstar.codegen.models.AbstractPropertiesModel |
|---|
getBoolean, getFile, getInt, getLong, getString, getStringList, getURI, putBoolean, putFile, putInt, putLong, putString, putStringList, putURI, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String XJB_TEMPLATE
public static final String XJB_CHARSET
public static final String XJB_GENERATOR_NAME
public static final boolean DEFAULT_GENERATEISSETMETHOD
public static final long DEFAULT_SERIALIZABLE_ID
public static final boolean DEFAULT_INTERNALBINDINGS
public static final boolean DEFAULT_ECICOMPATIBLE
public static final boolean DEFAULT_NOPACKAGEINFO
public static final String JAXB_XSD_LOCATION
public static final String JAXB_XJB_ISGENERATEISSETMETHOD
public static final String JAXB_XJB_SERIALIZABLE_ID
public static final String JAXB_XJB_ELEMENTNAME_PREFIX
public static final String JAXB_XJB_ELEMENTNAME_SUFFIX
public static final String JAXB_XJB_TYPENAME_PREFIX
public static final String JAXB_XJB_TYPENAME_SUFFIX
public static final String JAXB_PACKAGENAME
public static final String JAXB_INTERNALBINDINGS
public static final String JAXB_ECICOMPATIBLE
public static final String JAXB_NOPACKAGEINFO
| Constructor Detail |
|---|
public JaxbGenModel()
public JaxbGenModel(Properties props)
props - the property file| Method Detail |
|---|
public void generateXjb(File targetFile)
throws CodeGenMakeException
targetFile - the xjb file that must be created
CodeGenMakeException - if generation failspublic boolean needXmlTransform()
public boolean needTypeNameXmlTransform()
public boolean needElementNameXmlTransform()
public boolean isGenerateIsSetMethod()
public void setGenerateIsSetMethod(boolean generateIsSetMethod)
generateIsSetMethod - if IsSet Methods should be generatedpublic long getSerializableUid()
public void setSerializableUid(long serializableUid)
serializableUid - the serialization unique ID. (All JAXB classes
must be serializable for LegStar)public String getXsdLocation()
public void setXsdLocation(String xsdLocation)
xsdLocation - the physical location of the XML Schemapublic String getTypeNamePrefix()
public void setTypeNamePrefix(String typeNamePrefix)
typeNamePrefix - the prefix to add to type namespublic String getTypeNameSuffix()
public void setTypeNameSuffix(String typeNameSuffix)
typeNameSuffix - the suffix to add to type namespublic String getElementNamePrefix()
public void setElementNamePrefix(String elementNamePrefix)
elementNamePrefix - the prefix to add to element namespublic String getElementNameSuffix()
public void setElementNameSuffix(String elementNameSuffix)
elementNameSuffix - the suffix to add to element namespublic String getJaxbPackageName()
public void setJaxbPackageName(String jaxbPackageName)
jaxbPackageName - Java package namepublic boolean isInternalBindings()
public void setInternalBindings(boolean internalBindings)
internalBindings - whether internal bindings or and external binding
should be usedpublic boolean isEciCompatible()
public void setEciCompatible(boolean eciCompatible)
eciCompatible - whether the ECI naming conventions should be usedpublic boolean isNoPackageInfo()
public void setNoPackageInfo(boolean noPackageInfo)
noPackageInfo - true if we should not generate package-info.javapublic Properties toProperties()
toProperties in class AbstractPropertiesModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||