|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdtaus.core.container.ModelObject
org.jdtaus.core.container.Messages
public class Messages
Collection of messages.
| Constructor Summary | |
|---|---|
Messages()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.jdtaus.core.container.ModelObject |
|---|
getDocumentation, getModelVersion, setDocumentation, setModelVersion |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Messages()
| Method Detail |
|---|
public Object clone()
clone in class Objectpublic boolean equals(Object o)
equals in class Objecto - the reference object with which to compare.
true if this object is the same as o;
false otherwise.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()
hashCode in class Objectpublic void setMessages(Message[] value)
messages.
value - the new messages for the instance.
DuplicateMessageException - if value contains
duplicate messages.public final int size()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||