|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.p13n.model.Model com.bea.p13n.model.XmlObjectModel com.bea.p13n.rules.model.ClauseModel com.bea.p13n.rules.model.BranchModel
public class BranchModel
A clause model to represent if the randomNumber is within a range.
Nested Class Summary | |
---|---|
static class |
BranchModel.Recognizer
An object which can recognize BranchModel's from xml structure. |
Nested classes/interfaces inherited from class com.bea.p13n.model.Model |
---|
Model.ChangeEvent, Model.ChangeListener, Model.ChangeSupport, Model.Debug |
Field Summary | |
---|---|
static String |
CLAUSE_TYPE
The standard clause type for this kind of model. |
static long |
MAX_VALUE
The maximum valid value. |
static long |
MIN_VALUE
The minimum valid value. |
Fields inherited from class com.bea.p13n.rules.model.ClauseModel |
---|
clauseType |
Fields inherited from class com.bea.p13n.model.XmlObjectModel |
---|
copyRootXmlObject, instanceUri, isComplete |
Fields inherited from class com.bea.p13n.model.Model |
---|
childrenModels, docModel, parentModel, roChildrenModels |
Constructor Summary | |
---|---|
BranchModel()
|
Method Summary | |
---|---|
void |
clearCachedData()
Clear any cached data. |
org.apache.xmlbeans.XmlObject |
createNewXmlObject(String clauseType)
Create a new branch model xml structure. |
protected boolean |
determineIsComplete()
This is complete is both top and bottom are valid numbers. |
Number |
getBottom()
Get the bottom number of the range. |
protected Number |
getNumber(int index)
|
Number |
getTop()
Get the top number of the range. |
static boolean |
isValidNumber(Number n)
Tell if the specified number if valid. |
void |
setBottom(Number n)
Set the bottom value of the range. |
protected boolean |
setNumber(int index,
Number n)
|
void |
setTop(Number n)
Set the top value of the range. |
void |
setXmlObject(String clauseType,
org.apache.xmlbeans.XmlObject clause)
Set the root xml object for this model. |
Methods inherited from class com.bea.p13n.rules.model.ClauseModel |
---|
addBranch, addLiteral, addMethod, addMethodOrOperator, addOperator, addVariable, addVariableBinding, copy, getClauseType, getContainingRuleModel, getCopyXmlObject, initializeNew, isInActions, isInConditions, isValidTypeAlias, isValidVariableName, makeSafeCopy, toString |
Methods inherited from class com.bea.p13n.model.XmlObjectModel |
---|
checkElement, childAdded, childRemoved, fixQName, getApplicationInstanceUri, getChild, getDocument, getLocalName, getParent, getQName, getRootXmlObject, isComplete, isNil, preRemove, propertyChanged, removeAllChildren, removeChild, setApplicationInstanceUri, setIsComplete, setIsComplete, setParent, setRootXmlObject |
Methods inherited from class com.bea.p13n.model.Model |
---|
addChangeListener, addChild, addChild, clone, doubleEquals, equals, getChildren, getDebug, getDebug, getDocument, getParent, longEquals, removeChangeListener, removeChild, removeChild, removeEmpties, setDocument |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String CLAUSE_TYPE
public static final long MIN_VALUE
public static final long MAX_VALUE
Constructor Detail |
---|
public BranchModel()
Method Detail |
---|
public void setXmlObject(String clauseType, org.apache.xmlbeans.XmlObject clause) throws IllegalArgumentException
setXmlObject
in class ClauseModel
clauseType
- the clause type of the clause.clause
- the root xml object of the clause.
IllegalArgumentException
- if clause is not of the right
structure.public org.apache.xmlbeans.XmlObject createNewXmlObject(String clauseType) throws IllegalArgumentException
createNewXmlObject
in class ClauseModel
clauseType
- the clause type of the clause.
IllegalArgumentException
- thrown on an unsupproted clauseType.public void clearCachedData()
clearCachedData
in class XmlObjectModel
public Number getBottom()
public Number getTop()
protected Number getNumber(int index)
public void setBottom(Number n)
public void setTop(Number n)
protected boolean setNumber(int index, Number n)
public static boolean isValidNumber(Number n)
protected boolean determineIsComplete()
determineIsComplete
in class XmlObjectModel
isValidNumber(java.lang.Number)
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |