org.codehaus.mojo.javascript.assembler
Class Assembler

java.lang.Object
  extended by org.codehaus.mojo.javascript.assembler.Assembler
All Implemented Interfaces:
java.io.Serializable

public class Assembler
extends java.lang.Object
implements java.io.Serializable

An assembler defines a collection of files to be created in the packaging directory based on source scripts. Many script developer use fine grained scripts for development and merge them during release. The assembler describe the files to get merged and the ordering.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Assembler()
           
 
Method Summary
 void addScript(Script script)
          Method addScript.
 java.lang.String getModelEncoding()
          Method getModelEncoding.
 java.util.List getScripts()
          Method getScripts.
 void removeScript(Script script)
          Method removeScript.
 void setModelEncoding(java.lang.String modelEncoding)
          Set an encoding used for reading/writing the model.
 void setScripts(java.util.List scripts)
          Set specifies a merge to occur on a set of source files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assembler

public Assembler()
Method Detail

addScript

public void addScript(Script script)
Method addScript.

Parameters:
script -

getModelEncoding

public java.lang.String getModelEncoding()
Method getModelEncoding.

Returns:
the current encoding used when reading/writing this model

getScripts

public java.util.List getScripts()
Method getScripts.

Returns:
List

removeScript

public void removeScript(Script script)
Method removeScript.

Parameters:
script -

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)
Set an encoding used for reading/writing the model.

Parameters:
modelEncoding -

setScripts

public void setScripts(java.util.List scripts)
Set specifies a merge to occur on a set of source files.

Parameters:
scripts -


Copyright © 2011 SOFTEC sa. All Rights Reserved.