org.jomc.model
Class Instances

Package class diagram package Instances
java.lang.Object
  extended by org.jomc.model.ModelObject
      extended by org.jomc.model.Instances
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 Instances
extends ModelObject
implements Cloneable

List of instances.

Java class for Instances complex type.

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

 <complexType name="Instances">
   <complexContent>
     <extension base="{http://jomc.org/model}ModelObject">
       <sequence>
         <element ref="{http://jomc.org/model}instance" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<Instance> instance
           
 
Fields inherited from class org.jomc.model.ModelObject
authors, createDate, deprecated, documentation, modelVersion
 
Constructor Summary
Instances()
          Creates a new Instances instance.
Instances(Instances o)
          Creates a new Instances instance by deeply copying a given Instances instance.
 
Method Summary
 Instances clone()
          Creates and returns a deep copy of this object.
 List<Instance> getInstance()
          Gets the value of the instance property.
 Instance getInstance(String identifier)
          Gets an instance for a given identifier from the list of instances.
 
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

instance

@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<Instance> instance
Constructor Detail

Instances

public Instances()
Creates a new Instances instance.


Instances

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

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

getInstance

@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<Instance> getInstance()
Gets the value of the instance 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 instance property.

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

    getInstance().add(newItem);
 

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


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 Instances clone()
Creates and returns a deep copy of this object.

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

getInstance

public Instance getInstance(String identifier)
Gets an instance for a given identifier from the list of instances.

Parameters:
identifier - The identifier of the instance to return.
Returns:
The instance identified by identifier from the list or null, if no instance matching identifier is found.
Throws:
NullPointerException - if identifier is null.
See Also:
getInstance()


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