com.redstarhackers.craftsman.typedefs
Class Library

java.lang.Object
  extended by DataType
      extended by com.redstarhackers.craftsman.typedefs.Library
Direct Known Subclasses:
CompositeLibrary, ModuleDependencyLibrary

public class Library
extends DataType

A data-type for defining and accessing libraries for use in building the module or the module's unit tests. The library task takes care of defining a FileSet and a Path for the given library.

Version:
$Revision: 3071 $
Author:
$Author: kostya $

Constructor Summary
Library()
          Default constructor.
 
Method Summary
protected  void createLibraryComponents()
          Perform the work of the task.
 boolean equals(java.lang.Object rhs)
          Returns whether the right-hand-side object is equal to this instance.
 java.io.File getConfigFile()
           
 java.io.File getDir()
           
 java.io.File getExternalDir()
           
 FileSet getFileSet()
           
 java.lang.String getFileSetId()
           
 LibraryLinkingType getLinkingType()
           
 java.lang.String getName()
           
 Path getPath()
           
 java.lang.String getPathId()
           
static Library getReferencedLibrary(Project project, java.lang.String id)
           
 int hashCode()
          Implements hashCode() for the identifying or significant fields.
 void initialize()
           
 boolean isInitialized()
           
 boolean isTestLib()
           
protected  void registerFileSet()
           
protected  void registerPath()
           
protected  void setConfigFile(java.io.File configFile)
           
protected  void setDir(java.io.File libraryDir)
           
 void setExternalDir(java.io.File val)
           
 void setFileSet(FileSet filesetVal)
           
protected  void setInitialized(boolean val)
           
 void setLinkingType(LibraryLinkingType linkingType)
           
 void setName(java.lang.String nameVal)
           
protected  void setPath(Path pathVal)
           
 void setTestLib(boolean val)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Library

public Library()
Default constructor.

Method Detail

getReferencedLibrary

public static Library getReferencedLibrary(Project project,
                                           java.lang.String id)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String nameVal)

getExternalDir

public java.io.File getExternalDir()

setExternalDir

public void setExternalDir(java.io.File val)

getPath

public Path getPath()

getPathId

public java.lang.String getPathId()

getFileSet

public FileSet getFileSet()

setFileSet

public void setFileSet(FileSet filesetVal)

getFileSetId

public java.lang.String getFileSetId()

isTestLib

public boolean isTestLib()

setTestLib

public void setTestLib(boolean val)

getDir

public java.io.File getDir()
Returns:
Returns the libraryDir.

getConfigFile

public java.io.File getConfigFile()
Returns:
Returns the configFile.

getLinkingType

public LibraryLinkingType getLinkingType()
Returns:
the linkingType

setLinkingType

public void setLinkingType(LibraryLinkingType linkingType)
Parameters:
linkingType - the linkingType to set

isInitialized

public boolean isInitialized()

initialize

public void initialize()

equals

public boolean equals(java.lang.Object rhs)
Returns whether the right-hand-side object is equal to this instance.

Returns:
true if they are considered equal, false otherwise.

hashCode

public int hashCode()
Implements hashCode() for the identifying or significant fields.

Returns:
the hash code value.

toString

public java.lang.String toString()

setInitialized

protected void setInitialized(boolean val)

setPath

protected void setPath(Path pathVal)

registerPath

protected void registerPath()

registerFileSet

protected void registerFileSet()

setDir

protected void setDir(java.io.File libraryDir)
Parameters:
libraryDir - The libraryDir to set.

setConfigFile

protected void setConfigFile(java.io.File configFile)
Parameters:
configFile - The configFile to set.

createLibraryComponents

protected void createLibraryComponents()
Perform the work of the task.