|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.jelly.TagSupport | +--org.drools.tags.rule.RuleTagSupport | +--org.drools.tags.rule.DeclarationTag
Construct a Declaration
for a Rule
.
Declaration
Field Summary |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
DeclarationTag()
Construct. |
Method Summary | |
protected Declaration |
createDeclaration(org.apache.commons.jelly.XMLOutput output)
Create the Declaration . |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
Perform this tag. |
java.lang.String |
getIdentifier()
Retrieve the identifier. |
java.lang.String |
getVar()
Retrieve the variable in which to store the Declaration . |
void |
receiveObjectType(ObjectType objectType)
Receive the ObjectType . |
void |
setIdentifier(java.lang.String identifier)
Set the identifier. |
void |
setObjectType(ObjectType objectType)
Set the ObjectType . |
void |
setVar(java.lang.String var)
Set the variable in which to store the Declaration . |
protected void |
verifyAttributes()
Verify required attributes. |
Methods inherited from class org.drools.tags.rule.RuleTagSupport |
getAvailableDeclarations, getRule, getRuleSet, requiredAttribute |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeclarationTag()
Method Detail |
public void setIdentifier(java.lang.String identifier)
identifier
- The identifier.public java.lang.String getIdentifier()
public void setObjectType(ObjectType objectType)
ObjectType
.
objectType
- The object type.public void setVar(java.lang.String var)
Declaration
.
var
- The variable name.public java.lang.String getVar()
Declaration
.
protected void verifyAttributes() throws org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.MissingAttributeException
- If a required
attribute is not present.protected Declaration createDeclaration(org.apache.commons.jelly.XMLOutput output) throws java.lang.Exception
Declaration
.
output
- The output sink.
java.lang.Exception
- If an error occurs while attempting to
configure the declaration.public void receiveObjectType(ObjectType objectType)
ObjectType
.
receiveObjectType
in interface ObjectTypeReceptor
objectType
- The object type.public void doTag(org.apache.commons.jelly.XMLOutput output) throws java.lang.Exception
doTag
in interface org.apache.commons.jelly.Tag
output
- The output sink.
java.lang.Exception
- If an error occurs while attempting
to perform this tag.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |