Package org.apache.maven.archetype.model
Class Resource
java.lang.Object
org.apache.maven.archetype.model.Resource
- All Implemented Interfaces:
- Serializable
Describes a resource file.
- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet the encoding to be used when reading/writing this file.getFile()Get the resource file.booleanGet a resource can be filtered, which means the file will be used as Velocity template.voidsetEncoding(String encoding) Set the encoding to be used when reading/writing this file.voidSet the resource file.voidsetFiltered(boolean filtered) Set a resource can be filtered, which means the file will be used as Velocity template.
- 
Constructor Details- 
Resourcepublic Resource()
 
- 
- 
Method Details- 
getEncodingGet 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
 
- 
getFileGet the resource file.- Returns:
- String
 
- 
isFilteredpublic 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
 
- 
setEncodingSet 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- a encoding object.
 
- 
setFileSet the resource file.- Parameters:
- file- a file object.
 
- 
setFilteredpublic 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- a filtered object.
 
 
-