org.apache.maven.archetype.model
Class Source

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

public class Source
extends Object
implements Serializable

Describes a source file. Note that source files are always filtered, unlike resources that can be non-filtered.

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

Constructor Summary
Source()
           
 
Method Summary
 String getEncoding()
          Get the encoding to be used when reading/writing this file.
 String getFile()
          Get the source file.
 void setEncoding(String encoding)
          Set the encoding to be used when reading/writing this file.
 void setFile(String file)
          Set the source file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Source

public Source()
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 source file.

Returns:
String

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 source file.

Parameters:
file -


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