public class AbstractValidationTraverser<T extends FormTriggerHelper<?,?>> extends java.lang.Object implements ValidationTraverser
| Constructor and Description |
|---|
AbstractValidationTraverser(T formTriggerHelper,
java.lang.Integer corporationID,
boolean edit) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFormResponse(java.lang.String key,
java.lang.String message)
Contains the response that will be sent back to the bullhorn form, key:value pairs
can be either validation error messages or response values for the form.
|
java.lang.Integer |
getCorporationID()
Return the corporationID of the corporation for which an entity is being validated
|
java.util.Map<java.lang.String,java.lang.String> |
getFormResponse()
Returns the response that will be sent back to the bullhorn form.
|
T |
getFormTriggerHelper() |
boolean |
isEdit()
Returns whether or not the form trigger currently being validated is an edit trigger or not.
|
java.lang.String |
toString() |
public AbstractValidationTraverser(T formTriggerHelper, java.lang.Integer corporationID, boolean edit)
public T getFormTriggerHelper()
public java.lang.Integer getCorporationID()
getCorporationID in interface ValidationTraverserpublic java.util.Map<java.lang.String,java.lang.String> getFormResponse()
getFormResponse in interface ValidationTraverserValidationTraverser.addFormResponse(String, String)public void addFormResponse(java.lang.String key,
java.lang.String message)
addFormResponse in interface ValidationTraverserkey - the key of the reponse itemmessage - the message or value to be returned to the bullhorn formpublic boolean isEdit()
isEdit in interface ValidationTraverserpublic java.lang.String toString()
toString in class java.lang.Object