com.beasys.commerce.axiom.reasoning.rules.jrules
Class JRulesWhenElement
java.lang.Object
|
+--com.beasys.commerce.axiom.reasoning.rules.jrules.JRulesWhenElement
- public class JRulesWhenElement
- extends java.lang.Object
- implements JRulesLanguageElement
Implements a JRules when language element
Field Summary |
static java.lang.String |
NAME
The name for this element |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NAME
public static final java.lang.String NAME
- The name for this element
JRulesWhenElement
public JRulesWhenElement()
addChildElement
public void addChildElement(JRulesLanguageElement childElement)
throws java.lang.IllegalArgumentException,
ServiceProviderException
- Adds a child element
- Specified by:
- addChildElement in interface JRulesLanguageElement
- Parameters:
childElement
- The child element to be added- Throws:
- java.lang.IllegalArgumentException - Thrown if childElement is null
- ServiceProviderException - Thrown if childElement cannot be added
end
public void end()
throws ServiceProviderException
- Ends the element
- Specified by:
- end in interface JRulesLanguageElement
- Throws:
- ServiceProviderException - Thrown if unable to end
getBoundObject
public java.lang.Object getBoundObject(java.lang.String objectName)
- Gets a bound object
- Specified by:
- getBoundObject in interface JRulesLanguageElement
- Parameters:
objectName
- The name of the object to get, or null if object
is anonymous- Returns:
- The bound object, or null if no bound object exists, or null
if no bound object exists for objectName
getName
public java.lang.String getName()
- Gets the element name
- Specified by:
- getName in interface JRulesLanguageElement
- Returns:
- The element name
getRootElement
public boolean getRootElement()
- Gets root element property
- Specified by:
- getRootElement in interface JRulesLanguageElement
- Returns:
- True if root element, false otherwise
release
public void release()
- Releases any resources or object references held by the language element
- Specified by:
- release in interface JRulesLanguageElement
start
public void start(org.xml.sax.AttributeList attributeList,
JRulesLanguageElement parentElement)
throws java.lang.IllegalArgumentException,
ServiceProviderException
- Starts the element
- Specified by:
- start in interface JRulesLanguageElement
- Parameters:
attributeList
- The list of attributes for the elementparentElement
- The parent element- Throws:
- java.lang.IllegalArgumentException - Thrown if attributeList is null,
or if parentElement is null
- ServiceProviderException - Thrown if unable to start
Copyright © 2000 BEA Systems, Inc. All Rights Reserved