|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectxdoclet.template.TemplateTagHandler
xdoclet.XDocletTagSupport
xdoclet.modules.ejb.env.EnvTagsHandler
Handles field level tag's for configuring a bean's environment.
| Field Summary | |
protected xjavadoc.XMember |
currentMember
|
protected xjavadoc.XTag |
currentTag
|
protected int |
currentTagType
|
| Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
| Constructor Summary | |
EnvTagsHandler()
|
|
| Method Summary | |
protected void |
doGenerate(String template)
Called for each tag in the forTags loop. |
void |
forAllMemberTags(String template,
Properties attributes)
Executes the template for all method- and field-level tags with the passed name |
void |
forAllMethodTags(String template,
Properties attributes)
Executes the template for all method-level tags with the passed name |
void |
forAllTags(String template,
Properties attributes)
Executes the template for all class-, method- and field-level tags with the passed name |
protected void |
forTags(String template,
Properties attributes,
boolean forClass,
boolean forMethod,
boolean forField)
Executes the passed template for the passed |
void |
ifHasParam(String template,
Properties attributes)
Executes the body only if the current tag has a specified parameter |
void |
ifHasTag(String template,
Properties attributes)
Executes the body only if the current class has at least one ot the passed tags at field- or method-level |
void |
ifHasType(String template,
Properties attributes)
Executes the body only if the current tag is either a method- or fiel-level tag or has a type parameter. |
void |
ifNotPrimitiveMember(String template,
Properties attributes)
Executes the body only if the current field type or method return type is not a primitive. |
void |
ifParamValueEquals(String template,
Properties attributes)
Executes the body only if the specified tag's value is equal to the specified value |
void |
ifParamValueNotEquals(String template,
Properties attributes)
Executes the body only if the specified tag's value is equal to the specified value |
void |
ifPrimitiveMember(String template,
Properties attributes)
Executes the body only if the current field type or method return type is primitive. |
String |
memberName(Properties attributes)
Returns the method or field name. |
String |
memberType()
Returns the method's return type or the field's type. |
String |
methodSignature()
Returns the method signature for the current method. |
String |
name(Properties attributes)
Returns the name parameter value for the current tag. |
String |
paramValue(Properties attributes)
Returns the value of a parameter. |
String |
type(Properties attributes)
Returns the type parameter value for the current tag. |
| 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 xjavadoc.XTag currentTag
protected xjavadoc.XMember currentMember
protected int currentTagType
| Constructor Detail |
public EnvTagsHandler()
| Method Detail |
public void forAllTags(String template,
Properties attributes)
throws XDocletException
template - the templateattributes - the attributes
XDocletException - if an error occures
public void forAllMemberTags(String template,
Properties attributes)
throws XDocletException
template - the templateattributes - the attributes
XDocletException - if an error occures
public void forAllMethodTags(String template,
Properties attributes)
throws XDocletException
template - the templateattributes - the attributes
XDocletException - if an error occures
public String name(Properties attributes)
throws XDocletException
attributes - the attributes
XDocletException - if an error occures
public String type(Properties attributes)
throws XDocletException
attributes - the attributes
XDocletException - if an error occures
public void ifHasType(String template,
Properties attributes)
throws XDocletException
template - the templateattributes - the attributes
XDocletException - if an error occures
public String memberName(Properties attributes)
throws XDocletException
forAllMemberTags or forAllMethodTags
.
attributes - the attributes
XDocletException - if an error occures
public String memberType()
throws XDocletException
forAllMemberTags or
forAllMethodTags.
XDocletException - if an error occures
public String methodSignature()
throws XDocletException
forAllMethodTags.
XDocletException - if an error occures
public String paramValue(Properties attributes)
throws XDocletException
attributes - the attributes
XDocletException - if an error occures
public void ifHasParam(String template,
Properties attributes)
throws XDocletException
template - the templateattributes - the attributes
XDocletException - if an error occures
public void ifParamValueEquals(String template,
Properties attributes)
throws XDocletException
template - the templateattributes - the attributes
XDocletException - if an error occures
public void ifParamValueNotEquals(String template,
Properties attributes)
throws XDocletException
template - the templateattributes - the attributes
XDocletException - if an error occures
public void ifPrimitiveMember(String template,
Properties attributes)
throws XDocletException
template - the templateattributes - the attributes
XDocletException - if an error occures
public void ifNotPrimitiveMember(String template,
Properties attributes)
throws XDocletException
template - the templateattributes - the attributes
XDocletException - if an error occures
public void ifHasTag(String template,
Properties attributes)
throws XDocletException
template - the templateattributes - the attributes
XDocletException - if an error occures
protected void forTags(String template,
Properties attributes,
boolean forClass,
boolean forMethod,
boolean forField)
throws XDocletException
template - the templateattributes - the parametersforClass - indicates whether the template should be excuted for class level tagsforMethod - indicates whether the template should be excuted for method level tagsforField - indicates whether the template should be excuted for field level tags
XDocletException - if an error occures
protected void doGenerate(String template)
throws XDocletException
forTags loop. The default behaviour is to call generate(template)
template - the template
XDocletException - if an error occures
|
http://xdoclet.sourceforge.net/ | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||