|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--xdoclet.template.TemplateTagHandler
|
+--xdoclet.XDocletTagSupport
|
+--xdoclet.ejb.tags.EjbTagsHandler
|
+--xdoclet.ejb.tags.DataObjectTagsHandler
| Field Summary | |
protected static java.lang.String |
currentDataObjectClassname
|
protected static java.util.HashMap |
dataObjectClassnames
|
| Fields inherited from class xdoclet.ejb.tags.EjbTagsHandler |
LOCAL_SUFFIX |
| Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
| Constructor Summary | |
DataObjectTagsHandler()
|
|
| Method Summary | |
java.lang.String |
dataMostSuperObjectClass()
Returns the data-object class name highest in the hierarchy of derived beans. |
java.lang.String |
dataObjectClass()
Returns data-object class name for the bean. |
java.lang.String |
dataObjectClassNameFromInterfaceName()
Return the dataobject class name from interface name. |
java.lang.String |
extendsFrom()
Returns the name of the class dataobject class extends. |
protected void |
forAllSuper(java.lang.String template,
java.lang.String methodName)
Browse all super classes and search for a special method to generate it in the current CMP/BMP class. |
void |
forAllSuperSetData(java.lang.String template)
Evaluates the body block for each setData method. |
java.lang.String |
generateDataObjectClass()
|
static java.lang.String |
generateDataObjectClass(com.sun.javadoc.ClassDoc clazz)
Used by dataMostSuperObjectClass() to get the data object's full qualified class name. |
static java.lang.String |
getCurrentDataObjectClassname()
|
static java.lang.String |
getDataMostSuperObjectClass(com.sun.javadoc.ClassDoc clazz)
|
static java.lang.String |
getDataObjectClassFor(com.sun.javadoc.ClassDoc clazz)
|
protected static java.lang.String |
getDataObjectClassPattern()
|
protected java.lang.String |
getDependentClassFor(com.sun.javadoc.ClassDoc clazz,
java.lang.String type)
sub-classes which deal with patternized class names return a reasonable value |
static boolean |
hasCustomBulkData(com.sun.javadoc.ClassDoc clazz)
|
protected static boolean |
hasDataEquals(com.sun.javadoc.ClassDoc clazz)
|
void |
ifIsAggregate(java.lang.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(java.lang.String template)
Evaluate the body block if ejb:aggregate is not defined for current getter method. |
void |
ifIsWithDataContainer(java.lang.String pTemplate)
Evaluate the body block if ejb:data-object container="true". |
void |
ifIsWithDataMethod(java.lang.String pTemplate)
Evaluate the body block if ejb:data-object setdata="true". |
protected boolean |
isAggregate(com.sun.javadoc.MethodDoc method)
Returns true if method has ejb:aggregate, false otherwise. |
void |
isDataContentEquals(java.lang.String pTemplate)
|
static boolean |
isDataObjectMethod(com.sun.javadoc.MethodDoc method)
|
static boolean |
isGenerationNeeded(com.sun.javadoc.ClassDoc clazz)
Returns true if ejb:data-object defined and generate param is true, false if not true. |
java.lang.String |
parentDataObjectClass()
|
static void |
putDataObjectClassnames(java.lang.String name,
java.lang.String value)
|
java.lang.String |
serialVersionUID()
|
static void |
setCurrentDataObjectClassname(java.lang.String current_data_object_classname)
|
| Methods inherited from class xdoclet.template.TemplateTagHandler |
generate, getContext, getEngine, getParser, setContext, setEngine, setParser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static java.util.HashMap dataObjectClassnames
protected static java.lang.String currentDataObjectClassname
| Constructor Detail |
public DataObjectTagsHandler()
| Method Detail |
public static java.lang.String getDataMostSuperObjectClass(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - Description of ParameterXDocletException - Description of Exception
public static boolean isDataObjectMethod(com.sun.javadoc.MethodDoc method)
throws XDocletException
public static java.lang.String getDataObjectClassFor(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - Description of ParameterXDocletException - Description of Exceptionpublic static java.lang.String getCurrentDataObjectClassname()
public static boolean isGenerationNeeded(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - Description of ParameterXDocletException - Description of Exceptionpublic static void setCurrentDataObjectClassname(java.lang.String current_data_object_classname)
current_data_object_classname -
public static void putDataObjectClassnames(java.lang.String name,
java.lang.String value)
name - Description of Parametervalue - Description of Parameter
public static java.lang.String generateDataObjectClass(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - Description of ParameterXDocletException - Description of ExceptiondataMostSuperObjectClass()
public static boolean hasCustomBulkData(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - Description of ParameterXDocletException - Description of Exceptionprotected static java.lang.String getDataObjectClassPattern()
protected static boolean hasDataEquals(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - XDocletException - Description of Exception
public void isDataContentEquals(java.lang.String pTemplate)
throws XDocletException
pTemplate - Description of ParameterXDocletException - Description of Exception
public java.lang.String dataObjectClass()
throws XDocletException
XDocletException - Description of Exception
public java.lang.String dataMostSuperObjectClass()
throws XDocletException
XDocletException - Description of Exception
public java.lang.String generateDataObjectClass()
throws XDocletException
XDocletException - Description of Exception
public void ifIsWithDataMethod(java.lang.String pTemplate)
throws XDocletException
pTemplate - Description of ParameterXDocletException - Description of ExceptionifIsWithDataContainer(java.lang.String)
public void ifIsWithDataContainer(java.lang.String pTemplate)
throws XDocletException
pTemplate - Description of ParameterXDocletException - Description of Exception
public void ifIsAggregate(java.lang.String template)
throws XDocletException
template - The body of the block tagXDocletException - Description of ExceptionifIsNotAggregate(java.lang.String),
isAggregate(com.sun.javadoc.MethodDoc)
public void ifIsNotAggregate(java.lang.String template)
throws XDocletException
template - The body of the block tagXDocletException - Description of ExceptionifIsAggregate(java.lang.String),
isAggregate(com.sun.javadoc.MethodDoc)
public void forAllSuperSetData(java.lang.String template)
throws XDocletException
template - The body of the block tagXDocletException - Description of ExceptionforAllSuper(java.lang.String,java.lang.String)
public java.lang.String parentDataObjectClass()
throws XDocletException
XDocletException - Description of Exception
public java.lang.String serialVersionUID()
throws XDocletException
XDocletException - Description of Exception
public java.lang.String extendsFrom()
throws XDocletException
XDocletException - Description of Exception
public java.lang.String dataObjectClassNameFromInterfaceName()
throws XDocletException
XDocletException - Description of Exception
protected boolean isAggregate(com.sun.javadoc.MethodDoc method)
throws XDocletException
method - Description of ParameterXDocletException - Description of Exception
protected java.lang.String getDependentClassFor(com.sun.javadoc.ClassDoc clazz,
java.lang.String type)
throws XDocletException
EjbTagsHandlergetDependentClassFor in class EjbTagsHandlerxdoclet.ejb.tags.EjbTagsHandlerclazz - the classtype - type value used for view-type of remote/localXDocletException -
protected void forAllSuper(java.lang.String template,
java.lang.String methodName)
throws XDocletException
template - The body of the block tagmethodName - Description of ParameterXDocletException - Description of Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||