|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.service.request.CommandBuilder
@Entity public class CommandBuilder
used to build Commands.
Is used to build new Commands from an existing Command
(usually the current Command). CommandBuilders can be created
from XML definitions similar to CommandMatcher or CommandMatchers definitions.
mixIn(Command), Serialized Form| Constructor Summary | |
|---|---|
protected |
CommandBuilder()
Deprecated. |
|
CommandBuilder(CommandMatcher matcher)
builds a CommandBuilder from a given CommandMatcher. |
|
CommandBuilder(org.jdom.Element command,
java.lang.String b)
builds the CommandBuilder defined in the mapping XML. |
| Method Summary | |
|---|---|
CommandBuilder |
createCopy()
returns a clone of the CommandBuilder. |
org.jdom.Element |
deserializeToJDOM()
this will deserialize the state of the JDOMable as a JDOM
Element. |
java.lang.String |
getAction()
|
Bundle |
getBundle()
|
java.lang.String |
getBundleName()
|
java.util.Locale |
getLocale()
|
java.util.Set<Parameter> |
getParameters()
returns the Parameters of the CommandBuilder. |
java.lang.Long |
getSitemapNodeId()
|
Command |
mixIn(Command templateCommand)
creates a mixture of the given template Command and the CommandMatcher, in terms of adding all specified information of the
CommandMatcher to the given template Command. |
void |
removeParameter(Parameter parameter)
removes a Parameter from the CommandBuilder. |
void |
setAction(java.lang.String a)
|
void |
setBundle(Bundle b)
|
void |
setLocale(java.util.Locale l)
|
void |
setParameters(java.util.Set<Parameter> newParameters)
sets the Parameters of the CommandBuilder. |
void |
setSitemapNodeId(java.lang.Long i)
|
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated protected CommandBuilder()
public CommandBuilder(org.jdom.Element command,
java.lang.String b)
CommandBuilder defined in the mapping XML.
sample mapping XML snippet:
<command action="actionname" locale="de_DE">
<parameter name="param1">
<value>value1.1</value>
<value>value1.2</value>
</parameter>
<parameter name="param2"/>
<parameter name="param3">
<value>value3</value>
</parameter>
</command>
The above sample is full blown. The following example shows the minimal
mapping:
<command action="actionname"/>
command - the command XMLb - the Bundlepublic CommandBuilder(CommandMatcher matcher)
CommandBuilder from a given CommandMatcher.
matcher - the template CommandMatcher| Method Detail |
|---|
public final java.lang.String getAction()
public final void setAction(java.lang.String a)
a - The action to set.public final Bundle getBundle()
public final void setBundle(Bundle b)
b - The bundle to set.public final java.util.Locale getLocale()
public final void setLocale(java.util.Locale l)
l - The locale to set.public final java.lang.Long getSitemapNodeId()
public final void setSitemapNodeId(java.lang.Long i)
i - The sitemapNodeId to set.public final Command mixIn(Command templateCommand)
Command and the CommandMatcher, in terms of adding all specified information of the
CommandMatcher to the given template Command.
templateCommand - the template Command
public final java.util.Set<Parameter> getParameters()
Parameters of the CommandBuilder.
Parameters of the CommandBuilderpublic final void removeParameter(Parameter parameter)
Parameter from the CommandBuilder.
parameter - the Parameter to be removedpublic final void setParameters(java.util.Set<Parameter> newParameters)
Parameters of the CommandBuilder.
newParameters - the new Parameters for the CommandBuilderpublic final CommandBuilder createCopy()
CommandBuilder.
CommandBuilderpublic final org.jdom.Element deserializeToJDOM()
JDOMableJDOMable as a JDOM
Element.
deserializeToJDOM in interface JDOMableJDOMable.deserializeToJDOM()public final java.lang.String getBundleName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||