Package org.apache.maven.archetype.model
Class Resource
- java.lang.Object
-
- org.apache.maven.archetype.model.Resource
-
- All Implemented Interfaces:
java.io.Serializable
public class Resource extends java.lang.Object implements java.io.SerializableDescribes a resource file.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringencodingThe encoding to be used when reading/writing this file.private java.lang.StringfileThe resource file.private booleanfilteredA resource can be filtered, which means the file will be used as Velocity template.
-
Constructor Summary
Constructors Constructor Description Resource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEncoding()Get the encoding to be used when reading/writing this file.java.lang.StringgetFile()Get the resource file.booleanisFiltered()Get a resource can be filtered, which means the file will be used as Velocity template.voidsetEncoding(java.lang.String encoding)Set the encoding to be used when reading/writing this file.voidsetFile(java.lang.String file)Set the resource file.voidsetFiltered(boolean filtered)Set a resource can be filtered, which means the file will be used as Velocity template.
-
-
-
Field Detail
-
file
private java.lang.String file
The resource file.
-
encoding
private java.lang.String encoding
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
-
filtered
private boolean filtered
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.
-
-
Method Detail
-
getEncoding
public java.lang.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 java.lang.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(java.lang.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(java.lang.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-
-
-