|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junitx.ddtunit.data.processing.DateCreatorAction
public class DateCreatorAction
This class contains object state and other information to create object from SAX event stream.
Field Summary | |
---|---|
protected Map<String,String> |
attrMap
|
static String |
DATE_GENERIC
|
static String |
DATE_LOCALE
|
protected TypedObject |
injectedObject
|
protected static String |
LF
|
protected IAction |
next
|
protected IAction |
previous
|
static String |
SYSDATE
special key for actual date only |
static String |
SYSTIME
special key for actual date/time |
Constructor Summary | |
---|---|
DateCreatorAction(Map<String,String> attrMap)
Constructor used as standard constructor to instanciate actions of this type |
Method Summary | |
---|---|
void |
add(IReferenceInfo info)
|
TypedObject |
createObject()
Create injected object to according type specification on this action. |
protected void |
desintegrate()
|
String |
extractFieldType(String fieldName)
Extract field type information from object sitting on the stack. |
String |
getAttribute(String id)
Retrieve attribute from Action object. |
String |
getHint()
|
String |
getId()
|
TypedObject |
getInjectedObject()
|
IAction |
getNext()
|
TypedObject |
getObject()
|
IAction |
getPrevious()
|
String |
getType()
|
String |
getTypeFromRoot()
Extract object type of associated root action on action stack. |
Object |
getValue()
|
boolean |
hasReferenceInfo()
|
IAction |
inject()
Used to append TypedObject that should be processed on this
action. |
void |
insert(IAction action)
Insert a new Record entry after this. |
void |
pop()
|
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 newObject)
|
void |
setPrevious(IAction previous)
|
void |
setType(String type)
|
void |
setValue(Object obj)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String SYSDATE
public static final String SYSTIME
public static final String DATE_GENERIC
public static final String DATE_LOCALE
protected Map<String,String> attrMap
protected TypedObject injectedObject
protected IAction previous
protected IAction next
protected static final String LF
Constructor Detail |
---|
public DateCreatorAction(Map<String,String> attrMap)
attrMap
- Method Detail |
---|
public IAction process()
IAction
public void processSuccessor(IAction successor)
IAction
successor
- action in stackpublic void processNoSuccessor()
IAction
processNoSuccessor
in interface IAction
public IAction inject()
IAction
TypedObject
that should be processed on this
action.
public void registerLinkChangeListener(ILinkChangeListener listener)
registerLinkChangeListener
in interface IAction
public void removeLinkChangeListener(ILinkChangeListener listener)
removeLinkChangeListener
in interface IAction
public void pop()
public void promoteLinkChangeListener(IAction action)
promoteLinkChangeListener
in interface IAction
public void registerReferenceListener(junitx.ddtunit.data.processing.IReferenceListener listener)
registerReferenceListener
in interface IAction
public void add(IReferenceInfo info)
public void removeReferenceListener(junitx.ddtunit.data.processing.IReferenceListener listener)
removeReferenceListener
in interface IAction
protected void desintegrate()
public TypedObject getInjectedObject()
public String getHint()
getHint
in interface IAction
public String getId()
getId
in interface IAction
public String getType()
getType
in interface IAction
public void setType(String type)
setType
in interface IAction
public Object getValue()
getValue
in interface IAction
public TypedObject getObject()
getObject
in interface IAction
public void setObject(TypedObject newObject)
setObject
in interface IAction
public void setValue(Object obj)
setValue
in interface IAction
public String getTypeFromRoot()
getTypeFromRoot
in interface IAction
public String extractFieldType(String fieldName)
extractFieldType
in interface IAction
fieldName
- to extract type from
public TypedObject createObject()
createObject
in interface IAction
ClassNotFoundException
InstantiationException
IllegalAccessException
public IAction getNext()
getNext
in interface IAction
public void setNext(IAction next)
setNext
in interface IAction
public IAction getPrevious()
getPrevious
in interface IAction
public void setPrevious(IAction previous)
setPrevious
in interface IAction
public void insert(IAction action)
insert
in interface IAction
action
- to insertpublic String toString()
toString
in class Object
public String getAttribute(String id)
IAction
getAttribute
in interface IAction
public boolean hasReferenceInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |