BEA Systems, Inc.

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
 
Constructor Summary
JRulesWhenElement()
           
 
Method Summary
 void addChildElement(JRulesLanguageElement childElement)
          Adds a child element
 void end()
          Ends the element
 java.lang.Object getBoundObject(java.lang.String objectName)
          Gets a bound object
 java.lang.String getName()
          Gets the element name
 boolean getRootElement()
          Gets root element property
 void release()
          Releases any resources or object references held by the language element
 void start(org.xml.sax.AttributeList attributeList, JRulesLanguageElement parentElement)
          Starts the element
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
The name for this element
Constructor Detail

JRulesWhenElement

public JRulesWhenElement()
Method Detail

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 element
parentElement - The parent element
Throws:
java.lang.IllegalArgumentException - Thrown if attributeList is null, or if parentElement is null
ServiceProviderException - Thrown if unable to start

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved