BEA Systems, Inc.

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

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

public class JRulesConstantElement
extends java.lang.Object
implements JRulesLanguageElement

Implements a JRules constant language element


Field Summary
static java.lang.String BOOLEAN
          The value of the type attribute for boolean constants
static java.lang.String DOUBLE
          The value of the type attribute for double constants
static java.lang.String FALSE
          The attribute value for 'false'
static java.lang.String LONG
          The value of the type attribute for long constants
static java.lang.String NAME
          The name for this element
static java.lang.String NULL
          The value of the type attribute for null constants
static java.lang.String STRING
          The value of the type attribute for string constants
static java.lang.String TRUE
          The attribute value for 'true'
static java.lang.String TYPE_ATTRIBUTE
          The name of the type attribute
static java.lang.String VALUE_ATTRIBUTE
          The name of the value attribute
 
Constructor Summary
JRulesConstantElement()
           
 
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

BOOLEAN

public static final java.lang.String BOOLEAN
The value of the type attribute for boolean constants

DOUBLE

public static final java.lang.String DOUBLE
The value of the type attribute for double constants

NAME

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

FALSE

public static final java.lang.String FALSE
The attribute value for 'false'

LONG

public static final java.lang.String LONG
The value of the type attribute for long constants

NULL

public static final java.lang.String NULL
The value of the type attribute for null constants

STRING

public static final java.lang.String STRING
The value of the type attribute for string constants

TRUE

public static final java.lang.String TRUE
The attribute value for 'true'

TYPE_ATTRIBUTE

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

VALUE_ATTRIBUTE

public static final java.lang.String VALUE_ATTRIBUTE
The name of the value attribute
Constructor Detail

JRulesConstantElement

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