Class TemplateDescriptor
- java.lang.Object
-
- org.apache.maven.archetype.old.descriptor.TemplateDescriptor
-
public class TemplateDescriptor extends java.lang.ObjectContains the attributes of an archetype's template (either a source or resource file). The attributes indicate if the template should be filtered and it's encoding.
-
-
Constructor Summary
Constructors Constructor Description TemplateDescriptor()Creates a new instance ofTemplateDescriptorthat should be filtered and has the default encoding.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEncoding()Returns the name of the encoding of the template file (e.g.booleanisFiltered()Returnstrueif the template should be filtered andfalseotherwise.voidsetEncoding(java.lang.String encoding)Sets the name of the encoding of the template file.voidsetFiltered(boolean filtered)Defines whether the template should be filtered (processed by Velocity) or not.
-
-
-
Method Detail
-
isFiltered
public boolean isFiltered()
Returnstrueif the template should be filtered andfalseotherwise.- Returns:
trueif the template should be filtered andfalseotherwise.
-
setFiltered
public void setFiltered(boolean filtered)
Defines whether the template should be filtered (processed by Velocity) or not.- Parameters:
filtered-trueif it should be processed by Velocity andfalesotherwise.
-
getEncoding
public java.lang.String getEncoding()
Returns the name of the encoding of the template file (e.g.us-ascci,utf-8,iso-8859-1).- Returns:
- the name of the encoding of the template file.
-
setEncoding
public void setEncoding(java.lang.String encoding) throws java.nio.charset.IllegalCharsetNameException, java.nio.charset.UnsupportedCharsetExceptionSets the name of the encoding of the template file.- Parameters:
encoding- New value of property encoding.- Throws:
java.nio.charset.IllegalCharsetNameException- if the given charset name is illegaljava.nio.charset.UnsupportedCharsetException- if no support for the named encoding is available in this instance of the Java virtual machine
-
-