org.sandev.generator.tags
Class StructTagVerbforms

java.lang.Object
  extended by org.sandev.generator.tags.AbstractSandBaseTag
      extended by org.sandev.generator.tags.AbstractSandClassTag
          extended by org.sandev.generator.tags.AbstractSandStructTag
              extended by org.sandev.generator.tags.StructTagVerbforms
All Implemented Interfaces:
com.sun.tools.doclets.Taglet

public class StructTagVerbforms
extends AbstractSandStructTag

Handle the @sand.verbforms declaration.

Declares zero or more SandVerbMessage forms which should be generated. You can specify zero or more of the following forms:

Comments are not supported for this tag.

update:

Declares that an SandUpdateMessage verb form should be generated for this class. The update form is used for adding, updating, or deleting a message instance. Among other uses, it can be used to call the DataManager to affect the persistent state. Most persistent messages have an update verb form, with the rare exception of read-only data.


query:

Declares that a SandQueryMessage verb form should be generated for this message. The query form is used for retrieving a collection of message instances matching a given expression. Among other uses, it can be used to retrieve instances from the DataManager. Most persistent messages have a query form, with the rare exception of write-only data.


collection:

Declares that a SandCollectionMessage verb form should be generated for this message. The collection form is returned in response to a query. It can also be independently in non-update contexts with messages that carry their own action context.


history:

Declares that a SandHistoryMessage verb form should be generated for this message. This is only valid for persistent messages, and triggers the creation of two additional message types:

So a standard query, when given a date range for the lastModifiedTime, will return a collection with only the current instances matching that matched the specified timeframe. Each message in the collection will have different uniqueID. A historical query will return a collection with all the revisions of a single message instance in chronological order. All messages in the collection will have the same uniqueID, but different revisionNumbers.

Historical processing is not currently supported in the default version of SAND. If your application requires historical processing contact Structs And Nodes Development Services for additional information.


Field Summary
protected  boolean collection
          Flag for collection
static java.lang.String CORENAME
          The core name of this tag.
protected  boolean history
          Flag for history
protected  boolean query
          Flag for query
static java.lang.String TAGNAME
          Our fixed name, used for hash lookup and text parsing.
protected  boolean update
          Flag for update
 
Fields inherited from class org.sandev.generator.tags.AbstractSandBaseTag
PREFIX
 
Constructor Summary
StructTagVerbforms()
           
 
Method Summary
static boolean exists(com.sun.javadoc.ClassDoc fd)
          Returns true if the given field contains this tag, false otherwise.
 java.lang.String getName()
          Return our tag name
static StructTagVerbforms getStructTagVerbforms(com.sun.javadoc.ClassDoc cd)
          Factory method for retrieving a new instance given a ClassDoc.
 boolean hasCollection()
          accessor for collection
 boolean hasHistory()
          accessor for history
 boolean hasQuery()
          accessor for query
 boolean hasUpdate()
          accessor for update
 void init(com.sun.javadoc.Tag tag)
          Initialize this instance from the tag information.
 boolean isBaseOnly()
          Returns true if there are no verb forms declared.
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 setCollection(boolean val)
          mutator for collection
 void setHistory(boolean val)
          mutator for history
 void setQuery(boolean val)
          mutator for query
 void setUpdate(boolean val)
          mutator for update
 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

CORENAME

public static final java.lang.String CORENAME
The core name of this tag.

See Also:
Constant Field Values

update

protected boolean update
Flag for update


query

protected boolean query
Flag for query


collection

protected boolean collection
Flag for collection


history

protected boolean history
Flag for history


TAGNAME

public static final java.lang.String TAGNAME
Our fixed name, used for hash lookup and text parsing.

See Also:
Constant Field Values
Constructor Detail

StructTagVerbforms

public StructTagVerbforms()
Method Detail

hasUpdate

public boolean hasUpdate()
accessor for update


setUpdate

public void setUpdate(boolean val)
mutator for update


hasQuery

public boolean hasQuery()
accessor for query


setQuery

public void setQuery(boolean val)
mutator for query


hasCollection

public boolean hasCollection()
accessor for collection


setCollection

public void setCollection(boolean val)
mutator for collection


hasHistory

public boolean hasHistory()
accessor for history


setHistory

public void setHistory(boolean val)
mutator for history


init

public void init(com.sun.javadoc.Tag tag)
Initialize this instance from the tag information.


isBaseOnly

public boolean isBaseOnly()
Returns true if there are no verb forms declared.


getName

public java.lang.String getName()
Return our tag name


register

public static void register(java.util.Map tagletMap)
Registers this taglet when triggered by the taglet declaration being loaded in as part of the build.


toString

public java.lang.String toString(com.sun.javadoc.Tag tag)
Return a documentation description of this tag.

Specified by:
toString in interface com.sun.tools.doclets.Taglet
Specified by:
toString in class AbstractSandBaseTag
Parameters:
tag - the Tag representation of this custom tag.

toString

public java.lang.String toString(com.sun.javadoc.Tag[] tags)
Return the documentation text for when several of these tags are present

Specified by:
toString in interface com.sun.tools.doclets.Taglet
Specified by:
toString in class AbstractSandBaseTag
Parameters:
tags - the array of Tags representing of this custom tag.

getStructTagVerbforms

public static StructTagVerbforms getStructTagVerbforms(com.sun.javadoc.ClassDoc cd)
Factory method for retrieving a new instance given a ClassDoc. Returns an initialized instance in all cases.


exists

public static boolean exists(com.sun.javadoc.ClassDoc fd)
Returns true if the given field contains this tag, false otherwise.