
public class Messages extends ModelObject implements Cloneable, Serializable
| Constructor and Description |
|---|
Messages()
Creates a new
Messages instance. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates and returns a deep copy of this object.
|
boolean |
equals(Object o)
Indicates whether some other object is equal to this one by comparing
the values of all properties.
|
Message |
getMessage(int index)
Gets a message for an index.
|
Message |
getMessage(String name)
Gets a message for a name.
|
Message[] |
getMessages()
Gets the messages of the collection.
|
int |
hashCode()
Returns a hash code value for this object.
|
void |
setMessages(Message[] value)
Setter for property
messages. |
int |
size()
Gets the number of messages held by the instance.
|
String |
toString()
Returns a string representation of the object.
|
getDocumentation, getModelVersion, setDocumentation, setModelVersionpublic Messages()
Messages instance.public boolean equals(Object o)
public final Message getMessage(int index)
index - the index of the message to return.index.IndexOutOfBoundsException - if index is negativ,
greater than or equal to size().public Message getMessage(String name)
name - the name of the message to return.name.NullPointerException - if name is null.MissingMessageException - if no message matching
name exists in the collection.public Message[] getMessages()
public int hashCode()
public void setMessages(Message[] value)
messages.value - the new messages for the instance.DuplicateMessageException - if value contains
duplicate messages.public final int size()
Copyright © 2005-2012 jDTAUS. All Rights Reserved.