BEA Systems, Inc.

com.beasys.commerce.axiom.reasoning.rules.jrules
Interface JRulesLanguageElement

All Known Implementing Classes:
JRulesArgumentsElement, JRulesBinaryOpElement, JRulesCastElement, JRulesMethodElement, JRulesNaryOpElement, JRulesNewElement, JRulesRuleElement, JRulesRulesetElement, JRulesSimpleConditionElement, JRulesThenElement, JRulesUnaryOpElement, JRulesWhenElement, JRulesVariableElement, JRulesAssertElement, JRulesConstantElement

public interface JRulesLanguageElement

Specifies common behavior for a JRules language element


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
 

Method Detail

addChildElement

public void addChildElement(JRulesLanguageElement childElement)
                     throws java.lang.IllegalArgumentException,
                            ServiceProviderException
Adds a child element
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
Throws:
ServiceProviderException - Thrown if unable to end

getBoundObject

public java.lang.Object getBoundObject(java.lang.String objectName)
Gets a bound object
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
Returns:
The element name

getRootElement

public boolean getRootElement()
Gets root element property
Returns:
True if root element, false otherwise

release

public void release()
Releases any resources or object references held by the language element

start

public void start(org.xml.sax.AttributeList attributeList,
                  JRulesLanguageElement parentElement)
           throws java.lang.IllegalArgumentException,
                  ServiceProviderException
Starts the element
Parameters:
attributeList - The list of attributes for the element
parentElement - The parent element
Throws:
java.lang.IllegalArgumentException - Thrown if attribute list is null, and possibly if parentElement is null, depending upon the actual element.
ServiceProviderException - Thrown if unable to start

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved