org.jomc.model
Class Messages

Package class diagram package Messages
java.lang.Object
  extended by org.jomc.model.ModelObject
      extended by org.jomc.model.Messages
All Implemented Interfaces:
Cloneable

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public class Messages
extends ModelObject
implements Cloneable

List of messages.

Java class for Messages complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Messages">
   <complexContent>
     <extension base="{http://jomc.org/model}ModelObject">
       <sequence>
         <element ref="{http://jomc.org/model}message" maxOccurs="unbounded" minOccurs="0"/>
         <element name="reference" type="{http://jomc.org/model}MessageReference" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<Message> message
           
protected  List<MessageReference> reference
           
 
Fields inherited from class org.jomc.model.ModelObject
authors, createDate, deprecated, documentation, modelVersion
 
Constructor Summary
Messages()
          Creates a new Messages instance.
Messages(Messages o)
          Creates a new Messages instance by deeply copying a given Messages instance.
 
Method Summary
 Messages clone()
          Creates and returns a deep copy of this object.
 List<Message> getMessage()
          Gets the value of the message property.
 Message getMessage(String name)
          Gets a message for a given name from the list of messages.
 List<MessageReference> getReference()
          Gets the value of the reference property.
 MessageReference getReference(String name)
          Gets a message reference for a given name from the list of references.
 
Methods inherited from class org.jomc.model.ModelObject
getAuthors, getCreateDate, getDocumentation, getModelVersion, isDeprecated, setAuthors, setCreateDate, setDeprecated, setDocumentation, setModelVersion
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<Message> message

reference

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<MessageReference> reference
Constructor Detail

Messages

public Messages()
Creates a new Messages instance.


Messages

public Messages(Messages o)
Creates a new Messages instance by deeply copying a given Messages instance.

Parameters:
o - The instance to copy.
Throws:
NullPointerException - if o is null.
Method Detail

getMessage

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<Message> getMessage()
Gets the value of the message property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the message property.

For example, to add a new item, do as follows:

    getMessage().add(newItem);
 

Objects of the following type(s) are allowed in the list Message


getReference

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<MessageReference> getReference()
Gets the value of the reference property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the reference property.

For example, to add a new item, do as follows:

    getReference().add(newItem);
 

Objects of the following type(s) are allowed in the list MessageReference


clone

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public Messages clone()
Creates and returns a deep copy of this object.

Overrides:
clone in class ModelObject
Returns:
A deep copy of this object.

getMessage

public Message getMessage(String name)
Gets a message for a given name from the list of messages.

Parameters:
name - The name of the message to return.
Returns:
The message with name name from the list or null, if no message matching name is found.
Throws:
NullPointerException - if name is null.
See Also:
getMessage()

getReference

public MessageReference getReference(String name)
Gets a message reference for a given name from the list of references.

Parameters:
name - The name of the message reference to return.
Returns:
The message reference with name name from the list or null, if no message reference matching name is found.
Throws:
NullPointerException - if name is null.
See Also:
getReference()


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.