|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxdoclet.template.TemplateTagHandler
xdoclet.XDocletTagSupport
net.sf.xsnapshot.tagshandler.XSnapshotTagsHandler
TagsHandler for all XSnapshot XDoclet template tags. * * @xdoclet.taghandler namespace="XSnapshot" * @author Daniel Kokotov, Bill Schneider
Field Summary | |
static String |
AGGRESSIVE_COPY_TO_MODEL_POLICY
keyword for the aggressive copy to model policy |
static String |
ALL_COPY_TO_MODEL_POLICY
keyword for the all copy to model policy |
static String |
ARRAY_TAG
tag name for declaring an array snapshot property |
static String |
COLLECTION_ELEMENT_NESTED_PARAM
attribute for specifying a BeanUtils style prooperty reference to be * applied to elements of the collection in the model |
static String |
COLLECTION_ELEMENT_SNAPSHOT_NAME_PARAM
attribute for specifying the name of the snapshot on the elements in the * collection in the model that will produce the elements of the collection * in the snapshot |
static String |
COLLECTION_TAG
tag name for declaring a collection snapshot property |
static String |
COMPARISON_ORDER_PARAM
attribute for specifying the order in the generated compareTo method that * this property should take if the generate-equals for that snapshot is set * to 'enumerated' |
static String |
CONSERVATIVE_COPY_TO_MODEL_POLICY
keyword for the conservative copy to model policy |
static String |
COPY_TO_MODEL_POLICY_PARAM
attribute name for class-level copy-to-model policy |
static String |
ENUMERATED_KEYWORD
keyword for indicating that xsnapshot should generate an equals, * hashCode, compareTo, toString methods that use the Commons Lang builders * and include the properties specified by appropriate markers on the * property tags |
static String |
EQUALS_GENERATE_PARAM
attribute for specifying how the equals, hashCode, and compareTo methods * should be generated for this snapshot class |
static String |
EXTENDS_PARAM
attribute for specifying the classname of the superclass of the snapshot * class |
static String |
GENERATE_HELPER_PARAM
attribute name to control helper generation |
static String |
HELPER_SUFFIX
suffix used to construct helper classname from snapshot classname |
static String |
IMPLEMENTS_PARAM
attribute for specifying a list of interfaces implemented by the snapshot * class |
static String |
INIT_VALUE_PARAM
attribute for specifying an initial value for a property. the value of * this attribute is taken verbatim and used as the initializer for the * private member field backing the property |
static String[] |
KEYWORD_COPY_TO_MODEL_POLICIES
|
static String |
MAP_KEY_NESTED_PARAM
attribute for specifying a BeanUtils style property reference to the keys * of the map in the model |
static String |
MAP_KEY_SNAPSHOT_NAME_PARAM
attribute for specifying the key of the snapshot on the keys of the map * in the model |
static String |
MAP_TAG
tag name for declaring a map snapshot property |
static String |
MAP_VALUE_NESTED_PARAM
attribute for specifying a BeanUtils style property reference to the * values of the map in the model |
static String |
MAP_VALUE_SNAPSHOT_NAME_PARAM
attribute for specifying the name of the snapshot on the values of the map * in the model |
static String |
MATCH_ALL
* Wildcard used to indicate a property declaration should match all * * snapshots * |
static String |
MATCH_PARAM
attribute for specifying which snapshots this property declaration * applies to |
static String |
MEMBER_VAR_PREFIX
prefix used to construct member variable name from property name |
static String |
MODEL_COLLECTION_ARRAY_CREATE_EXPR_PARAM
attribute for specifying explicitly the expression to initialize the * value of the collection in the model |
static String |
MODEL_COLLECTION_ELEMENT_NESTED_TYPE_PARAM
attribute for specifying the types of the elements of the collection in * the model after applying nested property calculation. |
static String |
MODEL_COLLECTION_ELEMENT_TRANSFORMER_ARG_PARAM_PREFIX
attribute prefix for specifying args for a transformer to be applied to * elements of the * collection in the snapshot when transforming back to model |
static String |
MODEL_COLLECTION_ELEMENT_TRANSFORMER_PARAM
attribute for specifying a transformer to be applied to elements of the * collection in the snapshot when transforming back to model |
static String |
MODEL_COLLECTION_ELEMENT_TYPE_PARAM
attribute for specifying the types of the elements of the collection in * the model |
static String |
MODEL_EXTENDS_PARAM
attribute for specifying the class on which the snapshot with the key * specified by SNAPSHOT_EXTENDS_PARAM attribute is defined, used to calculate * the superclass of the snapshot class |
static String |
MODEL_MAP_CREATE_EXPR_PARAM
attribute for specifying the expression for initializing the value of the * map in the model |
static String |
MODEL_MAP_KEY_NESTED_TYPE_PARAM
attribute for specifying the types of the keys of the map in * the model after applying nested property calculation. |
static String |
MODEL_MAP_KEY_TRANSFORMER_ARG_PARAM_PREFIX
attribute prefix for specifying an arg for transformer to be applied to the keys of the map * in the snapshot |
static String |
MODEL_MAP_KEY_TRANSFORMER_PARAM
attribute for specifying a transformer to be applied to the keys of the map * in the snapshot |
static String |
MODEL_MAP_KEY_TYPE_PARAM
attribute for specifying the types of the keys of the map in * the model |
static String |
MODEL_MAP_VALUE_NESTED_TYPE_PARAM
attribute for specifying the types of the values of the map in * the model after applying nested property calculation. |
static String |
MODEL_MAP_VALUE_TRANSFORMER_ARG_PARAM_PREFIX
attribute prefix for specifying an arg for transformer to be applied to the values of the map * in the snapshot |
static String |
MODEL_MAP_VALUE_TRANSFORMER_PARAM
attribute for specifying a transformer to be applied to the values of the map * in the snapshot |
static String |
MODEL_MAP_VALUE_TYPE_PARAM
attribute for specifying the types of the values of the map in * the model |
static String |
MODERATE_COPY_TO_MODEL_POLICY
keyword for the moderate copy to model policy |
static String |
NONE_COPY_TO_MODEL_POLICY
keyword for the none copy to model policy |
static String |
NONE_KEYWORD
keyword for indicating no equals or tostring method should be generated * by xsnapshot, or that no getter or setter should be generated |
static String |
PROPERTY_COPY_TO_MODEL_PARAM
attribute for specifying explicitly whether this property will be copied by the auto * generated helper when transforming the snapshot back into the model |
static String |
PROPERTY_GETTER_ACCESS_PARAM
attribute for specifying the access modifier for the getter in the snapshot |
static String |
PROPERTY_NAME_PARAM
attribute fior specifying the name of the property in the snapshot |
static String |
PROPERTY_SETTER_ACCESS_PARAM
attribute for specifying the access modifier for the setter in the snapshot |
static String |
PROPERTY_TAG
tag name for declaring a regular snapshot property |
static String |
PROPERTY_TYPE_PARAM
attribute for specifying explicitly the type of the property in the * snapshot |
static String |
REFLECTION_KEYWORD
keyword for indicating that xsnapshot should generate an equals, * hashCode, compareTo, toString methods that use the Commons Lang * reflection methods |
static String |
SIMPLE_PROPERTY_MODEL_TRANSFORMER_ARG_PARAM_PREFIX
attribute prefix for specifying an arg to a transformer to apply to the value * returned by * the snapshot class's getter before setting it in the model |
static String |
SIMPLE_PROPERTY_MODEL_TRANSFORMER_PARAM
attribute for specifying a transformer to apply to the value returned by * the snapshot class's getter before setting it in the model |
static String |
SIMPLE_PROPERTY_NESTED_PARAM
attribute for specifying an expression which must be a BeanUtils-style * property expression to be applied to the return of the property to * calculate the actual property for the rest of the tag declaration |
static String |
SIMPLE_PROPERTY_SNAPSHOT_NAME_PARAM
attribute for specifying the key of the snapshot on the type of the * property in the model which will determine the type of the property in * the snapshot |
static String |
SIMPLE_PROPERTY_SNAPSHOT_TRANSFORMER_ARG_PARAM_PREFIX
attribute prefix for specifying an arg to a transformer to apply to the value * returned by * the model class's getter before setting it in the snapshot. |
static String |
SIMPLE_PROPERTY_SNAPSHOT_TRANSFORMER_PARAM
attribute for specifying a transformer to apply to the value returned by * the model class's getter before setting it in the snapshot |
static String |
SNAPSHOT_CLASS_PARAM
attribute for specifying the classname of the snapshot class explicitly |
static String |
SNAPSHOT_CLASS_TAG
tag name for the declaration of a snapshot on a model class |
static String |
SNAPSHOT_COLLECTION_ARRAY_CREATE_EXPR_PARAM
attribute for specifying explicitly the expression to initialize the * value of the collection in the snapshot |
static String |
SNAPSHOT_COLLECTION_ELEMENT_TRANSFORMER_ARG_PARAM_PREFIX
attribute for specifying a transformer to be applied to elements of the * collection in the model |
static String |
SNAPSHOT_COLLECTION_ELEMENT_TRANSFORMER_PARAM
attribute for specifying a transformer to be applied to elements of the * collection in the model |
static String |
SNAPSHOT_COLLECTION_ELEMENT_TYPE_PARAM
attribute for specifying explicitly the type of the elements in the * colleciton in the snapshot |
static String |
SNAPSHOT_EXTENDS_PARAM
attribute for specifying the key of the snapshot on the class specified * by MODEL_EXTENDS_PARAM attribute, used to calculate the superclass of the * snapshot class |
static String |
SNAPSHOT_MAP_CREATE_EXPR_PARAM
attribute for specifying the expression for initializing the value of the * map in the snapshot |
static String |
SNAPSHOT_MAP_KEY_TRANSFORMER_ARG_PARAM_PREFIX
attribute prefix for specifying an arg for transformer to be applied to the keys of the map * in the model |
static String |
SNAPSHOT_MAP_KEY_TRANSFORMER_PARAM
attribute for specifying a transformer to be applied to the keys of the map * in the model |
static String |
SNAPSHOT_MAP_KEY_TYPE_PARAM
attribute for specifying explitly the type of the keys of the map in the * snapshot |
static String |
SNAPSHOT_MAP_VALUE_TRANSFORMER_ARG_PARAM_PREFIX
attribute prefix for specifying an arg for transformer to be applied to the values of the map * in the model |
static String |
SNAPSHOT_MAP_VALUE_TRANSFORMER_PARAM
attribute for specifying a transformer to be applied to the values of the map * in the model |
static String |
SNAPSHOT_MAP_VALUE_TYPE_PARAM
attribute for specifying explitly the type of the values of the map in * the snapshot |
static String |
SNAPSHOT_NAME_PARAM
attribute for specifying the key used to refer to this snapshot |
static String |
SNAPSHOT_SPECIFIC_MERGE_PATTERN
merge pattern for the file to merge in per snapshot |
static String |
SUPER_EXTENDS_KEYWORD
syntatic sugar keyword for the model-extends attribute that is a synonym * for the superclass of the model class in which the snapshot is defined |
static String |
THIS_EXTENDS_KEYWORD
syntatic sugar keyword for the model-extends attribute that is a synonym * for the model class in which the snapshot is defined |
static String |
TOSTRING_GENERATE_PARAM
attribute for specifying how the toString method should be generated for * this snapshot class |
static String |
TOSTRING_ORDER_PARAM
attribute for specifying the order in the generated toString method that * this property should take if the generate-tostring for that snapshot is * set to 'enumerated' |
static String |
USE_IN_EQUALS_PARAM
attribute for specifying whether this property should be included in * calculating equals, hashCode, and compareTo for this snapshot if the * generate-equals attribute for that snapshot is set to 'enumerated' |
static String |
USE_IN_TOSTRING_PARAM
attribute for specifying whether this property should be included in * calculating toString for this snapshot if the generate-tostring attribute * for that snapshot is set to 'enumerated' |
static String |
XSNAPSHOT_TAG_PREFIX
|
Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
Constructor Summary | |
XSnapshotTagsHandler()
|
Method Summary | |
String |
collectionArrayElementNestedProperty()
|
String |
collectionArrayElementSnapshotName()
|
void |
conversionMethodForType(String template)
|
void |
defaultConcreteCollectionType(String template)
output the default concrete collection class for the collection class * generated by the contained template * @param template * @return * @throws XDocletException |
void |
defaultConcreteMapType(String template)
output the default concerte map class for the map class generated by the * contained template * @param template * @throws XDocletException |
void |
defaultValueForType(String template)
|
String |
extendsFrom()
Returns the class this extends from |
void |
forAllComparableProperties(String template)
Runs the contained template for all properties that are to be used in the * compareTo method generation for the current snapshot |
void |
forAllEqualsProperties(String template)
Runs the contained template for all properties that are to be used in the * equals method generation for the current snapshot |
void |
forAllHashCodeProperties(String template)
Runs the contained template for all properties that are to be used in the * hashCode method generation for the current snapshot |
void |
forAllToStringProperties(String template)
|
void |
forAllXSnapshotProperties(String template)
* runs the specified template for all properties that should be included in * * the current snapshot * |
protected xjavadoc.XMethod |
getNestedProperty()
returns the nested property for simple property tags, ie the property * corresponding to the final segment in a nested property reference. |
static String |
getSnapshotClass(xjavadoc.XClass clazz,
String snapshotName)
retrieve the qualified class name for the given snapshot on given class * @param clazz * the model class on which the snapshot is defined * @param snapshotName * the key of the snapshot whose class name is desired * @return the qualified class naame of the snapshot, or null if no snapshot * with that name on that class |
static String |
getSnapshotClass(xjavadoc.XTag tag)
get the qualified class name of the snapshot defined by the given * xsnapshot.snapshot-class tag. |
static String |
getSnapshotName(xjavadoc.XTag tag)
get the name of the snapshot defined by the give xsnapshot.snapshot-class tag * @param tag the tag that defines the snapshot. name of tag must be xsnapshot.snapshot-class * @return the name of the snapshot |
String |
helperClass()
get the class name of the helper class for the current snapshot * @doc.tag type="content" |
void |
ifCanUseDirectModelGetter(String template)
runs the contained template if the current * property's model value can be obtained by direct call to the getter. |
void |
ifCanUseDirectModelSetter(String template)
runs the contained template if the current * property's model value can be set by direct call to the setter. |
void |
ifCanUseDirectSnapshotGetter(String template)
runs the contained template if the current * property's snapshot value can be obtained by direct call to the getter. |
void |
ifCanUseDirectSnapshotSetter(String template)
runs the contained template if the current * property's snapshot value can be set by direct call to the setter. |
void |
ifCollectionArrayElementUsesNestedProperty(String template)
Runs the contained template if the current collection/array tag specifies * a element-expr |
void |
ifCollectionArrayElementUsesSnapshot(String template)
* Runs the contained template if the current collection tag specifies that * * its elements are snapshots * |
void |
ifCollectionArrayElementUsesTypeConversion(String template)
Runs the contained template if this current collection/array tag requires * element type conversion |
void |
ifCurrentTagIsArray(String template)
|
void |
ifCurrentTagIsArrayOrCollection(String template,
Properties attrs)
|
void |
ifCurrentTagIsCollection(String template,
Properties attrs)
|
void |
ifCurrentTagIsMap(String template,
Properties attrs)
|
void |
ifCurrentTagIsSimpleProperty(String template)
|
void |
ifExtendsFromSnapshot(String template)
runs the contained template if this snapshot extends from another * snapshot |
void |
ifGenerateEquals(String template)
* Runs the contained template if we are generating the equals method, i.e |
void |
ifGenerateHelper(String template)
Evaluate the template if we are generating the current helper |
void |
ifGenerateToString(String template)
Runs the contained template if we are auto-generating the toString method * for this snapshot class |
void |
ifHasInitValue(String template)
TODO: figure out correct behavior for collections, maps * runs the contained template if the current * xsnapshot. |
void |
ifHasSnapshotGetter(String template)
runs the contained template if the current * property should have a getter in the snapshot * * @throws XDocletException * |
void |
ifHasSnapshotSetter(String template)
runs the contained template if the current * property should have a setter in the snapshot * * @throws XDocletException * |
void |
ifImplementsComparable(String template)
runs the contained template if the current snapshot is declared to * implement the Comparable interface |
void |
ifMapKeyUsesNestedProperty(String template)
* Runs the contained template if the current map tag specifies a key-expr * |
void |
ifMapKeyUsesSnapshot(String template)
* Runs the contained template if this current field is a mapKeyIsSnapshot |
void |
ifMapKeyUsesTypeConversion(String template)
* Runs the contained template if this current map tag requires key type * * conversion * |
void |
ifMapValueUsesNestedProperty(String template)
* Runs the contained template if the current map tag specifies a value-expr * |
void |
ifMapValueUsesSnapshot(String template)
* Runs the contained template if this current field is a * * mapValueIsSnapshot |
void |
ifMapValueUsesTypeConversion(String template)
* Runs the contained template if this current map tag requires value type * * conversion * |
void |
ifMatchesSnapshot(String template)
runs the contained template if the current * xsnapshot. |
void |
ifModelCollectionArrayExplicitCreateExpr(String template)
Runs the contained template if the current map tag specifies * an explicit create expr for the value of the map in the model |
void |
ifModelMapExplicitCreateExpr(String template)
Runs the contained template if the current map tag specifies * an explicit create expr for the value of the map in the model |
void |
ifModelPropertyIsArray(String template)
runs the contained template if the current property in the model is array-valued * @param template * @throws XDocletException |
void |
ifNotCanUseDirectModelGetter(String template)
runs the contained template if the current * property's model value cannot be obtained by direct call to the getter |
void |
ifNotCanUseDirectModelSetter(String template)
runs the contained template if the current * property's model value cannot be set by direct call to the setter |
void |
ifNotCanUseDirectSnapshotGetter(String template)
runs the contained template if the current * property's snapshot value cannot be obtained by direct call to the getter |
void |
ifNotCanUseDirectSnapshotSetter(String template)
runs the contained template if the current * property's snapshot value cannot be set by direct call to the setter |
void |
ifNotCollectionArrayElementUsesNestedProperty(String template)
Runs the contained template if the current collection/array tag specifies * a element-expr |
void |
ifNotCollectionArrayElementUsesSnapshot(String template)
* Runs the contained template if the current collection tag specifies that * * its elements are not snapshots * |
void |
ifNotCollectionArrayElementUsesTypeConversion(String template)
* Runs the contained template if this current collection/array tag does not * * require element type conversion * |
void |
ifNotExtendsFromObject(String template)
runs the contained template if this snapshot extends from a class * other than java.lang.Object. |
void |
ifNotMapKeyUsesNestedProperty(String template)
* Runs the contained template if the current map tag does not specify a * * key-expr * |
void |
ifNotMapKeyUsesSnapshot(String template)
* Runs the contained template if this current field is not a * * mapKeyIsSnapshot |
void |
ifNotMapKeyUsesTypeConversion(String template)
* Runs the contained template if this current map tag does not require key * * type conversion * |
void |
ifNotMapValueUsesNestedProperty(String template)
* Runs the contained template if the current map tag does not specify a * * value-expr * |
void |
ifNotMapValueUsesSnapshot(String template)
* Runs the contained template if this current field is not a * * mapValueIsSnapshot |
void |
ifNotMapValueUsesTypeConversion(String template)
* Runs the contained template if this current map tag does not require * * value type conversion * |
void |
ifNotModelCollectionArrayExplicitCreateExpr(String template)
Runs the contained template if the current map tag does not specify * an explicit create expr for the value of the map in the model |
void |
ifNotModelMapExplicitCreateExpr(String template)
Runs the contained template if the current map tag does not specify * an explicit create expr for the value of the map in the model |
void |
ifNotModelPropertyIsArray(String template)
runs the contained template if the current property in the model is array-valued * @param template * @throws XDocletException |
void |
ifNotShouldCopySnapshotToModel(String template)
runs the contained template if this property should NOT be copied over * when copying snapshot to model. |
void |
ifNotSimplePropertyUsesNestedProperty(String template)
Runs the contained template if the current collection/array tag specifies * a element-expr |
void |
ifNotSimplePropertyUsesSnapshot(String template)
Runs the contained template if this current field is not a * propertyReturnsSnapshot. |
void |
ifNotSimplePropertyUsesTypeConversion(String template)
Runs the contained template if this current field does not require type * covnersion |
void |
ifNotSnapshotCollectionArrayExplicitCreateExpr(String template)
Runs the contained template if the current map tag does not specify * an explicit create expr for the value of the map in the snapshot |
void |
ifNotSnapshotMapExplicitCreateExpr(String template)
Runs the contained template if the current map tag does not specify * an explicit create expr for the value of the map in the snapshot |
void |
ifNotUseReflectionEquals(String template)
Runs the contained template if we are not using reflection equals/hash * code strategy for this class |
void |
ifNotUseReflectionToString(String template)
Runs the contained template if we are using reflection equals/hash code * strategy for this class |
void |
ifShouldCopySnapshotToModel(String template)
runs the contained template if this property should be copied over * when copying snapshot to model. |
void |
ifSimplePropertyUsesNestedProperty(String template)
Runs the contained template if the current collection/array tag specifies * a element-expr |
void |
ifSimplePropertyUsesSnapshot(String template)
Runs the contained template if this current field is a * propertyReturnsSnapshot. |
void |
ifSimplePropertyUsesTypeConversion(String template)
Runs the contained template if this current property tag requires type * conversion |
void |
ifSnapshotCollectionArrayExplicitCreateExpr(String template)
Runs the contained template if the current map tag specifies * an explicit create expr for the value of the map in the snapshot |
void |
ifSnapshotMapExplicitCreateExpr(String template)
Runs the contained template if the current map tag specifies * an explicit create expr for the value of the map in the snapshot |
void |
ifUseReflectionEquals(String template)
Runs the contained template if we are using reflection equals/hash code * strategy for this class |
void |
ifUseReflectionToString(String template)
Runs the contained template if we are using reflection equals/hash code * strategy for this class |
String |
initValue()
|
static boolean |
isPrimitive(String className)
|
static boolean |
isPrimitive(xjavadoc.XClass klass)
|
String |
mapKeyNestedProperty()
|
String |
mapKeySnapshotName()
|
String |
mapValueNestedProperty()
|
String |
mapValueSnapshotName()
|
void |
mergeForSnapshot(String template)
|
String |
modelCollectionArrayElementNestedType()
|
String |
modelCollectionArrayElementTransformer()
|
String |
modelCollectionArrayElementTransformerArgs()
|
String |
modelCollectionArrayElementType()
|
String |
modelCollectionArrayExplicitCreateExpr()
|
String |
modelExtendsFrom()
returns the model class on which the snapshot from which this snapshot is * defined. extends (assumes this extends from a snapshot) * * @doc.tag type="content" * |
String |
modelGetter()
Return the string that should be used to get the value of the model * property. |
String |
modelMapExplicitCreateExpr()
|
String |
modelMapKeyNestedType()
|
String |
modelMapKeyTransformer()
|
String |
modelMapKeyTransformerArgs()
|
String |
modelMapKeyType()
|
String |
modelMapValueNestedType()
|
String |
modelMapValueTransformer()
|
String |
modelMapValueTransformerArgs()
|
String |
modelMapValueType()
|
String |
modelPropertyName()
|
String |
modelPropertyType()
|
String |
modelSetter()
|
String |
modelSimplePropertyNestedType()
|
String |
modelSimplePropertyTransformer()
|
String |
modelSimplePropertyTransformerArgs()
|
String |
simplePropertyNestedProperty()
|
String |
simplePropertySnapshotName()
|
String |
snapshotArrayElementType()
|
String |
snapshotClass()
get the class name of the current snapshot * @doc.tag type="content" |
String |
snapshotCollectionArrayElementTargetType()
|
String |
snapshotCollectionArrayElementTransformer()
|
String |
snapshotCollectionArrayElementTransformerArgs()
|
String |
snapshotCollectionArrayExplicitCreateExpr()
|
String |
snapshotExtendsFrom()
returns the name of the snapshot this snapshot is extending, if it is * extending a snapshot class, null otherwise * @doc.tag type="content" |
String |
snapshotGetter()
|
String |
snapshotGetterAccess()
|
String |
snapshotMapExplicitCreateExpr()
|
String |
snapshotMapKeyTargetType()
|
String |
snapshotMapKeyTransformer()
|
String |
snapshotMapKeyTransformerArgs()
|
String |
snapshotMapValueTargetType()
|
String |
snapshotMapValueTransformer()
|
String |
snapshotMapValueTransformerArgs()
|
String |
snapshotName()
get the key of the current snapshot * @doc.tag type="content" |
String |
snapshotPropertyName()
|
String |
snapshotPropertySuffix()
a suffix for variables based on the current property in the snapshot. basically * just snapshotPropertyName() with the first letter capitalized * @return * @throws XDocletException |
String |
snapshotPropertyType()
|
String |
snapshotPropertyVar()
|
String |
snapshotSetter()
|
String |
snapshotSetterAccess()
|
String |
snapshotSimplePropertyTargetType()
|
String |
snapshotSimplePropertyTransformer()
|
String |
snapshotSimplePropertyTransformerArgs()
|
Methods inherited from class xdoclet.XDocletTagSupport |
delimit, expandClassName, generate, getCurrentClass, getCurrentClassTag, getCurrentConstructor, getCurrentField, getCurrentFieldTag, getCurrentMethod, getCurrentMethodTag, getCurrentPackage, getDocletContext, getEngine, getExpandedDelimitedTagValue, getTagValue, getTagValue, getTagValue, hasHavingClassTag, hasTag, isTagValueEqual, mandatoryParamNotFound, mandatoryTemplateTagParamNotFound, modifiers, popCurrentClass, pushCurrentClass, setCurrentClass, setCurrentClassTag, setCurrentConstructor, setCurrentField, setCurrentFieldTag, setCurrentMethod, setCurrentMethodTag, setCurrentPackage |
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 String XSNAPSHOT_TAG_PREFIX
public static final String MATCH_ALL
public static final String HELPER_SUFFIX
public static final String MEMBER_VAR_PREFIX
public static final String SNAPSHOT_CLASS_TAG
public static final String PROPERTY_TAG
public static final String COLLECTION_TAG
public static final String ARRAY_TAG
public static final String MAP_TAG
public static final String SNAPSHOT_CLASS_PARAM
public static final String SNAPSHOT_NAME_PARAM
public static final String EXTENDS_PARAM
public static final String SNAPSHOT_EXTENDS_PARAM
public static final String MODEL_EXTENDS_PARAM
public static final String IMPLEMENTS_PARAM
public static final String EQUALS_GENERATE_PARAM
public static final String TOSTRING_GENERATE_PARAM
public static final String GENERATE_HELPER_PARAM
public static final String COPY_TO_MODEL_POLICY_PARAM
public static final String PROPERTY_NAME_PARAM
public static final String MATCH_PARAM
public static final String USE_IN_EQUALS_PARAM
public static final String USE_IN_TOSTRING_PARAM
public static final String COMPARISON_ORDER_PARAM
public static final String TOSTRING_ORDER_PARAM
public static final String INIT_VALUE_PARAM
public static final String PROPERTY_TYPE_PARAM
public static final String PROPERTY_COPY_TO_MODEL_PARAM
public static final String PROPERTY_GETTER_ACCESS_PARAM
public static final String PROPERTY_SETTER_ACCESS_PARAM
public static final String SIMPLE_PROPERTY_NESTED_PARAM
public static final String SIMPLE_PROPERTY_SNAPSHOT_TRANSFORMER_PARAM
public static final String SIMPLE_PROPERTY_SNAPSHOT_TRANSFORMER_ARG_PARAM_PREFIX
public static final String SIMPLE_PROPERTY_MODEL_TRANSFORMER_PARAM
public static final String SIMPLE_PROPERTY_MODEL_TRANSFORMER_ARG_PARAM_PREFIX
public static final String SIMPLE_PROPERTY_SNAPSHOT_NAME_PARAM
public static final String SNAPSHOT_COLLECTION_ARRAY_CREATE_EXPR_PARAM
public static final String SNAPSHOT_COLLECTION_ELEMENT_TYPE_PARAM
public static final String COLLECTION_ELEMENT_SNAPSHOT_NAME_PARAM
public static final String COLLECTION_ELEMENT_NESTED_PARAM
public static final String SNAPSHOT_COLLECTION_ELEMENT_TRANSFORMER_PARAM
public static final String SNAPSHOT_COLLECTION_ELEMENT_TRANSFORMER_ARG_PARAM_PREFIX
public static final String MODEL_COLLECTION_ELEMENT_TYPE_PARAM
public static final String MODEL_COLLECTION_ELEMENT_NESTED_TYPE_PARAM
public static final String MODEL_COLLECTION_ARRAY_CREATE_EXPR_PARAM
public static final String MODEL_COLLECTION_ELEMENT_TRANSFORMER_PARAM
public static final String MODEL_COLLECTION_ELEMENT_TRANSFORMER_ARG_PARAM_PREFIX
public static final String SNAPSHOT_MAP_CREATE_EXPR_PARAM
public static final String MODEL_MAP_CREATE_EXPR_PARAM
public static final String MAP_KEY_SNAPSHOT_NAME_PARAM
public static final String SNAPSHOT_MAP_KEY_TYPE_PARAM
public static final String MODEL_MAP_KEY_TYPE_PARAM
public static final String MODEL_MAP_KEY_NESTED_TYPE_PARAM
public static final String MAP_KEY_NESTED_PARAM
public static final String SNAPSHOT_MAP_KEY_TRANSFORMER_PARAM
public static final String SNAPSHOT_MAP_KEY_TRANSFORMER_ARG_PARAM_PREFIX
public static final String MODEL_MAP_KEY_TRANSFORMER_PARAM
public static final String MODEL_MAP_KEY_TRANSFORMER_ARG_PARAM_PREFIX
public static final String SNAPSHOT_MAP_VALUE_TYPE_PARAM
public static final String MODEL_MAP_VALUE_TYPE_PARAM
public static final String MODEL_MAP_VALUE_NESTED_TYPE_PARAM
public static final String MAP_VALUE_SNAPSHOT_NAME_PARAM
public static final String MAP_VALUE_NESTED_PARAM
public static final String SNAPSHOT_MAP_VALUE_TRANSFORMER_PARAM
public static final String SNAPSHOT_MAP_VALUE_TRANSFORMER_ARG_PARAM_PREFIX
public static final String MODEL_MAP_VALUE_TRANSFORMER_PARAM
public static final String MODEL_MAP_VALUE_TRANSFORMER_ARG_PARAM_PREFIX
public static final String THIS_EXTENDS_KEYWORD
public static final String SUPER_EXTENDS_KEYWORD
public static final String NONE_KEYWORD
public static final String REFLECTION_KEYWORD
public static final String ENUMERATED_KEYWORD
public static final String NONE_COPY_TO_MODEL_POLICY
public static final String CONSERVATIVE_COPY_TO_MODEL_POLICY
public static final String MODERATE_COPY_TO_MODEL_POLICY
public static final String AGGRESSIVE_COPY_TO_MODEL_POLICY
public static final String ALL_COPY_TO_MODEL_POLICY
public static final String[] KEYWORD_COPY_TO_MODEL_POLICIES
public static final String SNAPSHOT_SPECIFIC_MERGE_PATTERN
Constructor Detail |
public XSnapshotTagsHandler()
Method Detail |
protected xjavadoc.XMethod getNestedProperty() throws xdoclet.XDocletException
xdoclet.XDocletException
public static boolean isPrimitive(String className)
public static boolean isPrimitive(xjavadoc.XClass klass)
public static String getSnapshotClass(xjavadoc.XClass clazz, String snapshotName)
public static String getSnapshotClass(xjavadoc.XTag tag)
xsnapshot.snapshot-class
tag. If classname is explicitly specified,
* use that, otherwise use the configured pattern to auto-generate the classname.
*
* @param tag the tag that defines the snapshot. name of tag must be xsnapshot.snapshot-class
* @return the class name of the snapshot
public static String getSnapshotName(xjavadoc.XTag tag)
public String snapshotClass() throws xdoclet.XDocletException
xdoclet.XDocletException
public String helperClass() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotName() throws xdoclet.XDocletException
xdoclet.XDocletException
public String extendsFrom() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotExtendsFrom() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelExtendsFrom() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelPropertyType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelSimplePropertyNestedType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotPropertyType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotPropertyName() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotPropertySuffix() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelPropertyName() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotPropertyVar() throws xdoclet.XDocletException
xdoclet.XDocletException
public String initValue() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotSimplePropertyTransformer() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotSimplePropertyTransformerArgs() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotSimplePropertyTargetType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelSimplePropertyTransformer() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelSimplePropertyTransformerArgs() throws xdoclet.XDocletException
xdoclet.XDocletException
public String simplePropertyNestedProperty() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelGetter() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotGetter() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotGetterAccess() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelSetter() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotSetter() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotSetterAccess() throws xdoclet.XDocletException
xdoclet.XDocletException
public String mapKeySnapshotName() throws xdoclet.XDocletException
xdoclet.XDocletException
public String mapValueSnapshotName() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotMapKeyTargetType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotMapKeyTransformer() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotMapKeyTransformerArgs() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotMapValueTargetType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotMapValueTransformer() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotMapValueTransformerArgs() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotMapExplicitCreateExpr() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelMapKeyTransformer() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelMapKeyTransformerArgs() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelMapKeyType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelMapKeyNestedType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String mapKeyNestedProperty() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelMapValueTransformer() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelMapValueTransformerArgs() throws xdoclet.XDocletException
xdoclet.XDocletException
public String mapValueNestedProperty() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelMapValueType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelMapValueNestedType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelMapExplicitCreateExpr() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelCollectionArrayElementType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelCollectionArrayElementNestedType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelCollectionArrayExplicitCreateExpr() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotArrayElementType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotCollectionArrayElementTargetType() throws xdoclet.XDocletException
xdoclet.XDocletException
public String collectionArrayElementSnapshotName() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotCollectionArrayElementTransformer() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotCollectionArrayElementTransformerArgs() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelCollectionArrayElementTransformer() throws xdoclet.XDocletException
xdoclet.XDocletException
public String modelCollectionArrayElementTransformerArgs() throws xdoclet.XDocletException
xdoclet.XDocletException
public String collectionArrayElementNestedProperty() throws xdoclet.XDocletException
xdoclet.XDocletException
public String snapshotCollectionArrayExplicitCreateExpr() throws xdoclet.XDocletException
xdoclet.XDocletException
public String simplePropertySnapshotName() throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifExtendsFromSnapshot(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotExtendsFromObject(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void defaultConcreteMapType(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void defaultConcreteCollectionType(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifMatchesSnapshot(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifHasInitValue(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifHasSnapshotGetter(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifHasSnapshotSetter(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCanUseDirectModelGetter(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotCanUseDirectModelGetter(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCanUseDirectModelSetter(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotCanUseDirectModelSetter(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCanUseDirectSnapshotGetter(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotCanUseDirectSnapshotGetter(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCanUseDirectSnapshotSetter(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotCanUseDirectSnapshotSetter(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifModelPropertyIsArray(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotModelPropertyIsArray(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifShouldCopySnapshotToModel(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotShouldCopySnapshotToModel(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifSimplePropertyUsesTypeConversion(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotSimplePropertyUsesTypeConversion(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifSimplePropertyUsesSnapshot(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotSimplePropertyUsesSnapshot(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifSimplePropertyUsesNestedProperty(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotSimplePropertyUsesNestedProperty(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifModelMapExplicitCreateExpr(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotModelMapExplicitCreateExpr(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifSnapshotMapExplicitCreateExpr(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotSnapshotMapExplicitCreateExpr(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifMapKeyUsesSnapshot(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotMapKeyUsesSnapshot(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifMapKeyUsesNestedProperty(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotMapKeyUsesNestedProperty(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifMapKeyUsesTypeConversion(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotMapKeyUsesTypeConversion(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifMapValueUsesSnapshot(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotMapValueUsesSnapshot(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifMapValueUsesNestedProperty(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotMapValueUsesNestedProperty(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifMapValueUsesTypeConversion(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotMapValueUsesTypeConversion(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifModelCollectionArrayExplicitCreateExpr(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotModelCollectionArrayExplicitCreateExpr(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifSnapshotCollectionArrayExplicitCreateExpr(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotSnapshotCollectionArrayExplicitCreateExpr(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCollectionArrayElementUsesSnapshot(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotCollectionArrayElementUsesSnapshot(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCollectionArrayElementUsesNestedProperty(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotCollectionArrayElementUsesNestedProperty(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCollectionArrayElementUsesTypeConversion(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotCollectionArrayElementUsesTypeConversion(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void forAllXSnapshotProperties(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifGenerateEquals(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifUseReflectionEquals(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotUseReflectionEquals(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifImplementsComparable(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void forAllEqualsProperties(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void forAllHashCodeProperties(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void forAllComparableProperties(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifGenerateToString(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifUseReflectionToString(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifNotUseReflectionToString(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void forAllToStringProperties(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void defaultValueForType(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void conversionMethodForType(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCurrentTagIsSimpleProperty(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCurrentTagIsArrayOrCollection(String template, Properties attrs) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCurrentTagIsArray(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCurrentTagIsCollection(String template, Properties attrs) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifCurrentTagIsMap(String template, Properties attrs) throws xdoclet.XDocletException
xdoclet.XDocletException
public void mergeForSnapshot(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
public void ifGenerateHelper(String template) throws xdoclet.XDocletException
xdoclet.XDocletException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |