|
|||||||||
| 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.AbstractSandClassTag
org.sandev.generator.tags.AbstractSandStructTag
org.sandev.generator.tags.StructTagSummaryfields
public class StructTagSummaryfields
Handle the @sand.summaryfields declaration.
Declares one or more fields which will be used to form a summary description. A summary description is used when displaying a collection of instances, and to provide human-readable navigational linkage in a UI. The names of the fields, together with their values are made available in the raw UI display output, which is then transformed to provide the finished display.
Not all the fields specified in this declaration will necessarily be used in a UI. They may be filtered out based on context, space considerations, or other reasons. It is recommended that the summary display fields be specified in priority order.
What's valid to specify:
Array fields are NOT valid to specify in a summary.
If no fields are specified for a summary, then for a persistent message the uniqueID is used. Otherwise the first declared field is used. If a struct has no fields, then this method will return an empty array, and what happens in the UI is indeterminate. The expectation is that all struct declarations will have at least one data field.
parameters: One or more field (data member) names separated
by whitespace.
This tag does not support comments.
| Field Summary | |
|---|---|
static java.lang.String |
CORENAME
The core name of this tag. |
protected java.lang.String[] |
fieldNames
The array of field names |
static java.lang.String |
TAGNAME
Our fixed name, used for hash lookup and text parsing. |
| Fields inherited from class org.sandev.generator.tags.AbstractSandBaseTag |
|---|
PREFIX |
| Constructor Summary | |
|---|---|
StructTagSummaryfields()
|
|
| Method Summary | |
|---|---|
protected int |
countQuotes(java.lang.String text)
Return the number of quotes in the given text |
static boolean |
exists(com.sun.javadoc.ClassDoc fd)
Returns true if the given field contains this tag, false otherwise. |
java.lang.String[] |
getFieldNames()
accessor for fieldNames |
java.lang.String |
getName()
Return our tag name |
static StructTagSummaryfields |
getStructTagSummaryfields(com.sun.javadoc.ClassDoc cd)
Factory method for retrieving a new instance given a ClassDoc. |
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 |
setFieldNames(java.lang.String[] names)
mutator for fieldNames |
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.AbstractSandClassTag |
|---|
inType |
| Methods inherited from class org.sandev.generator.tags.AbstractSandBaseTag |
|---|
inConstructor, inField, inMethod, inOverview, inPackage, 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[] fieldNames
public static final java.lang.String TAGNAME
| Constructor Detail |
|---|
public StructTagSummaryfields()
| Method Detail |
|---|
public java.lang.String[] getFieldNames()
public void setFieldNames(java.lang.String[] names)
public void init(com.sun.javadoc.Tag tag)
protected int countQuotes(java.lang.String text)
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 StructTagSummaryfields getStructTagSummaryfields(com.sun.javadoc.ClassDoc cd)
public static boolean exists(com.sun.javadoc.ClassDoc fd)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||