| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.acmsl.antmake.TopMakefileAmTemplate
Template to generate top-level Makefile.am files.
| Field Summary | |
| static java.lang.String | DEFAULT_BODYThe default Make-Rules body. | 
| static java.lang.String | DEFAULT_HEADERThe default header. | 
| static java.lang.String | DEFAULT_JAR_DEPS_SUBTEMPLATEThe default jar deps subtemplate. | 
| Constructor Summary | |
| TopMakefileAmTemplate(java.lang.String projectName)Builds a TopMakefileAmTemplate using given information. | |
| TopMakefileAmTemplate(java.lang.String header,
                      java.lang.String body,
                      java.lang.String jarDepsSubtemplate,
                      java.lang.String projectName)Builds a TopMakefileAmTemplate using given information. | |
| Method Summary | |
| protected  java.util.Collection | add(java.util.Collection container,
    java.lang.String item)Adds an item to given collection.. | 
|  void | addLeafFolder(java.lang.String folder)Adds a leaf-level folder. | 
|  void | addPackage(java.lang.String concretePackage)Adds a package. | 
|  void | addTopFolder(java.lang.String folder)Adds a top-level folder. | 
|  java.lang.String | getBody()Retrieves the body. | 
|  java.lang.String | getHeader()Retrieves the header. | 
|  java.lang.String | getJarDepsSubtemplate()Retrieves the JAR_DEPS subtemplate. | 
| protected  java.util.Collection | getLeafFolders()Retrieves the leaf folders. | 
| protected  java.util.Collection | getPackages()Retrieves the packages. | 
|  java.lang.String | getProjectName()Retrieves the project name. | 
| protected  java.util.Collection | getTopFolders()Retrieves the top-level folders. | 
| protected  void | setBody(java.lang.String body)Specifies the body. | 
| protected  void | setHeader(java.lang.String header)Specifies the header. | 
| protected  void | setJarDepsSubtemplate(java.lang.String jarDepsSubtemplate)Specifies the JAR_DEPS subtemplate. | 
| protected  void | setLeafFolders(java.util.Collection folders)Specifies the leaf folders. | 
| protected  void | setPackages(java.util.Collection packages)Specifies the packages. | 
| protected  void | setProjectName(java.lang.String projectName)Specifies the project name. | 
| protected  void | setTopFolders(java.util.Collection folders)Specifies the top-level folders. | 
|  java.lang.String | toString()Retrieves the weaved top-level Makefile.am file contents. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String DEFAULT_HEADER
public static final java.lang.String DEFAULT_BODY
public static final java.lang.String DEFAULT_JAR_DEPS_SUBTEMPLATE
| Constructor Detail | 
public TopMakefileAmTemplate(java.lang.String header,
                             java.lang.String body,
                             java.lang.String jarDepsSubtemplate,
                             java.lang.String projectName)
header - the header.body - the body.jarDepsSubtemplate - the JAR_DEPS subtemplate.projectName - the project name.public TopMakefileAmTemplate(java.lang.String projectName)
projectName - the project name.| Method Detail | 
protected void setHeader(java.lang.String header)
header - the new header.public java.lang.String getHeader()
protected void setBody(java.lang.String body)
body - the new body.public java.lang.String getBody()
protected void setJarDepsSubtemplate(java.lang.String jarDepsSubtemplate)
jarDepsSubtemplate - the new subtemplate.public java.lang.String getJarDepsSubtemplate()
protected void setProjectName(java.lang.String projectName)
projectName - the new project name.public java.lang.String getProjectName()
protected void setTopFolders(java.util.Collection folders)
folders - the folder list.protected java.util.Collection getTopFolders()
public void addTopFolder(java.lang.String folder)
folder - the top-level folder to add.protected void setLeafFolders(java.util.Collection folders)
folders - the folder list.protected java.util.Collection getLeafFolders()
public void addLeafFolder(java.lang.String folder)
folder - the leaf folder to add.protected void setPackages(java.util.Collection packages)
packages - the package list.protected java.util.Collection getPackages()
public void addPackage(java.lang.String concretePackage)
concretePackage - the package to add.
protected java.util.Collection add(java.util.Collection container,
                                   java.lang.String item)
container - the collection.item - the item to add.
container was null.public java.lang.String toString()
toString in class java.lang.Object| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||