|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunitx.ddtunit.data.processing.ConstantCreatorAction
public class ConstantCreatorAction
This class contains object state and other information to create object from SAX event stream.
| Field Summary | |
|---|---|
protected Map<String,String> |
attrMap
|
protected TypedObject |
injectedObject
|
protected static String |
LF
|
protected org.slf4j.Logger |
log
|
protected IAction |
next
|
protected IAction |
previous
|
| Constructor Summary | |
|---|---|
ConstantCreatorAction(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 TypedObjectthat 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 |
|---|
protected org.slf4j.Logger log
protected Map<String,String> attrMap
protected TypedObject injectedObject
protected IAction previous
protected IAction next
protected static final String LF
| Constructor Detail |
|---|
public ConstantCreatorAction(Map<String,String> attrMap)
attrMap - | Method Detail |
|---|
public IAction process()
IAction
public IAction inject()
IActionTypedObjectthat should be processed on this
action.
public void processSuccessor(IAction successor)
IAction
successor - action in stackpublic void processNoSuccessor()
IAction
processNoSuccessor in interface IActionpublic void registerLinkChangeListener(ILinkChangeListener listener)
registerLinkChangeListener in interface IActionpublic void removeLinkChangeListener(ILinkChangeListener listener)
removeLinkChangeListener in interface IActionpublic void pop()
public void promoteLinkChangeListener(IAction action)
promoteLinkChangeListener in interface IActionpublic void registerReferenceListener(junitx.ddtunit.data.processing.IReferenceListener listener)
registerReferenceListener in interface IActionpublic void add(IReferenceInfo info)
public void removeReferenceListener(junitx.ddtunit.data.processing.IReferenceListener listener)
removeReferenceListener in interface IActionprotected void desintegrate()
public TypedObject getInjectedObject()
public String getHint()
getHint in interface IActionpublic String getId()
getId in interface IActionpublic String getType()
getType in interface IActionpublic void setType(String type)
setType in interface IActionpublic Object getValue()
getValue in interface IActionpublic TypedObject getObject()
getObject in interface IActionpublic void setObject(TypedObject newObject)
setObject in interface IActionpublic void setValue(Object obj)
setValue in interface IActionpublic String getTypeFromRoot()
getTypeFromRoot in interface IActionpublic String extractFieldType(String fieldName)
extractFieldType in interface IActionfieldName - to extract type from
public TypedObject createObject()
createObject in interface IActionClassNotFoundException
InstantiationException
IllegalAccessExceptionpublic IAction getNext()
getNext in interface IActionpublic void setNext(IAction next)
setNext in interface IActionpublic IAction getPrevious()
getPrevious in interface IActionpublic void setPrevious(IAction previous)
setPrevious in interface IActionpublic void insert(IAction action)
insert in interface IActionaction - to insertpublic String toString()
toString in class Objectpublic String getAttribute(String id)
IAction
getAttribute in interface IActionpublic boolean hasReferenceInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||