org.jomc.model
Class Dependencies

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

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-10-02T06:07:50+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public class Dependencies
extends ModelObject
implements Cloneable

List of dependencies.

See Also:
Dependency

Field Summary
protected  List<Dependency> dependency
           
 
Fields inherited from class org.jomc.model.ModelObject
authors, createDate, deprecated, documentation, modelVersion
 
Constructor Summary
Dependencies()
          Creates a new Dependencies instance.
Dependencies(Dependencies o)
          Creates a new Dependencies instance by deeply copying a given instance.
 
Method Summary
 Dependencies clone()
          Creates and returns a deep copy of this object.
private static void copyDependency(List<Dependency> source, List<Dependency> target)
          Copies all values of property Dependency deeply.
 List<Dependency> getDependency()
          Gets the value of the dependency property.
 Dependency getDependency(String name)
          Gets a dependency for a given name from the list of dependencies.
 
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

dependency

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-10-02T06:07:50+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<Dependency> dependency
Constructor Detail

Dependencies

public Dependencies()
Creates a new Dependencies instance.


Dependencies

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

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

getDependency

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-10-02T06:07:50+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<Dependency> getDependency()
Gets the value of the dependency 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 dependency property.

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

    getDependency().add(newItem);
 

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


copyDependency

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-10-02T06:07:50+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
private static void copyDependency(List<Dependency> source,
                                                              List<Dependency> target)
Copies all values of property Dependency 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-10-02T06:07:50+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public Dependencies clone()
Creates and returns a deep copy of this object.

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

getDependency

public Dependency getDependency(String name)
Gets a dependency for a given name from the list of dependencies.

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


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