public final class FieldProcessorImpl extends Object implements FieldProcessor, Serializable
FieldProcessor-implementation| Constructor and Description |
|---|
FieldProcessorImpl(String reference) |
FieldProcessorImpl(String reference,
MetaData metaData) |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorMessage(FieldDef field,
String message)
Adds a
Message of type MessageType.ERROR to the
given field. |
void |
addErrorMessage(String message)
Adds a
Message of type MessageType.ERROR. |
void |
addInvalidMessage(FieldDef field,
String message)
Adds a
Message of type MessageType.INVALID to the
given field. |
void |
addInvalidMessage(String message)
Adds a
Message of type MessageType.INVALID. |
void |
addLinkPanels(List<Linkpanel> panels)
Adds the given list of
Linkpanels to this FieldProcessor |
void |
addNoticeMessage(FieldDef field,
String message)
Adds a
Message of type MessageType.NOTICE to the
given field. |
void |
addNoticeMessage(String message)
Adds a
Message of type MessageType.INVALID. |
void |
addOkMessage(FieldDef field,
String message)
Adds a
Message of type MessageType.OK to the given
field. |
void |
addOkMessage(String message)
Adds a
Message of type MessageType.OK. |
void |
clearFieldMessages()
Clears all
Messages which were previously added using
addXXMessage(FieldDef field, String message). |
void |
clearFieldMessages(String... fieldBindings)
|
void |
clearMessages()
Clears all
Messages which were previously added using
addXXMessage(String message). |
FieldDef |
getField(String fieldBinding)
Returns the
FieldDef with the given binding, if existing. |
List<FieldDef> |
getFields()
Returns all
FieldDefintions known by this FieldProcessor. |
Linkpanel |
getLinkPanel(String fieldName)
Returns the
Linkpanel with the given name, if existing. |
List<Linkpanel> |
getLinkPanels() |
Messages |
getMessages()
|
MetaData |
getMetaData()
Returns the
MetaData of this FieldProcessor. |
org.springframework.data.domain.Pageable |
getPageable()
Returns the
Pageable for this FieldProcessor. |
String |
getReference()
|
boolean |
hasErrors()
|
boolean |
hasField(String fieldBinding)
Checks whether a
FieldDef with the given binding exists for this FieldProcessor. |
boolean |
hasFieldErrors()
Checks whether one of the fields has a
Message of type
MessageType.ERROR. |
void |
setPageable(org.springframework.data.domain.Pageable pageable) |
public FieldProcessorImpl(String reference)
public void addLinkPanels(List<Linkpanel> panels)
FieldProcessorLinkpanels to this FieldProcessoraddLinkPanels in interface FieldProcessorpanels - a list of Linkpanelspublic List<FieldDef> getFields()
FieldProcessorFieldDefintions known by this FieldProcessor.getFields in interface FieldProcessorList of FieldDefintionspublic FieldDef getField(String fieldBinding)
FieldProcessorFieldDef with the given binding, if existing.getField in interface FieldProcessorfieldBinding - the binding of the FieldDef to returnFieldDef with the given binding, or null if no such FieldDef existsFieldDef.getBinding()public Linkpanel getLinkPanel(String fieldName)
FieldProcessorLinkpanel with the given name, if existing.getLinkPanel in interface FieldProcessorfieldName - the name of the FieldDef respectively the LinkpanelLinkpanel, if existing, null otherwisepublic boolean hasField(String fieldBinding)
FieldProcessorFieldDef with the given binding exists for this FieldProcessor.hasField in interface FieldProcessorfieldBinding - the binding of the FieldDef to checktrue if such a FieldDef exists, false otherwise.FieldProcessor.getField(String)public String getReference()
FieldProcessorgetReference in interface FieldProcessorpublic MetaData getMetaData()
FieldProcessorMetaData of this FieldProcessor.getMetaData in interface FieldProcessorMetaDatapublic boolean hasErrors()
FieldProcessorhasErrors in interface FieldProcessortrue if there are any Messages of
MessageType.ERROR, false otherwiseFieldProcessor.addErrorMessage(String),
FieldProcessor.addErrorMessage(FieldDef, String)public boolean hasFieldErrors()
FieldProcessorMessage of type
MessageType.ERROR.hasFieldErrors in interface FieldProcessortrue if any of the FieldProcessors FieldDefs has a
Message of type MessageType.ERROR,
false otherwiseFieldProcessor.addErrorMessage(FieldDef, String)public void addOkMessage(String message)
FieldProcessorMessage of type MessageType.OK.addOkMessage in interface FieldProcessormessage - the message to addpublic void addOkMessage(FieldDef field, String message)
FieldProcessorMessage of type MessageType.OK to the given
field.addOkMessage in interface FieldProcessorfield - the FieldDef to add the Message tomessage - the message to addpublic void addErrorMessage(String message)
FieldProcessorMessage of type MessageType.ERROR.addErrorMessage in interface FieldProcessormessage - the message to addFieldProcessor.hasErrors()public void addErrorMessage(FieldDef field, String message)
FieldProcessorMessage of type MessageType.ERROR to the
given field.addErrorMessage in interface FieldProcessorfield - the FieldDef to add the Message tomessage - the message to addFieldProcessor.hasErrors(),
FieldProcessor.hasFieldErrors()public void addInvalidMessage(String message)
FieldProcessorMessage of type MessageType.INVALID.addInvalidMessage in interface FieldProcessormessage - the message to addpublic void addInvalidMessage(FieldDef field, String message)
FieldProcessorMessage of type MessageType.INVALID to the
given field.addInvalidMessage in interface FieldProcessorfield - the FieldDef to add the Message tomessage - the message to addpublic void addNoticeMessage(String message)
FieldProcessorMessage of type MessageType.INVALID.addNoticeMessage in interface FieldProcessormessage - the message to addpublic void addNoticeMessage(FieldDef field, String message)
FieldProcessorMessage of type MessageType.NOTICE to the
given field.addNoticeMessage in interface FieldProcessorfield - the FieldDef to add the Message tomessage - the message to addpublic Messages getMessages()
FieldProcessorMessages-object containing all Messages previously added
using addXXMessage(String message).getMessages in interface FieldProcessorMessages instance containing the previously added MessagesFieldProcessor.addOkMessage(String),
FieldProcessor.addNoticeMessage(String),
FieldProcessor.addInvalidMessage(String),
FieldProcessor.addErrorMessage(String)public void clearMessages()
FieldProcessorMessages which were previously added using
addXXMessage(String message).clearMessages in interface FieldProcessorFieldProcessor.addOkMessage(String),
FieldProcessor.addNoticeMessage(String),
FieldProcessor.addInvalidMessage(String),
FieldProcessor.addErrorMessage(String)public void clearFieldMessages()
FieldProcessorMessages which were previously added using
addXXMessage(FieldDef field, String message).public void clearFieldMessages(String... fieldBindings)
FieldProcessorclearFieldMessages in interface FieldProcessorfieldBindings - the bindings of the fields to clear the messages forFieldProcessor.addOkMessage(FieldDef, String),
FieldProcessor.addNoticeMessage(FieldDef, String),
FieldProcessor.addInvalidMessage(FieldDef, String),
FieldProcessor.addErrorMessage(FieldDef, String),
FieldDef.getBinding()public void setPageable(org.springframework.data.domain.Pageable pageable)
public org.springframework.data.domain.Pageable getPageable()
FieldProcessorPageable for this FieldProcessor.getPageable in interface FieldProcessorPageableCopyright © 2011–2019 aiticon GmbH. All rights reserved.