|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jpkgmk.AbstractLineProvider net.sf.jpkgmk.prototype.AbstractPrototypeEntry
public abstract class AbstractPrototypeEntry
Abstract class that can be used for the most of the prototype entries, for example files, directories, links ...
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_FILE_CLASS
|
Constructor Summary | |
---|---|
AbstractPrototypeEntry(java.lang.Integer part,
PrototypeEntryType fileType,
java.lang.String fileClass,
java.lang.String entryPath,
java.lang.String entryPathSource,
java.lang.Integer major,
java.lang.Integer minor,
java.lang.String mode,
java.lang.String owner,
java.lang.String group,
PrototypeEntryCommandDefault entryCommandDefault)
Full constructor taking all possible arguments |
|
AbstractPrototypeEntry(java.lang.Integer part,
PrototypeEntryType fileType,
java.lang.String fileClass,
java.lang.String entryPath,
java.lang.String entryPathSource,
java.lang.String mode,
java.lang.String owner,
java.lang.String group,
PrototypeEntryCommandDefault entryCommandDefault)
|
|
AbstractPrototypeEntry(PrototypeEntryType fileType,
java.lang.String entryPath)
Constructor taking the mandatory arguments to create a prototype file entry |
|
AbstractPrototypeEntry(PrototypeEntryType fileType,
java.lang.String entryPath,
java.lang.String mode,
java.lang.String owner,
java.lang.String group)
|
|
AbstractPrototypeEntry(PrototypeEntryType fileType,
java.lang.String fileClass,
java.lang.String entryPath,
java.lang.String entryPathSource,
java.lang.String mode,
java.lang.String owner,
java.lang.String group,
PrototypeEntryCommandDefault entryCommandDefault)
|
Method Summary | |
---|---|
protected java.io.File |
buildAbsolutePath(java.io.File targetDir,
java.lang.String prototypeEntryPath)
|
protected abstract void |
create(java.io.File targetDir,
java.lang.String entryPathExpanded,
java.lang.String entryPathSourceExpanded)
Copies the file of this prototype entry into the target directory |
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 . |
protected abstract PkgMapEntry |
createPkgMapEntry(java.lang.Integer part,
PkgMapEntryType resultType,
java.lang.String entryClass,
java.lang.String entryPath,
java.lang.String entryPathSource,
java.lang.Integer major,
java.lang.Integer minor,
java.lang.String mode,
java.lang.String owner,
java.lang.String group,
java.io.File targetDir)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getEntryPath()
|
java.lang.String |
getEntryPathSource()
|
java.lang.String |
getFileClass()
|
java.lang.String |
getGroup()
|
java.lang.String |
getLine()
|
java.lang.Integer |
getMajor()
|
java.lang.Integer |
getMinor()
|
java.lang.String |
getMode()
|
java.lang.String |
getOwner()
|
PrototypeEntryType |
getType()
|
int |
hashCode()
|
protected java.lang.String |
resolveGroup()
|
protected java.lang.String |
resolveMode()
|
protected java.lang.String |
resolveOwner()
|
java.lang.String |
toString()
|
Methods inherited from class net.sf.jpkgmk.AbstractLineProvider |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.jpkgmk.LineProvider |
---|
write |
Field Detail |
---|
public static final java.lang.String DEFAULT_FILE_CLASS
Constructor Detail |
---|
public AbstractPrototypeEntry(PrototypeEntryType fileType, java.lang.String entryPath)
fileType
- value
- public AbstractPrototypeEntry(PrototypeEntryType fileType, java.lang.String entryPath, java.lang.String mode, java.lang.String owner, java.lang.String group)
fileType
- fileClass
- entryPath
- the target path in that this file/directory should have in the packagemode
- owner
- group
- public AbstractPrototypeEntry(PrototypeEntryType fileType, java.lang.String fileClass, java.lang.String entryPath, java.lang.String entryPathSource, java.lang.String mode, java.lang.String owner, java.lang.String group, PrototypeEntryCommandDefault entryCommandDefault)
fileType
- fileClass
- entryPath
- the target path in that this file/directory should have in the packageentryPathSource
- path to the local source filemode
- owner
- group
- public AbstractPrototypeEntry(java.lang.Integer part, PrototypeEntryType fileType, java.lang.String fileClass, java.lang.String entryPath, java.lang.String entryPathSource, java.lang.String mode, java.lang.String owner, java.lang.String group, PrototypeEntryCommandDefault entryCommandDefault)
part
- fileType
- fileClass
- entryPath
- the target path that this file/directory should have in the created packageentryPathSource
- path to the local source filemode
- owner
- group
- public AbstractPrototypeEntry(java.lang.Integer part, PrototypeEntryType fileType, java.lang.String fileClass, java.lang.String entryPath, java.lang.String entryPathSource, java.lang.Integer major, java.lang.Integer minor, java.lang.String mode, java.lang.String owner, java.lang.String group, PrototypeEntryCommandDefault entryCommandDefault)
part
- Optional part numberfileType
- fileClass
- entryPath
- the target path in that this file/directory should have in the packageentryPathSource
- path to the local source filemajor
- The major device number. The field is only specified for block or character special devices.minor
- The minor device number. The field is only specified for block or character special devices.mode
- owner
- group
- entryCommandDefault
- Method Detail |
---|
public java.lang.String getLine()
getLine
in interface LineProvider
public PrototypeEntryType getType()
getType
in interface PrototypeEntry
public java.lang.String getEntryPath()
public java.lang.String getEntryPathSource()
public java.lang.String getFileClass()
public java.lang.String getMode()
public java.lang.String getOwner()
public java.lang.String getGroup()
public java.lang.Integer getMajor()
public java.lang.Integer getMinor()
protected final java.lang.String resolveMode()
protected final java.lang.String resolveOwner()
protected final java.lang.String resolveGroup()
protected java.io.File buildAbsolutePath(java.io.File targetDir, java.lang.String prototypeEntryPath)
public final void create(java.io.File targetDir, VariableResolver variableResolver) throws java.io.IOException
create
in interface PrototypeEntry
variableResolver
- The variable resolver to be used for expanding variables within the paths of this entry
java.io.IOException
PrototypeEntry.create(java.io.File, VariableResolver)
protected abstract void create(java.io.File targetDir, java.lang.String entryPathExpanded, java.lang.String entryPathSourceExpanded) throws java.io.IOException
java.io.IOException
public java.util.List<PkgMapEntry> createPkgMapEntry(java.io.File targetDir, VariableResolver variableResolver)
PrototypeEntry
PkgMapEntry
objects for this PrototypeEntry
.
createPkgMapEntry
in interface PrototypeEntry
targetDir
- The directory in which the pkgMap entry is located
PkgMapEntry
objects created by this prototype entry. Can be empty.PrototypeEntry.createPkgMapEntry(java.io.File, net.sf.jpkgmk.util.VariableResolver)
protected abstract PkgMapEntry createPkgMapEntry(java.lang.Integer part, PkgMapEntryType resultType, java.lang.String entryClass, java.lang.String entryPath, java.lang.String entryPathSource, java.lang.Integer major, java.lang.Integer minor, java.lang.String mode, java.lang.String owner, java.lang.String group, java.io.File targetDir)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |