|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectxdoclet.template.TemplateTagHandler
xdoclet.XDocletTagSupport
xdoclet.tagshandler.TypeTagsHandler
Simple tag support class.
| Field Summary | |
static int |
TYPE_CONCRETE_TYPE
Used by isOfType. isOfType searches for the type according to the type parameter. |
static int |
TYPE_HIERARCHY
Used by isOfType. isOfType searches for the type according to the type parameter. |
static int |
TYPE_SUPERCLASS
Used by isOfType. isOfType searches for the type according to the type parameter. |
| Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
| Constructor Summary | |
TypeTagsHandler()
|
|
| Method Summary | |
static int |
extractExtentType(String extent_str)
Return the integer constact based on the extent_str. |
void |
ifIsNotOfType(String template,
Properties attributes)
Evaluate the body block if the entity is not of the specified type. |
void |
ifIsNotPrimitive(String template,
Properties attributes)
Evaluate the body block if the value is not of a primitive type. |
void |
ifIsNotPrimitiveArray(String template,
Properties attributes)
Evaluate the body block if the value is not of a primitive array type. |
void |
ifIsNotPrimitiveOrString(String template,
Properties attributes)
Evaluate the body block if the value is of a primitive type or String. |
protected void |
ifIsOfType_Impl(String template,
Properties attributes,
boolean condition)
Implementation of ifIsOfType and ifIsNotOfType tags. |
void |
ifIsOfType(String template,
Properties attributes)
Evaluate the body block if the entity is of the specified type. |
void |
ifIsPrimitive(String template,
Properties attributes)
Evaluate the body block if the value is of a primitive type. |
void |
ifIsPrimitiveArray(String template,
Properties attributes)
Evaluate the body block if the value is of a primitive array type. |
void |
ifIsPrimitiveOrString(String template,
Properties attributes)
Evaluate the body block if the value is of a primitive type or String. |
static boolean |
isOfType(xjavadoc.XClass clazz,
String type,
int extent)
Returns true if cur_class is of type type. |
static boolean |
isPrimitiveArray(String name)
Returns true if name is a primitive type and is an array (ends with []) |
static boolean |
isPrimitiveType(String name)
Returns true if name is a primitive type, in that case name contains the string "int"/"float"/etc. |
String |
typeWithoutDimensions(Properties attributes)
Returns the type specified with the type parameter without dimensions. |
| 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 |
public static final int TYPE_CONCRETE_TYPE
public static final int TYPE_SUPERCLASS
public static final int TYPE_HIERARCHY
| Constructor Detail |
public TypeTagsHandler()
| Method Detail |
public static boolean isPrimitiveType(String name)
name - Description of Parameter
public static boolean isPrimitiveArray(String name)
name - The name of the type.
isPrimitiveType(java.lang.String)
public static boolean isOfType(xjavadoc.XClass clazz,
String type,
int extent)
type - Description of Parameterclazz - extent -
public static int extractExtentType(String extent_str)
extent_str - Description of Parameter
ClassTagsHandler.forAllClasses(java.lang.String,java.util.Properties),
ifIsOfType_Impl(java.lang.String,java.util.Properties,boolean),
TYPE_HIERARCHY,
TYPE_CONCRETE_TYPE,
TYPE_SUPERCLASS
public void ifIsPrimitive(String template,
Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tag
XDocletException - Description of ExceptionifIsNotPrimitive(java.lang.String,java.util.Properties),
isPrimitiveType(java.lang.String)
public void ifIsPrimitiveArray(String template,
Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tag
XDocletException - Description of ExceptionifIsNotPrimitiveArray(java.lang.String,java.util.Properties),
isPrimitiveArray(java.lang.String)
public void ifIsNotPrimitiveArray(String template,
Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tag
XDocletException - Description of ExceptionifIsPrimitiveArray(java.lang.String,java.util.Properties),
isPrimitiveArray(java.lang.String)
public void ifIsPrimitiveOrString(String template,
Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tag
XDocletException - Description of ExceptionifIsNotPrimitive(java.lang.String,java.util.Properties),
isPrimitiveType(java.lang.String)
public void ifIsNotPrimitiveOrString(String template,
Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tag
XDocletException - Description of ExceptionifIsNotPrimitive(java.lang.String,java.util.Properties),
isPrimitiveType(java.lang.String)
public void ifIsNotPrimitive(String template,
Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tag
XDocletException - Description of ExceptionifIsPrimitive(java.lang.String,java.util.Properties),
isPrimitiveType(java.lang.String)
public void ifIsNotOfType(String template,
Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tag
XDocletException - Description of ExceptionifIsOfType(java.lang.String,java.util.Properties)
public void ifIsOfType(String template,
Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tag
XDocletException - Description of ExceptionifIsNotOfType(java.lang.String,java.util.Properties)
public String typeWithoutDimensions(Properties attributes)
throws XDocletException
type parameter without dimensions.
attributes -
XDocletExceptionString[][] will be returned as String."
protected void ifIsOfType_Impl(String template,
Properties attributes,
boolean condition)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagcondition - Description of Parameter
XDocletException - Description of ExceptionifIsOfType(java.lang.String,java.util.Properties),
ifIsNotOfType(java.lang.String,java.util.Properties)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||