com.waveset.object
Class Rule.Argument

java.lang.Object
  extended bycom.waveset.util.AbstractXmlObject
      extended bycom.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.


Field Summary
static java.lang.String ATT_LOCKED
           
static java.lang.String ATT_NAME
           
static java.lang.String ATT_VALUE
           
static java.lang.String EL_COMMENTS
           
static java.lang.String ELEMENT
           
 
Fields inherited from class com.waveset.util.AbstractXmlObject
_trace, code_id
 
Constructor Summary
Rule.Argument()
           
Rule.Argument(org.w3c.dom.Element e)
           
 
Method Summary
 java.lang.String getComments()
           
 java.lang.String getElementName()
          Return the element name.
 com.sun.idm.debugger.common.Location getLocation()
           
 java.lang.String getName()
           
 Rule getRule()
           
 java.lang.Object getValue()
           
 boolean isLocked()
           
 void parseXml(org.w3c.dom.Element e)
           
 void setComments(java.lang.String comments)
           
 void setLocation(com.sun.idm.debugger.common.Location l)
           
 void setLocked(boolean b)
           
 void setName(java.lang.String name)
           
 void setRule(Rule rule)
           
 void setValue(java.lang.Object o)
           
 void toXml(java.lang.StringBuffer b, int indent)
          Serialize into a buffer with optional indentation.
 
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
 

Field Detail

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
Constructor Detail

Rule.Argument

public Rule.Argument()

Rule.Argument

public Rule.Argument(org.w3c.dom.Element e)
              throws WavesetException
Method Detail

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