|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xdoclet.template.TemplateTagHandler xdoclet.XDocletTagSupport xdoclet.modules.ejb.EjbTagsHandler xdoclet.modules.ejb.entity.DataObjectTagsHandler
Field Summary | |
protected static String |
currentDataObjectClassname
|
protected static HashMap |
dataObjectClassnames
|
Fields inherited from class xdoclet.modules.ejb.EjbTagsHandler |
ALL, LOCAL_SUFFIX, SERVICE_ENDPOINT, SERVICE_ENDPOINT_SUFFIX |
Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
Constructor Summary | |
DataObjectTagsHandler()
|
Method Summary | |
String |
dataMostSuperObjectClass()
Returns the data-object class name highest in the hierarchy of derived beans. |
String |
dataObjectClass()
Returns data-object class name for the bean. |
String |
dataObjectClassNameFromInterfaceName()
Return the dataobject class name from interface name. |
String |
extendsFrom()
Returns the name of the class dataobject class extends. |
protected void |
forAllSuper(String template,
String methodName)
Browse all super classes and search for a special method to generate it in the current CMP/BMP class. |
void |
forAllSuperSetData(String template)
Evaluates the body block for each setData method. |
String |
generateDataObjectClass()
|
static String |
generateDataObjectClass(xjavadoc.XClass clazz)
Used by dataMostSuperObjectClass() to get the data object's full qualified class name. |
static String |
getCurrentDataObjectClassname()
|
static String |
getDataMostSuperObjectClass(xjavadoc.XClass clazz)
|
static String |
getDataObjectClassFor(xjavadoc.XClass clazz)
|
protected static String |
getDataObjectClassPattern()
|
protected String |
getDependentClassFor(xjavadoc.XClass clazz,
String type)
Gets the DependentClassFor attribute of the DataObjectTagsHandler object |
static boolean |
hasCustomBulkData(xjavadoc.XClass clazz)
|
protected static boolean |
hasDataEquals(xjavadoc.XClass clazz)
|
void |
ifIsAggregate(String template)
Evaluate the body block if ejb:aggregate is defined for current getter method, denoting that the specified getter method returns an aggregated object. |
void |
ifIsNotAggregate(String template)
Evaluate the body block if ejb:aggregate is not defined for current getter method. |
void |
ifIsWithDataContainer(String pTemplate)
Evaluate the body block if ejb:data-object container="true". |
void |
ifIsWithDataMethod(String pTemplate)
Evaluate the body block if ejb:data-object setdata="true". |
protected boolean |
isAggregate(xjavadoc.XMethod method)
Returns true if method has ejb:aggregate, false otherwise. |
void |
isDataContentEquals(String pTemplate)
|
static boolean |
isDataObjectMethod(xjavadoc.XMethod method)
Gets the DataObjectMethod attribute of the DataObjectTagsHandler class |
static boolean |
isGenerationNeeded(xjavadoc.XClass clazz)
Returns true if ejb:data-object defined and generate param is true, false if not true. |
String |
parentDataObjectClass()
|
static void |
putDataObjectClassnames(String name,
String value)
|
static void |
setCurrentDataObjectClassname(String current_data_object_classname)
|
Methods inherited from class xdoclet.template.TemplateTagHandler |
getXJavaDoc, setXJavaDoc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static HashMap dataObjectClassnames
protected static String currentDataObjectClassname
Constructor Detail |
public DataObjectTagsHandler()
Method Detail |
public static String getDataMostSuperObjectClass(xjavadoc.XClass clazz) throws XDocletException
clazz
- Description of Parameter
XDocletException
public static boolean isDataObjectMethod(xjavadoc.XMethod method) throws XDocletException
method
- Describe what the parameter does
XDocletException
public static String getDataObjectClassFor(xjavadoc.XClass clazz)
clazz
- Description of Parameter
public static String getCurrentDataObjectClassname()
public static boolean isGenerationNeeded(xjavadoc.XClass clazz)
clazz
- Description of Parameter
public static void setCurrentDataObjectClassname(String current_data_object_classname)
current_data_object_classname
- public static void putDataObjectClassnames(String name, String value)
name
- Description of Parametervalue
- Description of Parameterpublic static String generateDataObjectClass(xjavadoc.XClass clazz)
clazz
- Description of Parameter
dataMostSuperObjectClass()
public static boolean hasCustomBulkData(xjavadoc.XClass clazz)
clazz
- Description of Parameter
protected static String getDataObjectClassPattern()
protected static boolean hasDataEquals(xjavadoc.XClass clazz) throws XDocletException
clazz
-
XDocletException
public void isDataContentEquals(String pTemplate) throws XDocletException
pTemplate
- Description of Parameter
XDocletException
public String dataObjectClass() throws XDocletException
XDocletException
public String dataMostSuperObjectClass() throws XDocletException
XDocletException
public String generateDataObjectClass() throws XDocletException
XDocletException
public void ifIsWithDataMethod(String pTemplate) throws XDocletException
pTemplate
- Description of Parameter
XDocletException
ifIsWithDataContainer(java.lang.String)
public void ifIsWithDataContainer(String pTemplate) throws XDocletException
pTemplate
- Description of Parameter
XDocletException
public void ifIsAggregate(String template) throws XDocletException
template
- The body of the block tag
XDocletException
ifIsNotAggregate(java.lang.String)
,
isAggregate(xjavadoc.XMethod)
public void ifIsNotAggregate(String template) throws XDocletException
template
- The body of the block tag
XDocletException
ifIsAggregate(java.lang.String)
,
isAggregate(xjavadoc.XMethod)
public void forAllSuperSetData(String template) throws XDocletException
template
- The body of the block tag
XDocletException
forAllSuper(java.lang.String,java.lang.String)
public String parentDataObjectClass() throws XDocletException
XDocletException
public String extendsFrom() throws XDocletException
XDocletException
public String dataObjectClassNameFromInterfaceName() throws XDocletException
XDocletException
protected boolean isAggregate(xjavadoc.XMethod method) throws XDocletException
method
- Description of Parameter
XDocletException
protected String getDependentClassFor(xjavadoc.XClass clazz, String type) throws XDocletException
getDependentClassFor
in class EjbTagsHandler
clazz
- Describe what the parameter doestype
- Describe what the parameter does
XDocletException
protected void forAllSuper(String template, String methodName) throws XDocletException
template
- The body of the block tagmethodName
- Description of Parameter
XDocletException
|
http://xdoclet.sourceforge.net/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |