net.sourceforge.ccxjc.it.model.prot.collections.valueclass.jomc
Class Specification

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.prot.collections.valueclass.jomc.ModelObject
      extended by net.sourceforge.ccxjc.it.model.prot.collections.valueclass.jomc.Specification
All Implemented Interfaces:
Serializable, Cloneable

public class Specification
extends ModelObject
implements Serializable, Cloneable

Specification meta-data.

A specification consists of the properties identifier, vendor, description and version. Property identifier holds an identifier uniquely identifying the specification in a set of specifications. Property vendor holds vendor information for the vendor providing the specification. Property description holds a textual description and property version holds a textual version of the specification.

Property multiplicity specifies the number of implementations allowed to exist among a set of modules. A specification with Multiplicity.ONE specifies that no more than one implementation of the specification is allowed to exist among a set of modules (including none). A specification with Multiplicity.MANY specifies that multiple implementations of the specification are allowed to exist among a set of modules (including none).

Property scope specifies the scope the specification applies to. In multiton scope, a new object is created whenever requested. In context scope, objects are bound to a system's context. An object is only created if not already available in context. In singleton scope, objects are bound to a system's single instance store. An object is only created if not already available in that single instance store.

See Also:
Serialized Form

Field Summary
protected  String identifier
           
protected  Multiplicity multiplicity
           
protected  Properties properties
           
protected  Scope scope
           
protected  String vendor
           
protected  String version
           
 
Fields inherited from class net.sourceforge.ccxjc.it.model.prot.collections.valueclass.jomc.ModelObject
authors, createDate, documentation, modelVersion
 
Constructor Summary
Specification()
          Creates a new net.sourceforge.ccxjc.it.model.prot.collections.valueclass.jomc.Specification instance.
Specification(Specification o)
          Creates a new net.sourceforge.ccxjc.it.model.prot.collections.valueclass.jomc.Specification instance by copying a given instance.
 
Method Summary
 Specification clone()
          Creates and returns a copy of this object.
 String getIdentifier()
          The identifier of this specification.
 Multiplicity getMultiplicity()
          The mandatory implementation multiplicity among a set of modules of this specification.
 Properties getProperties()
          Properties of this specification.
 Scope getScope()
          Scope this specification applies to.
 String getVendor()
          The presentation vendor of this specification.
 String getVersion()
          The version of this specification.
 void setIdentifier(String value)
          Sets the value of the identifier property.
 void setMultiplicity(Multiplicity value)
          Sets the value of the multiplicity property.
 void setProperties(Properties value)
          Sets the value of the properties property.
 void setScope(Scope value)
          Sets the value of the scope property.
 void setVendor(String value)
          Sets the value of the vendor property.
 void setVersion(String value)
          Sets the value of the version property.
 
Methods inherited from class net.sourceforge.ccxjc.it.model.prot.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

identifier

protected String identifier

vendor

protected String vendor

version

protected String version

multiplicity

protected Multiplicity multiplicity

scope

protected Scope scope
Constructor Detail

Specification

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


Specification

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

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

getProperties

public Properties getProperties()
Properties of this specification.

Returns:
possible object is Properties

setProperties

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

Parameters:
value - allowed object is Properties

getIdentifier

public String getIdentifier()
The identifier of this specification.

Returns:
possible object is String

setIdentifier

public void setIdentifier(String value)
Sets the value of the identifier property.

Parameters:
value - allowed object is String

getVendor

public String getVendor()
The presentation vendor of this specification.

Returns:
possible object is String

setVendor

public void setVendor(String value)
Sets the value of the vendor property.

Parameters:
value - allowed object is String

getVersion

public String getVersion()
The version of this specification.

Returns:
possible object is String

setVersion

public void setVersion(String value)
Sets the value of the version property.

Parameters:
value - allowed object is String

getMultiplicity

public Multiplicity getMultiplicity()
The mandatory implementation multiplicity among a set of modules of this specification. A multiplicity equal to Multiplicity.ONE specifies exactly one implementation of the specification must exist among a set of modules. A multiplicity equal to Multiplicity.MANY specifies that many implementations are allowed to exist among a set of modules (including none).

Returns:
possible object is Multiplicity

setMultiplicity

public void setMultiplicity(Multiplicity value)
Sets the value of the multiplicity property.

Parameters:
value - allowed object is Multiplicity

getScope

public Scope getScope()
Scope this specification applies to. Scope.MULTITON scope specifies that a new implementation instance is to be created each time requested. Scope.CONTEXT scope specifies that implementation instances are to be bound to a system's context. Scope.SINGLETON scope specifies that implementation instances are to be bound to a system's single instance store.

Returns:
possible object is Scope

setScope

public void setScope(Scope value)
Sets the value of the scope property.

Parameters:
value - allowed object is Scope

clone

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

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


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