wt.dataops.objectcol.resolution
Class DefaultMethodProcessor

java.lang.Object
  extended bywt.dataops.objectcol.resolution.AbsResolutionProcessor
      extended bywt.dataops.objectcol.resolution.DefaultMethodProcessor
All Implemented Interfaces:
Externalizable, MethodProcessor, ResolutionProcessor, Serializable
Direct Known Subclasses:
RelatedByMethodProcessor

public class DefaultMethodProcessor
extends AbsResolutionProcessor
implements MethodProcessor, Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  Object base
           
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
private  String methodName
           
protected static long OLD_FORMAT_VERSION_UID
           
private  MethodParameter[] params
           
private  boolean recursive
           
private static String RESOURCE
           
private  Class returnType
           
(package private) static long serialVersionUID
           
 
Fields inherited from class wt.dataops.objectcol.resolution.AbsResolutionProcessor
 
Constructor Summary
DefaultMethodProcessor()
           
 
Method Summary
protected  Object[] createValues(WTCollection seeds, Map inputMap, WTCollection output)
           
 Object execute(WTCollection seeds, Map inputs, WTCollection output)
          

Supported API: false
 Object getBase()
          Gets the value of the attribute: base.
 String getMethodName()
          Gets the value of the attribute: methodName.
 MethodParameter[] getParams()
          Gets the value of the attribute: params.
protected  Class[] getParamTypes()
           
 Class getReturnType()
          Gets the value of the attribute: returnType.
 void initialize(Object base, String methodName, MethodParameter[] params, Class returnType, boolean recursive)
          

Supported API: false
 boolean isRecursive()
          Gets the value of the attribute: recursive.
private  void methodNameValidate(String a_MethodName)
           
static DefaultMethodProcessor newDefaultMethodProcessor(Object base, String methodName, MethodParameter[] params, Class returnType, boolean recursive)
          

Supported API: false
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(DefaultMethodProcessor thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setBase(Object a_Base)
          Sets the value of the attribute: base.
 void setMethodName(String a_MethodName)
          Sets the value of the attribute: methodName.
 void setParams(MethodParameter[] a_Params)
          Sets the value of the attribute: params.
 void setRecursive(boolean a_Recursive)
          Sets the value of the attribute: recursive.
 void setReturnType(Class a_ReturnType)
          Sets the value of the attribute: returnType.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.dataops.objectcol.resolution.AbsResolutionProcessor
getInputMap, getInputs, readVersion, setInputMap, setInputs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wt.dataops.objectcol.resolution.ResolutionProcessor
getInputMap, setInputMap
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

base

private Object base

methodName

private String methodName

returnType

private Class returnType

recursive

private boolean recursive

params

private MethodParameter[] params

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values
Constructor Detail

DefaultMethodProcessor

public DefaultMethodProcessor()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class AbsResolutionProcessor
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class AbsResolutionProcessor
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(DefaultMethodProcessor thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getBase

public Object getBase()
Gets the value of the attribute: base.

Supported API: false

Returns:
Object

setBase

public void setBase(Object a_Base)
             throws WTPropertyVetoException
Sets the value of the attribute: base.

Supported API: false

Parameters:
a_Base -
Throws:
WTPropertyVetoException

getMethodName

public String getMethodName()
Gets the value of the attribute: methodName.

Supported API: false

Returns:
String

setMethodName

public void setMethodName(String a_MethodName)
                   throws WTPropertyVetoException
Sets the value of the attribute: methodName.

Supported API: false

Parameters:
a_MethodName -
Throws:
WTPropertyVetoException

methodNameValidate

private void methodNameValidate(String a_MethodName)
                         throws WTPropertyVetoException
Parameters:
a_MethodName -
Throws:
WTPropertyVetoException

getReturnType

public Class getReturnType()
Gets the value of the attribute: returnType.

Supported API: false

Returns:
Class

setReturnType

public void setReturnType(Class a_ReturnType)
                   throws WTPropertyVetoException
Sets the value of the attribute: returnType.

Supported API: false

Parameters:
a_ReturnType -
Throws:
WTPropertyVetoException

isRecursive

public boolean isRecursive()
Gets the value of the attribute: recursive.

Supported API: false

Returns:
boolean

setRecursive

public void setRecursive(boolean a_Recursive)
                  throws WTPropertyVetoException
Sets the value of the attribute: recursive.

Supported API: false

Parameters:
a_Recursive -
Throws:
WTPropertyVetoException

getParams

public MethodParameter[] getParams()
Gets the value of the attribute: params.

Supported API: false

Returns:
MethodParameter[]

setParams

public void setParams(MethodParameter[] a_Params)
               throws WTPropertyVetoException
Sets the value of the attribute: params.

Supported API: false

Parameters:
a_Params -
Throws:
WTPropertyVetoException

initialize

public void initialize(Object base,
                       String methodName,
                       MethodParameter[] params,
                       Class returnType,
                       boolean recursive)
                throws WTException


Supported API: false

Parameters:
base -
methodName -
params -
returnType -
recursive -
Throws:
WTException

newDefaultMethodProcessor

public static DefaultMethodProcessor newDefaultMethodProcessor(Object base,
                                                               String methodName,
                                                               MethodParameter[] params,
                                                               Class returnType,
                                                               boolean recursive)
                                                        throws WTException


Supported API: false

Parameters:
base -
methodName -
params -
returnType -
recursive -
Returns:
DefaultMethodProcessor
Throws:
WTException

execute

public Object execute(WTCollection seeds,
                      Map inputs,
                      WTCollection output)
               throws WTException


Supported API: false

Specified by:
execute in interface MethodProcessor
Parameters:
seeds -
inputs -
output -
Returns:
Object
Throws:
WTException

getParamTypes

protected Class[] getParamTypes()
                         throws WTException
Throws:
WTException

createValues

protected Object[] createValues(WTCollection seeds,
                                Map inputMap,
                                WTCollection output)
                         throws WTException
Throws:
WTException