org.acmsl.antmake
Class ConfigureInTemplate

java.lang.Object
  |
  +--org.acmsl.antmake.ConfigureInTemplate

public abstract class ConfigureInTemplate
extends java.lang.Object

Template to generate configure.in files.

Version:
$Revision: 1.5 $
Author:
Jose San Leandro

Field Summary
static java.lang.String DEFAULT_BODY
          The default Make-Rules body.
static java.lang.String DEFAULT_HEADER
          The default header.
static java.lang.String DEFAULT_MAKEFILE_SUBTEMPLATE
          The default makefile subtemplate.
 
Constructor Summary
ConfigureInTemplate(java.lang.String projectName, java.lang.String projectVersion)
          Builds a ConfigureInTemplate using given information.
ConfigureInTemplate(java.lang.String header, java.lang.String body, java.lang.String makefileSubtemplate, java.lang.String projectName, java.lang.String projectVersion)
          Builds a ConfigureInTemplate using given information.
 
Method Summary
 void addPackage(java.lang.String concretePackage)
          Adds a package.
 java.lang.String getBody()
          Retrieves the body.
 java.lang.String getHeader()
          Retrieves the header.
 java.lang.String getMakefileSubtemplate()
          Retrieves the makefile subtemplate.
protected  java.util.Collection getPackages()
          Retrieves the packages.
 java.lang.String getProjectName()
          Retrieves the project name.
 java.lang.String getProjectVersion()
          Retrieves the project version.
protected  void setBody(java.lang.String body)
          Specifies the body.
protected  void setHeader(java.lang.String header)
          Specifies the header.
protected  void setMakefileSubtemplate(java.lang.String makefileSubtemplate)
          Specifies the makefile subtemplate.
protected  void setPackages(java.util.Collection packages)
          Specifies the packages.
protected  void setProjectName(java.lang.String projectName)
          Specifies the project name.
protected  void setProjectVersion(java.lang.String projectVersion)
          Specifies the project version.
 java.lang.String toString()
          Retrieves the weaved configure.in file contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_HEADER

public static final java.lang.String DEFAULT_HEADER
The default header.

See Also:
Constant Field Values

DEFAULT_BODY

public static final java.lang.String DEFAULT_BODY
The default Make-Rules body.

See Also:
Constant Field Values

DEFAULT_MAKEFILE_SUBTEMPLATE

public static final java.lang.String DEFAULT_MAKEFILE_SUBTEMPLATE
The default makefile subtemplate.

See Also:
Constant Field Values
Constructor Detail

ConfigureInTemplate

public ConfigureInTemplate(java.lang.String header,
                           java.lang.String body,
                           java.lang.String makefileSubtemplate,
                           java.lang.String projectName,
                           java.lang.String projectVersion)
Builds a ConfigureInTemplate using given information.

Parameters:
header - the header.
body - the body.
makefileSubtemplate - the makefile subtemplate.
projectName - the project name.
projectVersion - the project version.

ConfigureInTemplate

public ConfigureInTemplate(java.lang.String projectName,
                           java.lang.String projectVersion)
Builds a ConfigureInTemplate using given information.

Parameters:
projectName - the project name.
projectVersion - the project version.
Method Detail

setHeader

protected void setHeader(java.lang.String header)
Specifies the header.

Parameters:
header - the new header.

getHeader

public java.lang.String getHeader()
Retrieves the header.

Returns:
such information.

setBody

protected void setBody(java.lang.String body)
Specifies the body.

Parameters:
body - the new body.

getBody

public java.lang.String getBody()
Retrieves the body.

Returns:
such information.

setMakefileSubtemplate

protected void setMakefileSubtemplate(java.lang.String makefileSubtemplate)
Specifies the makefile subtemplate.

Parameters:
makefileSubtemplate - the new makefile subtemplate.

getMakefileSubtemplate

public java.lang.String getMakefileSubtemplate()
Retrieves the makefile subtemplate.

Returns:
such information.

setProjectName

protected void setProjectName(java.lang.String projectName)
Specifies the project name.

Parameters:
projectName - the new project name.

getProjectName

public java.lang.String getProjectName()
Retrieves the project name.

Returns:
such information.

setProjectVersion

protected void setProjectVersion(java.lang.String projectVersion)
Specifies the project version.

Parameters:
projectVersion - the new project version.

getProjectVersion

public java.lang.String getProjectVersion()
Retrieves the project version.

Returns:
such information.

setPackages

protected void setPackages(java.util.Collection packages)
Specifies the packages.


getPackages

protected java.util.Collection getPackages()
Retrieves the packages.

Returns:
such collection.

addPackage

public void addPackage(java.lang.String concretePackage)
Adds a package.

Parameters:
concretePackage - the package to add.

toString

public java.lang.String toString()
Retrieves the weaved configure.in file contents.

Overrides:
toString in class java.lang.Object
Returns:
such contents.


Copyright © 2004 ACM S.L.. All Rights Reserved.