org.jomc.model
Class Specifications

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

List of specifications.

Java class for Specifications complex type.

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

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


Field Summary
protected  List<SpecificationReference> reference
           
protected  List<Specification> specification
           
 
Fields inherited from class org.jomc.model.ModelObject
authors, createDate, deprecated, documentation, modelVersion
 
Constructor Summary
Specifications()
          Creates a new Specifications instance.
Specifications(Specifications o)
          Creates a new Specifications instance by deeply copying a given Specifications instance.
 
Method Summary
 Specifications clone()
          Creates and returns a deep copy of this object.
 List<SpecificationReference> getReference()
          Gets the value of the reference property.
 SpecificationReference getReference(String specification)
          Gets a specification reference for a given identifier from the list of references.
 List<Specification> getSpecification()
          Gets the value of the specification property.
 Specification getSpecification(Class specification)
          Gets a specification for a given class from the list of specifications.
 Specification getSpecification(String specification)
          Gets a specification for a given identifier from the list of specifications.
 
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

specification

@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<Specification> specification

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<SpecificationReference> reference
Constructor Detail

Specifications

public Specifications()
Creates a new Specifications instance.


Specifications

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

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

getSpecification

@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<Specification> getSpecification()
Gets the value of the specification 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 specification property.

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

    getSpecification().add(newItem);
 

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


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<SpecificationReference> 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 SpecificationReference


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

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

getSpecification

public Specification getSpecification(String specification)
Gets a specification for a given identifier from the list of specifications.

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

getSpecification

public Specification getSpecification(Class specification)
Gets a specification for a given class from the list of specifications.

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

getReference

public SpecificationReference getReference(String specification)
Gets a specification reference for a given identifier from the list of references.

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


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