|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| 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.RuleSetModel
public class RuleSetModel
A model representing a set of rules. This will have RuleModel children.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.bea.p13n.model.Model |
|---|
Model.ChangeEvent, Model.ChangeListener, Model.ChangeSupport, Model.Debug |
| Field Summary |
|---|
| 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 | |
|---|---|
RuleSetModel()Empty constructor. |
|
RuleSetModel(com.bea.p13n.rules.schema.RuleSetDocument.RuleSet rs)Constructor from a RuleSet xml object, which should not be null. |
|
| Method Summary | |
|---|---|
RuleModel |
addCopyRuleModel(RuleModel rm)Add a copy fo the specified rule to this rule model. |
void |
addRuleModel(RuleModel model)Add a new rule to this rule set. |
protected boolean |
childAdded(Model child)Override to start listening to changes to child rule names. |
protected boolean |
childRemoved(Model child)Override to stop listening to changes to child rule names. |
void |
clearCachedData()Subclasses need to override this to clear out any cached data. |
Model |
copy()Make a new Model of the same type as this, initialized with the same underlying data, but otherwise unassociated to this one. |
org.apache.xmlbeans.XmlObject |
createNewXmlObject()Create a new, empty rule-set xml object. |
protected boolean |
determineIsComplete()Is this rule-set complete? A rule-set is complete if: All RuleModel children are complete All RuleModel children have unique names |
static String |
findUniqueRuleName(Model container, RuleModel model)Find a unique rule name amongst the container's RuleModels for the specified RuleModel (using its name as the basis). |
String |
getDescription()Get the rule set description. |
void |
initializeNew()Initialize this a new, empty ruleset on this model. |
boolean |
removeRuleModel(int index)Remove the specified rule. |
boolean |
removeRuleModel(RuleModel rm)Remove the specified rule. |
void |
setDescription(String newDesc)Set the rule set description. |
void |
setIsComplete(boolean isComplete)Override to set on our ruleset object also. |
void |
setXmlObject(org.apache.xmlbeans.XmlObject object)Set the root xml object for this, which should be a RuleSet. |
| Methods inherited from class com.bea.p13n.model.XmlObjectModel |
|---|
checkElement, fixQName, getApplicationInstanceUri, getChild, getCopyXmlObject, getDocument, getLocalName, getParent, getQName, getRootXmlObject, isComplete, isNil, preRemove, propertyChanged, removeAllChildren, removeChild, setApplicationInstanceUri, 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, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RuleSetModel()
setXmlObject(XmlObject) or initializeNew() to initialize the model with a RuleSet.public RuleSetModel(com.bea.p13n.rules.schema.RuleSetDocument.RuleSet rs)
| Method Detail |
|---|
protected boolean childAdded(Model child)
childAdded in class XmlObjectModelchild - the child that was added.XmlObjectModel.setIsComplete(boolean)protected boolean childRemoved(Model child)
childRemoved in class XmlObjectModelchild - the child that was removed.XmlObjectModel.setIsComplete(boolean)
public void setXmlObject(org.apache.xmlbeans.XmlObject object)
throws IllegalArgumentException
IllegalArgumentException - thrown on an invalid object.public void clearCachedData()
XmlObjectModelchanges.clearCachedData in class XmlObjectModelpublic Model copy()
Modelcopy in class Modelpublic org.apache.xmlbeans.XmlObject createNewXmlObject()
public void initializeNew()
public String getDescription()
public void setDescription(String newDesc)
newDesc - the new description, or null to unset.public void addRuleModel(RuleModel model)
public static String findUniqueRuleName(Model container,
RuleModel model)
container - the containing model (whose children should be RuleModels).model - the model to base the unique name upon.public RuleModel addCopyRuleModel(RuleModel rm)
public boolean removeRuleModel(RuleModel rm)
rm - the rule model.public boolean removeRuleModel(int index)
index - the index of rule model in our children.public void setIsComplete(boolean isComplete)
ruleset object also.setIsComplete in class XmlObjectModelprotected boolean determineIsComplete()
determineIsComplete in class XmlObjectModel
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||