net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc
Class Dependency

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.ModelObject
      extended by net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.SpecificationReference
          extended by net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.ImplementationReference
              extended by net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.Dependency
All Implemented Interfaces:
Serializable, Cloneable

public class Dependency
extends ImplementationReference
implements Serializable, Cloneable

Dependency meta-data.

A dependency consists of a name uniquely identifying the dependency in a set of dependencies and pairs a specification with corresponding implementations from a set of available implementations. Properties set with a dependency overwrite properties of the dependencies specification. The bound flag indicates if the instance of the dependency is bound to the declaring implementation. The optional flag indicates an optional dependency.

See Also:
Serialized Form

Field Summary
protected  Boolean bound
           
protected  String name
           
protected  Boolean optional
           
protected  Properties properties
           
 
Fields inherited from class net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.ImplementationReference
implementationName
 
Fields inherited from class net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.SpecificationReference
identifier, version
 
Fields inherited from class net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.ModelObject
authors, createDate, documentation, modelVersion
 
Constructor Summary
Dependency()
          Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.Dependency instance.
Dependency(Dependency o)
          Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.Dependency instance by copying a given instance.
 
Method Summary
 Dependency clone()
          Creates and returns a copy of this object.
 String getName()
          Name of this dependency.
 Properties getProperties()
          Properties of this dependency.
 boolean isBound()
          True, if this dependency is bound to its object; false, if not.
 boolean isOptional()
          True, if this dependency is optional; false, if not.
 void setBound(Boolean value)
          Sets the value of the bound property.
 void setName(String value)
          Sets the value of the name property.
 void setOptional(Boolean value)
          Sets the value of the optional property.
 void setProperties(Properties value)
          Sets the value of the properties property.
 
Methods inherited from class net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.ImplementationReference
getImplementationName, setImplementationName
 
Methods inherited from class net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.SpecificationReference
getIdentifier, getVersion, setIdentifier, setVersion
 
Methods inherited from class net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.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

properties

protected Properties properties

name

protected String name

bound

protected Boolean bound

optional

protected Boolean optional
Constructor Detail

Dependency

public Dependency()
Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.Dependency instance.


Dependency

public Dependency(Dependency o)
Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.jomc.Dependency instance by copying a given instance.

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

getProperties

public Properties getProperties()
Properties of this dependency.

Returns:
possible object is Properties

setProperties

public void setProperties(Properties value)
Sets the value of the properties property.

Parameters:
value - allowed object is Properties

getName

public String getName()
Name of this dependency.

Returns:
possible object is String

setName

public void setName(String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

isBound

public boolean isBound()
True, if this dependency is bound to its object; false, if not.

Returns:
possible object is Boolean

setBound

public void setBound(Boolean value)
Sets the value of the bound property.

Parameters:
value - allowed object is Boolean

isOptional

public boolean isOptional()
True, if this dependency is optional; false, if not.

Returns:
possible object is Boolean

setOptional

public void setOptional(Boolean value)
Sets the value of the optional property.

Parameters:
value - allowed object is Boolean

clone

public Dependency clone()
Creates and returns a copy of this object.

Overrides:
clone in class ImplementationReference
Returns:
A clone of this instance.


Copyright © 2009 The CC-XJC Community. All Rights Reserved.