net.sf.jpkgmk.prototype
Interface PrototypeEntry

All Superinterfaces:
LineProvider
All Known Implementing Classes:
AbstractPrototypeEntry, AbstractPrototypeEntryDevice, PrototypeEntryBlockDevice, PrototypeEntryCharacterDevice, PrototypeEntryCommand, PrototypeEntryCommandDefault, PrototypeEntryCommandInclude, PrototypeEntryCommandSearch, PrototypeEntryCommandVariable, PrototypeEntryComment, PrototypeEntryDirectory, PrototypeEntryDirectoryExclusive, PrototypeEntryFile, PrototypeEntryFileEditable, PrototypeEntryFileVolatile, PrototypeEntryInfo, PrototypeEntryLink, PrototypeEntryPipe, PrototypeEntrySymbolicLink

public interface PrototypeEntry
extends LineProvider

Represents one line of a prototype file

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 $

Method Summary
 void create(java.io.File targetDir, VariableResolver variableResolver)
          Copies the file of this prototype entry into the target directory
 java.util.List<PkgMapEntry> createPkgMapEntry(java.io.File targetDir, VariableResolver variableResolver)
          Creates the PkgMapEntry objects for this PrototypeEntry.
 PrototypeEntryType getType()
           
 
Methods inherited from interface net.sf.jpkgmk.LineProvider
getLine, write
 

Method Detail

getType

PrototypeEntryType getType()
Returns:
Returns the type of this entry

create

void create(java.io.File targetDir,
            VariableResolver variableResolver)
            throws java.io.IOException
Copies the file of this prototype entry into the target directory

Parameters:
targetDir -
variableResolver - The variable resolver to be used for expanding variables within the paths of this entry
Throws:
java.io.IOException

createPkgMapEntry

java.util.List<PkgMapEntry> createPkgMapEntry(java.io.File targetDir,
                                              VariableResolver variableResolver)
Creates the PkgMapEntry objects for this PrototypeEntry.

Parameters:
targetDir - The directory in which the pkgMap entry is located
variableResolver -
Returns:
The list of all created PkgMapEntry objects created by this prototype entry. Can be empty.


Copyright © 2007-2008. All Rights Reserved.