| 
 | 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.Model
       com.bea.p13n.model.XmlObjectModel
com.bea.p13n.model.XmlObjectModel
           com.bea.p13n.rules.model.ClauseModel
com.bea.p13n.rules.model.ClauseModel
               com.bea.p13n.rules.model.MethodCallModel
com.bea.p13n.rules.model.MethodCallModel
public abstract class MethodCallModel
A base class for all method call models. This supports method arguments of type:
Subclasses can control the supported method argument types by overridding convertArgToXmlObject(Object) and convertXmlObjectArg(XmlObject) to throw IllegalArgumentException as needed.
| Nested Class Summary | |
|---|---|
| static class | MethodCallModel.PropertyRefArgumentRepresents a method call argument which is the value of a property. | 
| static class | MethodCallModel.UnknownArgumentRepresentation of an unrecognized method argument. | 
| static class | MethodCallModel.VariableArgumentRepresents a variable reference method call argument. | 
| Nested classes/interfaces inherited from class com.bea.p13n.model.Model | 
|---|
| Model.ChangeEvent, Model.ChangeListener, Model.ChangeSupport, Model.Debug | 
| Field Summary | |
|---|---|
| static String | LITERAL_NAMESPACE_URIThe expression-literal namespace uri. | 
| 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 | |
|---|---|
| MethodCallModel() | |
| Method Summary | |
|---|---|
|  void | clearCachedData()Clear any cached data. | 
| protected  org.apache.xmlbeans.XmlObject | convertArgToXmlObject(Object arg)Convert a regular object argument to an XmlObject-based argument. | 
| protected  Object | convertXmlObjectArg(org.apache.xmlbeans.XmlObject arg)Convert an XmlObject-based argument to a regular object argument. | 
|  boolean | determineArgumentIsComplete(Object arg)Tell if an argument is not complete. | 
| protected  boolean | determineIsComplete()StaticMethod calls are complete if their methods are all complete. | 
| static PropertyRefModel.PropertySetType | findPropertySetType(String typeAlias)Find the property set type for the type-alias, which is a short-name or a fully-qualified class. | 
| protected abstract  com.bea.p13n.expression.schema.MethodArgumentList | getMethodArgumentListFromXmlObject(boolean create)Get the MethodArgumentList from the underlying method call XmlObject | 
|  Object[] | getMethodArguments()Get the method arguments. | 
| protected  Object[] | getMethodArgumentsNoCache()Get the method arguments from the XmlObject. | 
| protected abstract  void | removeMethodArgumentListFromXmlObject()Remove the MethodArgumentList from the underlying XmlObject. | 
|  void | setMethodArguments(Object... args)Set the method arguments. | 
| protected  void | setParent(Model parent)Override to listen to changes to our RuleModel's conditions, for determining completeness. | 
| protected  IllegalArgumentException | unsupportedObjectArg(Object arg)Return an exception for an unsupported object argument. | 
| protected  IllegalArgumentException | unsupportedXmlObjectArg(org.apache.xmlbeans.XmlObject arg)Return an exception for an unsupported xml object argument. | 
| Methods inherited from class com.bea.p13n.rules.model.ClauseModel | 
|---|
| addBranch, addLiteral, addMethod, addMethodOrOperator, addOperator, addVariable, addVariableBinding, copy, createNewXmlObject, getClauseType, getContainingRuleModel, getCopyXmlObject, initializeNew, isInActions, isInConditions, isValidTypeAlias, isValidVariableName, makeSafeCopy, setXmlObject, 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, 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 LITERAL_NAMESPACE_URI
| Constructor Detail | 
|---|
public MethodCallModel()
| Method Detail | 
|---|
public void clearCachedData()
clearCachedData in class XmlObjectModelprotected void setParent(Model parent)
setParent in class XmlObjectModelprotected boolean determineIsComplete()
determineIsComplete in class XmlObjectModeldetermineArgumentIsComplete(Object)public boolean determineArgumentIsComplete(Object arg)
public Object[] getMethodArguments()
getMethodArgumentsNoCache()protected Object[] getMethodArgumentsNoCache()
getMethodArgumentListFromXmlObject(boolean). Subclasses can override as needed.protected abstract com.bea.p13n.expression.schema.MethodArgumentList getMethodArgumentListFromXmlObject(boolean create)
create - true to create if not currently set, false to return null if currently set.
public void setMethodArguments(Object... args)
                        throws IllegalArgumentException
getMethodArgumentListFromXmlObject(boolean) and removeMethodArgumentListFromXmlObject() as needed.IllegalArgumentException - thrown if one of the arguments is not valid.protected abstract void removeMethodArgumentListFromXmlObject()
protected Object convertXmlObjectArg(org.apache.xmlbeans.XmlObject arg)
                              throws IllegalArgumentException
IllegalArgumentException - thrown on an invalid xml object argument.protected IllegalArgumentException unsupportedXmlObjectArg(org.apache.xmlbeans.XmlObject arg)
convertXmlObjectArg(XmlObject).
protected org.apache.xmlbeans.XmlObject convertArgToXmlObject(Object arg)
                                                       throws IllegalArgumentException
IllegalArgumentException - thrown on an invalid object argument.protected IllegalArgumentException unsupportedObjectArg(Object arg)
convertArgToXmlObject(Object).public static PropertyRefModel.PropertySetType findPropertySetType(String typeAlias)
| 
 | 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 | ||||||||
Copyright © 2010, Oracle. All rights reserved.