BEA Systems, Inc.

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

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

public class JRulesRulesetBuilder
extends java.lang.Object
implements RulesetBuilder

Implements a JRules ruleset builder


Field Summary
static int ARGUMENTS_ELEMENT_STACK_CAPACITY
          The capacities of various element stacks
static int ASSERT_ELEMENT_STACK_CAPACITY
           
static int BINARY_OP_ELEMENT_STACK_CAPACITY
           
static int CAST_ELEMENT_STACK_CAPACITY
           
static int CONSTANT_ELEMENT_STACK_CAPACITY
           
static int METHOD_ELEMENT_STACK_CAPACITY
           
static int NARY_OP_ELEMENT_STACK_CAPACITY
           
static int NEW_ELEMENT_STACK_CAPACITY
           
static int NUMBER_OF_ELEMENT_STACKS
          The number of element stacks
static int PARSE_STACK_CAPACITY
          The capacity of the parse stack
static int RULE_ELEMENT_STACK_CAPACITY
           
static int SIMPLE_CONDITION_ELEMENT_STACK_CAPACITY
           
static int THEN_ELEMENT_STACK_CAPACITY
           
static int UNARY_OP_ELEMENT_STACK_CAPACITY
           
static int VARIABLE_ELEMENT_STACK_CAPACITY
           
static int WHEN_ELEMENT_STACK_CAPACITY
           
 
Constructor Summary
JRulesRulesetBuilder(JRulesServiceProvider serviceProvider)
          Constructor
 
Method Summary
 void characters(char[] ch, int start, int length)
          Receive notification of character data.
 void endDocument()
          Receive notification of the end of a document.
 void endElement(java.lang.String name)
          Receive notification of the end of an element.
 void ignorableWhitespace(char[] ch, int start, int length)
          Receive notification of ignorable whitespace in element content.
 void processingInstruction(java.lang.String target, java.lang.String data)
          Receive notification of a processing instruction.
 void release()
          Releases all resources held by the ruleset builder
 void setDocumentLocator(org.xml.sax.Locator locator)
          Receive an object for locating the origin of SAX document events.
 void setRulesetURI(java.lang.String rulesetURI)
          Sets the ruleset uri
 void startDocument()
          Receive notification of the beginning of a document.
 void startElement(java.lang.String name, org.xml.sax.AttributeList attributeList)
          Receive notification of the beginning of an element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARGUMENTS_ELEMENT_STACK_CAPACITY

public static final int ARGUMENTS_ELEMENT_STACK_CAPACITY
The capacities of various element stacks

ASSERT_ELEMENT_STACK_CAPACITY

public static final int ASSERT_ELEMENT_STACK_CAPACITY

BINARY_OP_ELEMENT_STACK_CAPACITY

public static final int BINARY_OP_ELEMENT_STACK_CAPACITY

CAST_ELEMENT_STACK_CAPACITY

public static final int CAST_ELEMENT_STACK_CAPACITY

CONSTANT_ELEMENT_STACK_CAPACITY

public static final int CONSTANT_ELEMENT_STACK_CAPACITY

METHOD_ELEMENT_STACK_CAPACITY

public static final int METHOD_ELEMENT_STACK_CAPACITY

NARY_OP_ELEMENT_STACK_CAPACITY

public static final int NARY_OP_ELEMENT_STACK_CAPACITY

NEW_ELEMENT_STACK_CAPACITY

public static final int NEW_ELEMENT_STACK_CAPACITY

RULE_ELEMENT_STACK_CAPACITY

public static final int RULE_ELEMENT_STACK_CAPACITY

SIMPLE_CONDITION_ELEMENT_STACK_CAPACITY

public static final int SIMPLE_CONDITION_ELEMENT_STACK_CAPACITY

THEN_ELEMENT_STACK_CAPACITY

public static final int THEN_ELEMENT_STACK_CAPACITY

UNARY_OP_ELEMENT_STACK_CAPACITY

public static final int UNARY_OP_ELEMENT_STACK_CAPACITY

VARIABLE_ELEMENT_STACK_CAPACITY

public static final int VARIABLE_ELEMENT_STACK_CAPACITY

WHEN_ELEMENT_STACK_CAPACITY

public static final int WHEN_ELEMENT_STACK_CAPACITY

NUMBER_OF_ELEMENT_STACKS

public static final int NUMBER_OF_ELEMENT_STACKS
The number of element stacks

PARSE_STACK_CAPACITY

public static final int PARSE_STACK_CAPACITY
The capacity of the parse stack
Constructor Detail

JRulesRulesetBuilder

public JRulesRulesetBuilder(JRulesServiceProvider serviceProvider)
                     throws java.lang.IllegalArgumentException
Constructor
Parameters:
serviceProvider - The service provider for the ruleset builder
Throws:
java.lang.IllegalArgumentException - Thrown if serviceProvider is null
Method Detail

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Receive notification of character data.
Parameters:
ch - The characters from the XML document.
start - The start position in the array.
length - The number of characters to read from the array.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Receive notification of the end of a document.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

endElement

public void endElement(java.lang.String name)
                throws org.xml.sax.SAXException
Receive notification of the end of an element.
Parameters:
name - The element type name
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
                         throws org.xml.sax.SAXException
Receive notification of ignorable whitespace in element content.
Parameters:
ch - The characters from the XML document.
start - The start position in the array.
length - The number of characters to read from the array.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
                           throws org.xml.sax.SAXException
Receive notification of a processing instruction.
Parameters:
target - The processing instruction target.
data - The processing instruction data, or null if none was supplied.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

release

public void release()
Releases all resources held by the ruleset builder
Specified by:
release in interface RulesetBuilder

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator locator)
                        throws java.lang.IllegalArgumentException
Receive an object for locating the origin of SAX document events.
Parameters:
locator - An object that can return the location of any SAX document event.
Throws:
java.lang.IllegalArgumentException - Thrown if locator is null

setRulesetURI

public void setRulesetURI(java.lang.String rulesetURI)
                   throws java.lang.IllegalArgumentException,
                          ServiceProviderException
Sets the ruleset uri
Specified by:
setRulesetURI in interface RulesetBuilder
Parameters:
rulesetURI - The ruleset uri
Throws:
java.lang.IllegalArgumentException - Thrown if rulesetURI is null or zero-length
ServiceProviderException - Thrown if rulesetURI is already in use

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Receive notification of the beginning of a document.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

startElement

public void startElement(java.lang.String name,
                         org.xml.sax.AttributeList attributeList)
                  throws org.xml.sax.SAXException
Receive notification of the beginning of an element.
Parameters:
name - The element type name.
atts - The attributes attached to the element, if any.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved