org.jomc.model
Class Persons

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

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public class Persons
extends ModelObject
implements Cloneable

List of persons.

See Also:
Person

Field Summary
protected  List<Person> person
           
 
Fields inherited from class org.jomc.model.ModelObject
authors, createDate, documentation, modelVersion
 
Constructor Summary
Persons()
          Creates a new Persons instance.
Persons(Persons o)
          Creates a new Persons instance by deeply copying a given instance.
 
Method Summary
 Persons clone()
          Creates and returns a deep copy of this object.
private static void copyPerson(List<Person> source, List<Person> target)
          Copies all values of property Person deeply.
 List<Person> getPerson()
          Gets the value of the person property.
 
Methods inherited from class org.jomc.model.ModelObject
getAuthors, getCreateDate, getDocumentation, getModelVersion, setAuthors, setCreateDate, setDocumentation, setModelVersion
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

person

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<Person> person
Constructor Detail

Persons

public Persons()
Creates a new Persons instance.


Persons

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

Parameters:
o - The instance to copy or null.
Method Detail

getPerson

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<Person> getPerson()
Gets the value of the person 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 person property.

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

    getPerson().add(newItem);
 

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


copyPerson

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
private static void copyPerson(List<Person> source,
                                                          List<Person> target)
Copies all values of property Person deeply.

Parameters:
target - The target to copy source to.
source - The source to copy from.
Throws:
NullPointerException - if source or target is null.

clone

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public Persons clone()
Creates and returns a deep copy of this object.

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


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