org.apache.maven.archetype.model
Class Resource

java.lang.Object
  extended by org.apache.maven.archetype.model.Resource
All Implemented Interfaces:
Serializable

public class Resource
extends Object
implements Serializable

Describes a resource file.

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

Constructor Summary
Resource()
           
 
Method Summary
 String getEncoding()
          Get the encoding to be used when reading/writing this file.
 String getFile()
          Get the resource file.
 boolean isFiltered()
          Get a resource can be filtered, which means the file will be used as Velocity template.
 void setEncoding(String encoding)
          Set the encoding to be used when reading/writing this file.
 void setFile(String file)
          Set the resource file.
 void setFiltered(boolean filtered)
          Set a resource can be filtered, which means the file will be used as Velocity template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Method Detail

getEncoding

public String getEncoding()
Get the encoding to be used when reading/writing this file. Platform encoding is used by default, or ISO-8859-1 when filename ends in .properties

Returns:
String

getFile

public String getFile()
Get the resource file.

Returns:
String

isFiltered

public boolean isFiltered()
Get a resource can be filtered, which means the file will be used as Velocity template. It can be non-filtered, which means the file will be copied without modification.

Returns:
boolean

setEncoding

public void setEncoding(String encoding)
Set the encoding to be used when reading/writing this file. Platform encoding is used by default, or ISO-8859-1 when filename ends in .properties

Parameters:
encoding -

setFile

public void setFile(String file)
Set the resource file.

Parameters:
file -

setFiltered

public void setFiltered(boolean filtered)
Set a resource can be filtered, which means the file will be used as Velocity template. It can be non-filtered, which means the file will be copied without modification.

Parameters:
filtered -


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.