|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
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.MethodCallModel com.bea.p13n.rules.model.NamedMethodCallModel com.bea.p13n.rules.model.StaticMethodModel
public class StaticMethodModel
A rule clause representing an invokation of a static method on an arbitrary java class. This can only be used as a rule action currently. A static-method requires a type-alias, which is the java class which contains the static method which will be executed. The arguments of a static method call can be:
Nested Class Summary | |
---|---|
static class |
StaticMethodModel.Recognizer
An object which can recognize the structure for this model. |
Nested classes/interfaces inherited from class com.bea.p13n.rules.model.MethodCallModel |
---|
MethodCallModel.PropertyRefArgument, MethodCallModel.UnknownArgument, MethodCallModel.VariableArgument |
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 clause type for this. |
Fields inherited from class com.bea.p13n.rules.model.MethodCallModel |
---|
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 | |
---|---|
StaticMethodModel()
|
Method Summary | |
---|---|
void |
clearCachedData()
Clear any cached data. |
org.apache.xmlbeans.XmlObject |
createNewXmlObject(String clauseType)
Create a new, empty root object for the specified clauseType. |
protected boolean |
determineIsComplete()
Override to include a check to make sure the type-alias is valid. |
protected com.bea.p13n.expression.schema.MethodArgumentList |
getMethodArgumentListFromXmlObject(boolean create)
Get the MethodArgumentList from the underlying method call XmlObject |
protected String |
getMethodNameFromXmlObject()
Get the method name from the underlying method call XmlObject. |
protected com.bea.p13n.expression.schema.StaticMethod |
getStaticMethod()
Get the underlying StaticMethod XmlObject. |
String |
getTypeAlias()
Get the fully-qualified java class name the method belongs to. |
protected void |
removeMethodArgumentListFromXmlObject()
Remove the MethodArgumentList from the underlying XmlObject. |
protected void |
setMethodNameToXmlObject(String methodName)
Set the method name to the underlying method call XmlObject. |
void |
setTypeAlias(String typeAlias)
Set the fully-qualified java class name the method belongs to. |
void |
setXmlObject(String clauseType,
org.apache.xmlbeans.XmlObject clause)
Initialize this clause model with a type and a root object. |
Methods inherited from class com.bea.p13n.rules.model.NamedMethodCallModel |
---|
getMethodName, isValidMethodName, setMethodName |
Methods inherited from class com.bea.p13n.rules.model.MethodCallModel |
---|
convertArgToXmlObject, convertXmlObjectArg, determineArgumentIsComplete, findPropertySetType, getMethodArguments, getMethodArgumentsNoCache, setMethodArguments, setParent, unsupportedObjectArg, unsupportedXmlObjectArg |
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, 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
Constructor Detail |
---|
public StaticMethodModel()
Method Detail |
---|
public void setXmlObject(String clauseType, org.apache.xmlbeans.XmlObject clause) throws IllegalArgumentException
ClauseModel
This will fire ChangeEvents
for clauseType and rootXmlObject.
Subclasses should override to call super.setXmlObject() and do any type checking and verification.
It is not expected that ClauseModels are valid after a call to this method which throws an exception, although the caller could recall this method with valid data.
setXmlObject
in class ClauseModel
clauseType
- the clause type of the clause.clause
- the root xml object of the clause.
IllegalArgumentException
- thrown if the clause is not valid for
the ClauseModel or clauseType.public org.apache.xmlbeans.XmlObject createNewXmlObject(String clauseType) throws IllegalArgumentException
ClauseModel
Subclasses need to implement this to create an appropriately typed
and filled root XmlObject which represents the ClauseModel. The return
value from this needs to be accepted from ClauseModel.setXmlObject(java.lang.String, org.apache.xmlbeans.XmlObject)
for the
specified clauseType.
createNewXmlObject
in class ClauseModel
clauseType
- the clause type of the clause.
IllegalArgumentException
- thrown on an unsupproted clauseType.public void clearCachedData()
NamedMethodCallModel
clearCachedData
in class NamedMethodCallModel
protected boolean determineIsComplete()
determineIsComplete
in class NamedMethodCallModel
ClauseModel.isValidTypeAlias(String)
protected com.bea.p13n.expression.schema.StaticMethod getStaticMethod()
public String getTypeAlias()
public void setTypeAlias(String typeAlias)
protected com.bea.p13n.expression.schema.MethodArgumentList getMethodArgumentListFromXmlObject(boolean create)
MethodCallModel
getMethodArgumentListFromXmlObject
in class MethodCallModel
create
- true to create if not currently set, false to return null
if currently set.
protected String getMethodNameFromXmlObject()
NamedMethodCallModel
getMethodNameFromXmlObject
in class NamedMethodCallModel
protected void removeMethodArgumentListFromXmlObject()
MethodCallModel
removeMethodArgumentListFromXmlObject
in class MethodCallModel
protected void setMethodNameToXmlObject(String methodName)
NamedMethodCallModel
setMethodNameToXmlObject
in class NamedMethodCallModel
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |