BEA Systems, Inc.

com.beasys.commerce.axiom.reasoning.rules.jrules
Class JRulesNaryOpElement

java.lang.Object
  |
  +--com.beasys.commerce.axiom.reasoning.rules.jrules.JRulesNaryOpElement

public class JRulesNaryOpElement
extends java.lang.Object
implements JRulesLanguageElement

Implements a JRules naryOp language element


Field Summary
static java.lang.String AND
          The "and" value of the name attribute
static java.lang.String NAME
          The name for this element
static java.lang.String NAME_ATTRIBUTE
          The name of the name attribute
static java.lang.String OR
          The "or" value of the name attribute
 
Constructor Summary
JRulesNaryOpElement()
           
 
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

AND

public static final java.lang.String AND
The "and" value of the name attribute

NAME

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

NAME_ATTRIBUTE

public static final java.lang.String NAME_ATTRIBUTE
The name of the name attribute

OR

public static final java.lang.String OR
The "or" value of the name attribute
Constructor Detail

JRulesNaryOpElement

public JRulesNaryOpElement()
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 attribute list 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