public class ValidationMessagesImpl extends java.lang.Object implements ValidationMessages, java.util.Collection<java.lang.Object>, java.io.Serializable
ValidationMessages
Constructor and Description |
---|
ValidationMessagesImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object e) |
boolean |
addAll(java.util.Collection<? extends java.lang.Object> c) |
void |
addMessages(Component comp,
java.lang.String attr,
java.lang.String key,
java.lang.String[] messages)
add validation messages to component
|
void |
addMessages(Component comp,
java.lang.String attr,
java.lang.String key,
java.lang.String[] messages,
java.lang.Object value)
add validation messages to component
|
void |
clear() |
void |
clearAllMessages()
clear all validation message
|
void |
clearKeyMessages(Component comp,
java.lang.String key)
clear validation message of component and a special message key
|
void |
clearKeyMessages(java.lang.String key)
clear validation message of a special message key
|
void |
clearMessages(Component comp)
clear validation message of component
|
void |
clearMessages(Component comp,
java.lang.String attr)
clear validation message of component
|
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
Component |
getAssociate(java.lang.String key)
Returns the first associated component from the given key, if any.
|
Component[] |
getAssociates(java.lang.String key)
Returns all associated components from the given key, if any.
|
java.lang.Object |
getFieldValue(Component comp,
java.lang.String key)
Returns the first field value from the given key and component, if any.
|
java.lang.Object |
getFieldValue(java.lang.String key)
Returns the first field value from the given key, if any.
|
java.lang.Object[] |
getFieldValues(Component comp,
java.lang.String key)
Returns all field values from the given key and component, if any.
|
java.lang.Object[] |
getFieldValues(java.lang.String key)
Returns all field values from the given key, if any.
|
java.lang.String[] |
getKeyMessages(Component comp,
java.lang.String key)
get validation message of component and a special key
|
java.lang.String[] |
getKeyMessages(java.lang.String key)
get validation message of a special key
|
java.lang.String[] |
getMessages()
get all validation messages
|
java.lang.String[] |
getMessages(Component comp)
get validation messages of a component
|
java.lang.String[] |
getMessages(Component comp,
java.lang.String attr)
get validation messages of a component and special attribute
|
boolean |
isEmpty() |
java.util.Iterator<java.lang.Object> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
void |
setMessages(Component comp,
java.lang.String attr,
java.lang.String key,
java.lang.String[] messages)
set validation messages to component, it will replace previous messages
|
void |
setMessages(Component comp,
java.lang.String attr,
java.lang.String key,
java.lang.String[] messages,
java.lang.Object value)
set validation messages to component, it will replace previous messages
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void clearMessages(Component comp)
ValidationMessages
clearMessages
in interface ValidationMessages
public void clearMessages(Component comp, java.lang.String attr)
ValidationMessages
clearMessages
in interface ValidationMessages
public void clearKeyMessages(Component comp, java.lang.String key)
ValidationMessages
clearKeyMessages
in interface ValidationMessages
public void clearKeyMessages(java.lang.String key)
ValidationMessages
clearKeyMessages
in interface ValidationMessages
public void clearAllMessages()
ValidationMessages
clearAllMessages
in interface ValidationMessages
public java.lang.String[] getMessages(Component comp, java.lang.String attr)
ValidationMessages
getMessages
in interface ValidationMessages
public java.lang.String[] getMessages(Component comp)
ValidationMessages
getMessages
in interface ValidationMessages
public java.lang.String[] getMessages()
ValidationMessages
getMessages
in interface ValidationMessages
public java.lang.String[] getKeyMessages(Component comp, java.lang.String key)
ValidationMessages
getKeyMessages
in interface ValidationMessages
public java.lang.String[] getKeyMessages(java.lang.String key)
ValidationMessages
getKeyMessages
in interface ValidationMessages
public void setMessages(Component comp, java.lang.String attr, java.lang.String key, java.lang.String[] messages)
ValidationMessages
setMessages
in interface ValidationMessages
comp
- the component refers to the messagesattr
- the attr refers to the messageskey
- the custom key refers to this messages, nullablemessages
- the messagespublic void setMessages(Component comp, java.lang.String attr, java.lang.String key, java.lang.String[] messages, java.lang.Object value)
ValidationMessages
setMessages
in interface ValidationMessages
comp
- the component refers to the messagesattr
- the attr refers to the messageskey
- the custom key refers to this messages, nullablemessages
- the messagesvalue
- the rejected valuepublic void addMessages(Component comp, java.lang.String attr, java.lang.String key, java.lang.String[] messages)
ValidationMessages
addMessages
in interface ValidationMessages
comp
- the component refers to the messagesattr
- the attr refers to the messageskey
- the custom key refers to this messages, nullablemessages
- the messagespublic void addMessages(Component comp, java.lang.String attr, java.lang.String key, java.lang.String[] messages, java.lang.Object value)
ValidationMessages
addMessages
in interface ValidationMessages
comp
- the component refers to the messagesattr
- the attr refers to the messageskey
- the custom key refers to this messages, nullablemessages
- the messagesvalue
- the rejected valuepublic java.lang.Object getFieldValue(java.lang.String key)
ValidationMessages
getFieldValue
in interface ValidationMessages
key
- the custom key refers to this messages, nullablepublic java.lang.Object getFieldValue(Component comp, java.lang.String key)
ValidationMessages
getFieldValue
in interface ValidationMessages
comp
- the component refers to the valuekey
- the custom key refers to this value, nullablepublic java.lang.Object[] getFieldValues(java.lang.String key)
ValidationMessages
getFieldValues
in interface ValidationMessages
key
- the custom key refers to this messages, nullablepublic java.lang.Object[] getFieldValues(Component comp, java.lang.String key)
ValidationMessages
getFieldValues
in interface ValidationMessages
comp
- the component refers to the valuekey
- the custom key refers to this value, nullablepublic Component getAssociate(java.lang.String key)
ValidationMessages
getAssociate
in interface ValidationMessages
key
- the custom key refers to this messages, nullablepublic Component[] getAssociates(java.lang.String key)
ValidationMessages
getAssociates
in interface ValidationMessages
key
- the custom key refers to this messages, nullablepublic int size()
size
in interface java.util.Collection<java.lang.Object>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.Object>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<java.lang.Object>
public java.util.Iterator<java.lang.Object> iterator()
iterator
in interface java.lang.Iterable<java.lang.Object>
iterator
in interface java.util.Collection<java.lang.Object>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<java.lang.Object>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<java.lang.Object>
public boolean add(java.lang.Object e)
add
in interface java.util.Collection<java.lang.Object>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<java.lang.Object>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<java.lang.Object>
public boolean addAll(java.util.Collection<? extends java.lang.Object> c)
addAll
in interface java.util.Collection<java.lang.Object>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<java.lang.Object>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<java.lang.Object>
public void clear()
clear
in interface java.util.Collection<java.lang.Object>
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.