|
|||||||||
| 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.FieldTagRef
public class FieldTagRef
Handle @sand.ref declarations.
Declares this field value uniquely identifies another struct
instance. This tag may be used with either long or
String field types but with different semantics:
long or long[]
field type, the reference value is assumed to be the unique
identifier of a persistent struct message instance. In this
case the referenceKey is the fully qualified class name of
the persistent struct being referenced. For example: @sand.ref org.sandev.TaskHeap.structs.ResourceStruct
String or String[]
field type, the reference value is assumed to be a unique name
or other field identifying another struct. In this case the
referenceKey is the fully qualified class name of the struct
field in the reference. For example: @sand.ref org.sandev.ui.structs.ScreenStruct.name
A long reference must be a positive integer. Any value below
Persister.
TEMPIDTHRESHOLD is understood to be a reference to an instance
which has not yet been added to persistent storage. Temporary values
are remapped by the DataManager when processing an AggregateUpdate.
For a long reference a value of zero is understood to be null. Negative
values are all invalid, with -1 used as the standard invalid value
indicator. Unless explicitely specified, the default value is zero.
In both cases standard array semantics apply: an array of references
can be empty but not null.
parameters:
| Field Summary | |
|---|---|
protected boolean |
array
True if this field is an array, false otherwise. |
protected java.lang.String |
comment
Any comment text that was specified for this tag declaration |
static java.lang.String |
CORENAME
The core name of this tag. |
protected java.lang.String |
fieldName
The name of the field which had this ref associated with it. |
protected java.lang.String |
fieldType
The type of the field which had this ref associated with it. |
protected java.lang.String |
refKey
The reference key |
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 | |
|---|---|
FieldTagRef()
|
|
| Method Summary | |
|---|---|
static boolean |
exists(com.sun.javadoc.FieldDoc fd)
Returns true if the given field contains this tag, false otherwise. |
java.lang.String |
getComment()
accessor for comment |
java.lang.String |
getFieldName()
accessor for fieldName |
static FieldTagRef |
getFieldTagRef(com.sun.javadoc.FieldDoc fd)
Factory method for retrieving a new instance given a FieldDoc. |
java.lang.String |
getFieldType()
accessor for fieldType |
java.lang.String |
getName()
Return our tag name |
java.lang.String |
getRefFieldName()
Return the name of the field in the referenced object which is used as a key reference. |
java.lang.String |
getRefKey()
accessor for refKey |
java.lang.String |
getRefLongMessageClassName()
Return the fully qualified class name of the referenced message. |
java.lang.String |
getRefShortMessageClassName()
Return the short class name of the referenced message. |
void |
init(com.sun.javadoc.Tag tag)
Initialize this instance from the tag information. |
boolean |
isArray()
accessor for array |
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 |
setArray(boolean val)
mutator for array |
void |
setComment(java.lang.String text)
mutator for comment |
void |
setFieldName(java.lang.String val)
mutator for fieldName |
void |
setFieldType(java.lang.String val)
mutator for fieldType |
void |
setRefKey(java.lang.String val)
mutator for refKey |
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 refKey
protected java.lang.String comment
protected java.lang.String fieldName
protected java.lang.String fieldType
protected boolean array
public static final java.lang.String TAGNAME
| Constructor Detail |
|---|
public FieldTagRef()
| Method Detail |
|---|
public java.lang.String getRefKey()
public void setRefKey(java.lang.String val)
public java.lang.String getComment()
public void setComment(java.lang.String text)
public java.lang.String getFieldName()
public void setFieldName(java.lang.String val)
public java.lang.String getFieldType()
public void setFieldType(java.lang.String val)
public boolean isArray()
public void setArray(boolean val)
public void init(com.sun.javadoc.Tag tag)
public java.lang.String getRefShortMessageClassName()
public java.lang.String getRefLongMessageClassName()
public java.lang.String getRefFieldName()
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 FieldTagRef getFieldTagRef(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 | ||||||||