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
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'
An interface for objects that determine which properties the generated
helpers will attempt to copy to model when a createModel or copyIntoModel
call is invoked.
output the default concrete collection class for the collection class
* generated by the contained template
* @param template
* @return
* @throws XDocletException
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
Returns the snapshot helper for a model object and snapshot name
* @param model the model object
* @param snapshotName the snapshot name
* @return the helper object, or null if no helper is registered for
* that combination of model object and snapshot name
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
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
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
inverse transformer for nested properties. given a value that was the result of
a nested property lookup, and the property name, attempts to lookup the original
property.
inverse transformer for nested properties. given a value that was the result of
a nested property lookup, and the property name, attempts to lookup the original
property.
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
This class wraps a model object plus a snapshot name
such that two instances of this class are equals iff
their model objects are == and their snapshot names are equals
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"
*
attribute for specifying explicitly whether this property will be copied by the auto
* generated helper when transforming the snapshot back into the model
keyword for indicating that xsnapshot should generate an equals,
* hashCode, compareTo, toString methods that use the Commons Lang
* reflection methods
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
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
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
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.
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
return whether the property described by the arguments should be copied
back to the model. This should not take into account the value of the
"copy-to-model" attribute as that check will have already been taken,
and this method is only called if copying is not determined by it.
return whether the property described by the arguments should be copied
back to the model. This should not take into account the value of the
"copy-to-model" attribute as that check will have already been taken,
and this method is only called if copying is not determined by it.
return whether the property described by the arguments should be copied
back to the model. This should not take into account the value of the
"copy-to-model" attribute as that check will have already been taken,
and this method is only called if copying is not determined by it.
return whether the property described by the arguments should be copied
back to the model. This should not take into account the value of the
"copy-to-model" attribute as that check will have already been taken,
and this method is only called if copying is not determined by it.
return whether the property described by the arguments should be copied
back to the model. This should not take into account the value of the
"copy-to-model" attribute as that check will have already been taken,
and this method is only called if copying is not determined by it.
a suffix for variables based on the current property in the snapshot. basically
* just snapshotPropertyName() with the first letter capitalized
* @return
* @throws XDocletException
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'
a utility class for type conversion that handles boxing and unboxing primitive types,
as well as convenience methods which call appropriate transformers for
model<->snapshot transformations and nested property lookups.
Expects the arg1 of transformerArgs to be the name of a snapshot
defined on the class of objectToTransform. returns
the named snapshot of objectToTransform.
Returns either a java.util.Date or java.util.Calendar (depending on
the value of toClass) which contains the date whose String form
is given by by objectToTransform.
Returns the size of objectToTransform, where size is defined
dependant on the value of objectToTransform as follows:
if objectToTransform is null, return 0.
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'
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'
Subtask to create the properties file containing the mappings of
models, snapshot names, and snapshot and snapshot helper classes,
as well as the standard transformers.