junitx.ddtunit.data.processing
Interface IAction

All Known Implementing Classes:
ArrayCreatorAction, AttributeListCreatorAction, BeanCreatorAction, CallCreatorAction, CollectionCreatorAction, ConstantCreatorAction, ContentCreatorAction, DateCreatorAction, MapCreatorAction, SubelementCreatorAction

public interface IAction


Method Summary
 TypedObject createObject()
          Create injected object to according type specification on this action.
 String extractFieldType(String fieldName)
          Extract field type information from object sitting on the stack.
 String getAttribute(String key)
          Retrieve attribute from Action object.
 String getHint()
           
 String getId()
           
 IAction getNext()
           
 TypedObject getObject()
           
 IAction getPrevious()
           
 String getType()
           
 String getTypeFromRoot()
           
 Object getValue()
           
 IAction inject()
          Used to append TypedObjectthat should be processed on this action.
 void insert(IAction action)
          Insert a new Record entry after this.
 IAction process()
          do process required action to transition from this state
 void processNoSuccessor()
          Process action if no successor exists on action stack.
 void processSuccessor(IAction successor)
          Process successor in action stack.
 void promoteLinkChangeListener(IAction action)
           
 void registerLinkChangeListener(ILinkChangeListener listener)
           
 void registerReferenceListener(junitx.ddtunit.data.processing.IReferenceListener listener)
           
 void removeLinkChangeListener(ILinkChangeListener listener)
           
 void removeReferenceListener(junitx.ddtunit.data.processing.IReferenceListener listener)
           
 void setNext(IAction next)
           
 void setObject(TypedObject tObj)
           
 void setPrevious(IAction previous)
           
 void setType(String type)
           
 void setValue(Object obj)
           
 

Method Detail

inject

IAction inject()
Used to append TypedObjectthat should be processed on this action.


createObject

TypedObject createObject()
Create injected object to according type specification on this action. Just do nothing if object allready instanciated.

Returns:
RecordBase
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException

getObject

TypedObject getObject()

setObject

void setObject(TypedObject tObj)

setValue

void setValue(Object obj)

getValue

Object getValue()

getId

String getId()

process

IAction process()
do process required action to transition from this state


processSuccessor

void processSuccessor(IAction successor)
Process successor in action stack.

Parameters:
successor - action in stack

processNoSuccessor

void processNoSuccessor()
Process action if no successor exists on action stack.


getNext

IAction getNext()

setNext

void setNext(IAction next)

getPrevious

IAction getPrevious()

setPrevious

void setPrevious(IAction previous)

getTypeFromRoot

String getTypeFromRoot()

getType

String getType()

setType

void setType(String type)

extractFieldType

String extractFieldType(String fieldName)
Extract field type information from object sitting on the stack.
If rootAction is a generated container action used for construction of fields or constructor call of the underlying object then skip the container action and retrieve requested type from underlying object.

Parameters:
fieldName - to extract type from
Returns:
full type of field

getHint

String getHint()

insert

void insert(IAction action)
Insert a new Record entry after this.

Parameters:
action - to insert

promoteLinkChangeListener

void promoteLinkChangeListener(IAction action)

registerLinkChangeListener

void registerLinkChangeListener(ILinkChangeListener listener)

removeLinkChangeListener

void removeLinkChangeListener(ILinkChangeListener listener)

registerReferenceListener

void registerReferenceListener(junitx.ddtunit.data.processing.IReferenceListener listener)

removeReferenceListener

void removeReferenceListener(junitx.ddtunit.data.processing.IReferenceListener listener)

getAttribute

String getAttribute(String key)
Retrieve attribute from Action object.

Parameters:
key -
Returns:
value of key


Copyright © 2004-2011. All Rights Reserved.