|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.generator.tags.AbstractSandBaseTag
org.sandev.generator.tags.AbstractSandFieldTag
org.sandev.generator.tags.FieldTagDateFormat
public class FieldTagDateFormat
Handle @sand.dateformat declarations.
Declares a display and optional edit format to use for this Date field, following the coding of java.text.SimpleDateFormat. The first parameter is a quoted string representing the formatting to use for display. A second string may be specified for use during editing, since often the user input a shorter format than the main display. If no edit format is specified, then the display format is used for both.
An optional third parameter TimeZone identifier may be used to specify the TimeZone used for date translation. Normally all dates are server time, but it is sometimes necessary to store a date using a different timezone such as "Etc/UTC". If a timezone id is specified, then the display and edit formats must also be specifed. This keeps the parsing unambiguous, but also recognizes that the default locale formatting for the server may not be correct if the timezone is being overridden.
Comments are not supported for this tag.
parameters:
| Field Summary | |
|---|---|
static java.lang.String |
CORENAME
The core name of this tag. |
protected java.lang.String |
displayFormat
The format string to use for display. |
protected java.lang.String |
editFormat
The format string to use for editing. |
protected java.lang.String |
fieldName
The name of the field which had this dateformat associated with it. |
static java.lang.String |
TAGNAME
Our fixed name, used for hash lookup and text parsing. |
protected java.lang.String |
timeZoneID
The format string to use for editing. |
| Fields inherited from class org.sandev.generator.tags.AbstractSandBaseTag |
|---|
PREFIX |
| Constructor Summary | |
|---|---|
FieldTagDateFormat()
|
|
| Method Summary | |
|---|---|
static boolean |
exists(com.sun.javadoc.FieldDoc fd)
Returns true if the given field contains this tag, false otherwise. |
java.lang.String |
getDisplayFormat()
accessor for displayFormat |
java.lang.String |
getEditFormat()
accessor for editFormat |
java.lang.String |
getFieldName()
accessor for fieldName |
static FieldTagDateFormat |
getFieldTagDateFormat(com.sun.javadoc.FieldDoc fd)
Factory method for retrieving a new instance given a FieldDoc. |
java.lang.String |
getName()
Return our tag name |
java.lang.String |
getTimeZoneID()
accessor for timeZoneID |
void |
init(com.sun.javadoc.Tag tag)
Initialize this instance from the tag information. |
static void |
register(java.util.Map tagletMap)
Registers this taglet when triggered by the taglet declaration being loaded in as part of the build. |
void |
setDisplayFormat(java.lang.String val)
mutator for displayFormat |
void |
setEditFormat(java.lang.String val)
mutator for editFormat |
void |
setFieldName(java.lang.String val)
mutator for fieldName |
void |
setTimeZoneID(java.lang.String val)
mutator for timeZoneID |
java.lang.String |
toString(com.sun.javadoc.Tag tag)
Return a documentation description of this tag. |
java.lang.String |
toString(com.sun.javadoc.Tag[] tags)
Return the documentation text for when several of these tags are present. |
| Methods inherited from class org.sandev.generator.tags.AbstractSandFieldTag |
|---|
inField |
| Methods inherited from class org.sandev.generator.tags.AbstractSandBaseTag |
|---|
inConstructor, inMethod, inOverview, inPackage, inType, isInlineTag, registerHelper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CORENAME
protected java.lang.String displayFormat
protected java.lang.String editFormat
protected java.lang.String timeZoneID
protected java.lang.String fieldName
public static final java.lang.String TAGNAME
| Constructor Detail |
|---|
public FieldTagDateFormat()
| Method Detail |
|---|
public java.lang.String getDisplayFormat()
public void setDisplayFormat(java.lang.String val)
public java.lang.String getEditFormat()
public void setEditFormat(java.lang.String val)
public java.lang.String getTimeZoneID()
public void setTimeZoneID(java.lang.String val)
public java.lang.String getFieldName()
public void setFieldName(java.lang.String val)
public void init(com.sun.javadoc.Tag tag)
public java.lang.String getName()
public static void register(java.util.Map tagletMap)
public java.lang.String toString(com.sun.javadoc.Tag tag)
toString in interface com.sun.tools.doclets.TaglettoString in class AbstractSandBaseTagtag - the Tag representation of this custom tag.public java.lang.String toString(com.sun.javadoc.Tag[] tags)
toString in interface com.sun.tools.doclets.TaglettoString in class AbstractSandBaseTagtags - the array of Tags representing of this custom tag.public static FieldTagDateFormat getFieldTagDateFormat(com.sun.javadoc.FieldDoc fd)
public static boolean exists(com.sun.javadoc.FieldDoc fd)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||