Method Summary |
|
public Cartridge | getCartridge() The cartridge that owns this resource. |
public String | getOutlet() Gets the logical location to which output from this resource will be written. |
public String | getOutputCondition() Gets the outputCondition that must evaluate to true in order for the template to be written. |
public File | getOutputLocation(Object[] arguments, File directory, String outputPattern) Returns the fully qualified name of the resource output to be written, this means: - the output pattern
has been translated
- the output directory name has been prepended
Parameters: arguments - any arguments to be inserted into the MessageFormat style messages. Parameters: directory - the directory to which output will be written. Parameters: outputPattern - if undefined, the value of Resource.getOutputPattern() will be used. |
public String | getOutputPattern() Gets the pattern that is used to build the name of the output file. |
public String | getPath() Gets the path to the cartridge resource. |
public boolean | isLastModifiedCheck() Whether or not a last modified check should be performed before writing the resource. |
public boolean | isOverwrite() Tells us whether output files produced by this resource should be overwritten if they already exist. |
public void | setCartridge(Cartridge cartridge) Sets the Cartridge parent to which this Resource belongs. |
public void | setLastModifiedCheck(boolean lastModifiedCheck) Sets whether or not a last modified check should be performed before writing the resource. |
public void | setOutlet(String outlet) Sets the logical location to which output from this resource will be written. |
public void | setOutputCondition(String outputCondition) Sets the outputCondition that must evaluate to true in order for the template to be written. |
public void | setOutputPattern(String outputPattern) Sets the pattern that is used to build the name of the output file. |
public void | setOverwrite(boolean overwrite) Sets whether output files produced by this resource should be overwritten if they already exist. |
public void | setPath(String path) Sets the path to the cartridge resource. |