com.bea.p13n.rules.model
Class UnrecognizedClauseModel

java.lang.Object
  extended by com.bea.p13n.model.Model
      extended by com.bea.p13n.model.XmlObjectModel
          extended by com.bea.p13n.rules.model.ClauseModel
              extended by com.bea.p13n.rules.model.UnrecognizedClauseModel
All Implemented Interfaces
Serializable, Cloneable

public class UnrecognizedClauseModel
extends ClauseModel

A model representing an unrecognized set of rules/expression xml. These can only be created by setting an XmlObject. initializeNew will always throw an IllegalArgumentException.

See Also
Serialized Form

Nested Class Summary
 
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 clauseType for an UnrecognizedClauseModel
 
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
UnrecognizedClauseModel(org.apache.xmlbeans.XmlObject clause)
          Constructor from the unrecognized xml.
 
Method Summary
 void clearCachedData()
          Clear any cached data this has.
 org.apache.xmlbeans.XmlObject createNewXmlObject(String clauseType)
          Override to always throw an IllegalArgumentException creation.
 void initializeNew(String clauseType)
          Override to always throw an IllegalArgumentException creation.
 void setXmlObject(String clauseType, org.apache.xmlbeans.XmlObject clause)
          Set the xml object this should use.
 
Methods inherited from class com.bea.p13n.rules.model.ClauseModel
addBranch, addLiteral, addMethod, addMethodOrOperator, addOperator, addVariable, addVariableBinding, copy, getClauseType, getContainingRuleModel, getCopyXmlObject, isInActions, isInConditions, isValidTypeAlias, isValidVariableName, makeSafeCopy, toString
 
Methods inherited from class com.bea.p13n.model.XmlObjectModel
checkElement, childAdded, childRemoved, determineIsComplete, 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

CLAUSE_TYPE

public static final String CLAUSE_TYPE
The standard clauseType for an UnrecognizedClauseModel

See Also
Constants Summary
Constructor Detail

UnrecognizedClauseModel

public UnrecognizedClauseModel(org.apache.xmlbeans.XmlObject clause)
Constructor from the unrecognized xml.

Method Detail

setXmlObject

public void setXmlObject(String clauseType,
                         org.apache.xmlbeans.XmlObject clause)
Set the xml object this should use.

Overrides:
setXmlObject in class ClauseModel
Parameters
clauseType - the clause type of the clause.
clause - the root xml object of the clause.

initializeNew

public void initializeNew(String clauseType)
                   throws IllegalArgumentException
Override to always throw an IllegalArgumentException creation.

Overrides:
initializeNew in class ClauseModel
Parameters
clauseType - the clause type of the clause.
Throws
IllegalArgumentException - thrown on an unsupported clauseType.
See Also
ClauseModel.setXmlObject(java.lang.String, org.apache.xmlbeans.XmlObject), ClauseModel.createNewXmlObject(java.lang.String)

createNewXmlObject

public org.apache.xmlbeans.XmlObject createNewXmlObject(String clauseType)
                                                 throws IllegalArgumentException
Override to always throw an IllegalArgumentException creation.

Specified by:
createNewXmlObject in class ClauseModel
Parameters
clauseType - the clause type of the clause.
Returns
a new, empty initialize root object.
Throws
IllegalArgumentException - thrown on an unsupproted clauseType.

clearCachedData

public void clearCachedData()
Clear any cached data this has.

Specified by:
clearCachedData in class XmlObjectModel


Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.