com.waveset.object
Class Rule.Argument
java.lang.Object
com.waveset.util.AbstractXmlObject
com.waveset.object.Rule.Argument
- All Implemented Interfaces:
- com.sun.idm.debugger.common.Locatable, javax.naming.Referenceable, XmlObject
- Enclosing class:
- Rule
- public static class Rule.Argument
- extends AbstractXmlObject
- implements com.sun.idm.debugger.common.Locatable
Class describing a declared rule argument.
I'm going to punt on specifying type for now, since it will
be more than Syntax. The only thing Argument declarations really
do is supply context for the rule editor. No validation
is done at runtime to ensure that argument values are supplied.
UPDATE: Allow these to have values which will serve as
the default value if the environment doesn't supply one.
Handy to customize the behavior of the expression without
editing the expression XML. Need to think more about this,
how can the environment force a null value? Not currently
supported in the evaluation environments.
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
ATT_NAME
public static final java.lang.String ATT_NAME
- See Also:
- Constant Field Values
ATT_VALUE
public static final java.lang.String ATT_VALUE
- See Also:
- Constant Field Values
ATT_LOCKED
public static final java.lang.String ATT_LOCKED
- See Also:
- Constant Field Values
EL_COMMENTS
public static final java.lang.String EL_COMMENTS
- See Also:
- Constant Field Values
Rule.Argument
public Rule.Argument()
Rule.Argument
public Rule.Argument(org.w3c.dom.Element e)
throws WavesetException
setName
public void setName(java.lang.String name)
setComments
public void setComments(java.lang.String comments)
setValue
public void setValue(java.lang.Object o)
getElementName
public java.lang.String getElementName()
- Description copied from class:
AbstractXmlObject
- Return the element name.
- Specified by:
getElementName
in interface XmlObject
- Specified by:
getElementName
in class AbstractXmlObject
getName
public java.lang.String getName()
getValue
public java.lang.Object getValue()
getComments
public java.lang.String getComments()
setLocked
public void setLocked(boolean b)
isLocked
public boolean isLocked()
setLocation
public void setLocation(com.sun.idm.debugger.common.Location l)
- Specified by:
setLocation
in interface com.sun.idm.debugger.common.Locatable
getLocation
public com.sun.idm.debugger.common.Location getLocation()
- Specified by:
getLocation
in interface com.sun.idm.debugger.common.Locatable
getRule
public Rule getRule()
setRule
public void setRule(Rule rule)
parseXml
public void parseXml(org.w3c.dom.Element e)
throws WavesetException
- Throws:
WavesetException
toXml
public void toXml(java.lang.StringBuffer b,
int indent)
- Description copied from class:
AbstractXmlObject
- Serialize into a buffer with optional indentation.
This must be implemented by the subclass.
- Specified by:
toXml
in interface XmlObject
- Specified by:
toXml
in class AbstractXmlObject