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 |
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) |
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
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
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 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 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-2011 Potix Corporation. All Rights Reserved.