org.figure8.join.businessobjects.artifact
Class Component

java.lang.Object
  extended by org.figure8.join.core.EntityObject
      extended by org.figure8.join.businessobjects.artifact.Component
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Artifact

public class Component
extends EntityObject
implements Artifact

Version:
$Revision: 1.3 $
Author:
Laurent Broudoux
See Also:
Release, Assembly, ComponentType, Serialized Form

Constructor Summary
Component()
          Creates a new instance of Component
Component(java.lang.String versionInfo, long size, ComponentType type)
          Creates a new instance of Component with mandatory attributes
 
Method Summary
 java.util.List getAssemblies()
           
 Assembly getAssembly()
           
 java.util.List getBuilds()
           
 java.lang.String getCategoryInfo()
          Return the category information on this component, ie : the key of its associated ComponentType
 ComponentType getComponentType()
           
 java.util.Date getCreationDate()
           
 java.lang.String getKey()
           
 Release getRelease()
          Retrieve the release that has cause this artifact creation
 long getSize()
           
 java.lang.String getUniqueId()
          Retrieve the unique identifier of this artifact.
 java.lang.String getVersionInfo()
          Retrieve the version information on this component.
 void setAssemblies(java.util.List assemblies)
           
 void setAssembly(Assembly assembly)
           
 void setBuilds(java.util.List builds)
           
 void setComponentType(ComponentType type)
           
 void setCreationDate(java.util.Date creationDate)
           
 void setKey(java.lang.String key)
           
 void setSize(long size)
           
 void setVersionInfo(java.lang.String info)
           
 
Methods inherited from class org.figure8.join.core.EntityObject
clone, equals, getId, hashCode, isTransient
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Component

public Component()
Creates a new instance of Component


Component

public Component(java.lang.String versionInfo,
                 long size,
                 ComponentType type)
Creates a new instance of Component with mandatory attributes

Parameters:
versionInfo - Information on this component version
size - The size of this component (in bytes)
type - The type of this component
Method Detail

getKey

public java.lang.String getKey()
Returns:
This component unique key

setKey

public void setKey(java.lang.String key)
Parameters:
key - This component unique key

setVersionInfo

public void setVersionInfo(java.lang.String info)
Parameters:
info - Version information for this component

getCreationDate

public java.util.Date getCreationDate()
Returns:
Creation date of this component

setCreationDate

public void setCreationDate(java.util.Date creationDate)
Parameters:
creationDate - The component creation timestamp

getSize

public long getSize()
Returns:
The size of this component (in bytes)

setSize

public void setSize(long size)
Parameters:
size - The size of this component (in bytes)

getBuilds

public java.util.List getBuilds()
Returns:
A set of Build objects containing this component

setBuilds

public void setBuilds(java.util.List builds)
Parameters:
builds - A set of builds containing this component

getAssemblies

public java.util.List getAssemblies()
Returns:
A set of Assembly objects containing this component

setAssemblies

public void setAssemblies(java.util.List assemblies)
Parameters:
assemblies - A set of assemblies containing this component

getAssembly

public Assembly getAssembly()
Returns:
The assembly that has generated this component

setAssembly

public void setAssembly(Assembly assembly)
Parameters:
assembly - The assembly that has generated this component

getComponentType

public ComponentType getComponentType()
Returns:
The type of this deliverable

setComponentType

public void setComponentType(ComponentType type)
Parameters:
type - The type of this deliverable

getUniqueId

public java.lang.String getUniqueId()
Retrieve the unique identifier of this artifact. (ie : it's key)

Specified by:
getUniqueId in interface Artifact
Returns:
The unique identifier of this component

getVersionInfo

public java.lang.String getVersionInfo()
Retrieve the version information on this component.

Specified by:
getVersionInfo in interface Artifact
Returns:
Version information as character string

getCategoryInfo

public java.lang.String getCategoryInfo()
Return the category information on this component, ie : the key of its associated ComponentType

Specified by:
getCategoryInfo in interface Artifact
Returns:
The category information as character string

getRelease

public Release getRelease()
Retrieve the release that has cause this artifact creation

Specified by:
getRelease in interface Artifact
Returns:
The release this artifact has been realized for


Copyright © 2005-2008 Join. All Rights Reserved.