public final class FieldProcessorImpl extends Object implements FieldProcessor, Serializable
FieldProcessor
-implementationConstructor 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
Linkpanel s 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
Message s which were previously added using
addXXMessage(FieldDef field, String message) . |
void |
clearFieldMessages(String... fieldBindings)
|
void |
clearMessages()
Clears all
Message s 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
FieldDef intions 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 . |
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(Pageable pageable) |
public FieldProcessorImpl(String reference)
public void addLinkPanels(List<Linkpanel> panels)
FieldProcessor
Linkpanel
s to this FieldProcessor
addLinkPanels
in interface FieldProcessor
panels
- a list of Linkpanel
spublic List<FieldDef> getFields()
FieldProcessor
FieldDef
intions known by this FieldProcessor
.getFields
in interface FieldProcessor
List
of FieldDef
intionspublic FieldDef getField(String fieldBinding)
FieldProcessor
FieldDef
with the given binding, if existing.getField
in interface FieldProcessor
fieldBinding
- the binding of the FieldDef
to returnFieldDef
with the given binding, or null
if no such FieldDef
existsFieldDef.getBinding()
public Linkpanel getLinkPanel(String fieldName)
FieldProcessor
Linkpanel
with the given name, if existing.getLinkPanel
in interface FieldProcessor
fieldName
- the name of the FieldDef
respectively the Linkpanel
Linkpanel
, if existing, null
otherwisepublic boolean hasField(String fieldBinding)
FieldProcessor
FieldDef
with the given binding exists for this FieldProcessor
.hasField
in interface FieldProcessor
fieldBinding
- the binding of the FieldDef
to checktrue
if such a FieldDef
exists, false
otherwise.FieldProcessor.getField(String)
public String getReference()
FieldProcessor
getReference
in interface FieldProcessor
public MetaData getMetaData()
FieldProcessor
MetaData
of this FieldProcessor
.getMetaData
in interface FieldProcessor
MetaData
public boolean hasErrors()
FieldProcessor
hasErrors
in interface FieldProcessor
true
if there are any Message
s of
MessageType.ERROR
, false
otherwiseFieldProcessor.addErrorMessage(String)
,
FieldProcessor.addErrorMessage(FieldDef, String)
public boolean hasFieldErrors()
FieldProcessor
Message
of type
MessageType.ERROR
.hasFieldErrors
in interface FieldProcessor
true
if any of the FieldProcessor
s FieldDef
s has a
Message
of type MessageType.ERROR
,
false
otherwiseFieldProcessor.addErrorMessage(FieldDef, String)
public void addOkMessage(String message)
FieldProcessor
Message
of type MessageType.OK
.addOkMessage
in interface FieldProcessor
message
- the message to addpublic void addOkMessage(FieldDef field, String message)
FieldProcessor
Message
of type MessageType.OK
to the given
field.addOkMessage
in interface FieldProcessor
field
- the FieldDef
to add the Message
tomessage
- the message to addpublic void addErrorMessage(String message)
FieldProcessor
Message
of type MessageType.ERROR
.addErrorMessage
in interface FieldProcessor
message
- the message to addFieldProcessor.hasErrors()
public void addErrorMessage(FieldDef field, String message)
FieldProcessor
Message
of type MessageType.ERROR
to the
given field.addErrorMessage
in interface FieldProcessor
field
- the FieldDef
to add the Message
tomessage
- the message to addFieldProcessor.hasErrors()
,
FieldProcessor.hasFieldErrors()
public void addInvalidMessage(String message)
FieldProcessor
Message
of type MessageType.INVALID
.addInvalidMessage
in interface FieldProcessor
message
- the message to addpublic void addInvalidMessage(FieldDef field, String message)
FieldProcessor
Message
of type MessageType.INVALID
to the
given field.addInvalidMessage
in interface FieldProcessor
field
- the FieldDef
to add the Message
tomessage
- the message to addpublic void addNoticeMessage(String message)
FieldProcessor
Message
of type MessageType.INVALID
.addNoticeMessage
in interface FieldProcessor
message
- the message to addpublic void addNoticeMessage(FieldDef field, String message)
FieldProcessor
Message
of type MessageType.NOTICE
to the
given field.addNoticeMessage
in interface FieldProcessor
field
- the FieldDef
to add the Message
tomessage
- the message to addpublic Messages getMessages()
FieldProcessor
Messages
-object containing all Message
s previously added
using addXXMessage(String message)
.getMessages
in interface FieldProcessor
Messages
instance containing the previously added Message
sFieldProcessor.addOkMessage(String)
,
FieldProcessor.addNoticeMessage(String)
,
FieldProcessor.addInvalidMessage(String)
,
FieldProcessor.addErrorMessage(String)
public void clearMessages()
FieldProcessor
Message
s which were previously added using
addXXMessage(String message)
.clearMessages
in interface FieldProcessor
FieldProcessor.addOkMessage(String)
,
FieldProcessor.addNoticeMessage(String)
,
FieldProcessor.addInvalidMessage(String)
,
FieldProcessor.addErrorMessage(String)
public void clearFieldMessages()
FieldProcessor
Message
s which were previously added using
addXXMessage(FieldDef field, String message)
.public void clearFieldMessages(String... fieldBindings)
FieldProcessor
clearFieldMessages
in interface FieldProcessor
fieldBindings
- 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(Pageable pageable)
public Pageable getPageable()
FieldProcessor
Pageable
for this FieldProcessor
.getPageable
in interface FieldProcessor
Pageable
Copyright © 2011–2017 aiticon GmbH. All rights reserved.