BEA Systems, Inc.

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

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

public class JRulesBinaryOpElement
extends java.lang.Object
implements JRulesLanguageElement

Implements a JRules binaryOp language element


Field Summary
static java.lang.String EQUAL
          The name of the equal binary operator
static java.lang.String GREATER_THAN
          The name of the greater-than binary operator
static java.lang.String GREATER_THAN_OR_EQUAL
          The name of the greater-than-or-equal binary operator
static java.lang.String LESS_THAN
          The name of the less-than binary operator
static java.lang.String LESS_THAN_OR_EQUAL
          The name of the less-than-or-equal binary operator
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 NOT_EQUAL
          The name of the not-equal binary operator
 
Constructor Summary
JRulesBinaryOpElement()
           
 
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

EQUAL

public static final java.lang.String EQUAL
The name of the equal binary operator

GREATER_THAN

public static final java.lang.String GREATER_THAN
The name of the greater-than binary operator

GREATER_THAN_OR_EQUAL

public static final java.lang.String GREATER_THAN_OR_EQUAL
The name of the greater-than-or-equal binary operator

LESS_THAN

public static final java.lang.String LESS_THAN
The name of the less-than binary operator

LESS_THAN_OR_EQUAL

public static final java.lang.String LESS_THAN_OR_EQUAL
The name of the less-than-or-equal binary operator

NAME_ATTRIBUTE

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

NOT_EQUAL

public static final java.lang.String NOT_EQUAL
The name of the not-equal binary operator
Constructor Detail

JRulesBinaryOpElement

public JRulesBinaryOpElement()
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