net.sf.jpkgmk.prototype
Class PrototypeEntryComment
java.lang.Object
net.sf.jpkgmk.AbstractLineProvider
net.sf.jpkgmk.prototype.PrototypeEntryComment
- All Implemented Interfaces:
- LineProvider, PrototypeEntry
public class PrototypeEntryComment
- extends AbstractLineProvider
- implements PrototypeEntry
- Since:
- 1.0
- Version:
- $Revision: 2 $ $Date: 2008-08-20 21:14:19 +0200 (Mi, 20 Aug 2008) $
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PrototypeEntryComment
public PrototypeEntryComment(java.lang.String comment)
- Parameters:
comment
-
isHasWhitespaceSeparator
public boolean isHasWhitespaceSeparator()
- Returns:
setHasWhitespaceSeparator
public void setHasWhitespaceSeparator(boolean hasWhitespaceSeparator)
- Parameters:
hasWhitespaceSeparator
- If the "!" is separated by a whitespace from the rest of the line or not.
getLine
public java.lang.String getLine()
- Specified by:
getLine
in interface LineProvider
- Returns:
- The prototype line
getType
public PrototypeEntryType getType()
- Specified by:
getType
in interface PrototypeEntry
- Returns:
- Returns the type of this entry
create
public void create(java.io.File basedir,
VariableResolver variableResolver)
throws java.io.IOException
- Description copied from interface:
PrototypeEntry
- Copies the file of this prototype entry into the target directory
- Specified by:
create
in interface PrototypeEntry
variableResolver
- The variable resolver to be used for expanding variables within the paths of this entry
- Throws:
java.io.IOException
createPkgMapEntry
public java.util.List<PkgMapEntry> createPkgMapEntry(java.io.File basedir,
VariableResolver variableResolver)
- Description copied from interface:
PrototypeEntry
- Creates the
PkgMapEntry
objects for this PrototypeEntry
.
- Specified by:
createPkgMapEntry
in interface PrototypeEntry
- Parameters:
basedir
- The directory in which the pkgMap entry is located
- Returns:
- The list of all created
PkgMapEntry
objects created by this prototype entry. Can be empty.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2007-2008. All Rights Reserved.