net.sf.jpkgmk.prototype
Class PrototypeEntryFile.PrototypeEntryFileParser
java.lang.Object
net.sf.jpkgmk.prototype.AbstractPrototypeEntryParser
net.sf.jpkgmk.prototype.PrototypeEntryFile.PrototypeEntryFileParser
- All Implemented Interfaces:
- PrototypeEntryParser
- Direct Known Subclasses:
- PrototypeEntryFileEditable.PrototypeEntryFileEditableParser, PrototypeEntryFileVolatile.PrototypeEntryFileVolatileParser
- Enclosing class:
- PrototypeEntryFile
public static class PrototypeEntryFile.PrototypeEntryFileParser
- extends AbstractPrototypeEntryParser
- implements PrototypeEntryParser
Parser to create a prototype file object from a string array
Method Summary |
protected PrototypeEntry |
createEntry(java.lang.Integer part,
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)
|
protected PrototypeEntry |
parseItems(java.lang.String[] items,
java.lang.Integer part,
PrototypeEntryType type,
int currentIndex,
PrototypeEntryCommandDefault entryCommandDefault)
Invoked by the AbstractPrototypeEntryParser.parse(String, PrototypeEntryCommandDefault) method to parse
the items of a line. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PrototypeEntryFile.PrototypeEntryFileParser
public PrototypeEntryFile.PrototypeEntryFileParser()
parseItems
protected PrototypeEntry parseItems(java.lang.String[] items,
java.lang.Integer part,
PrototypeEntryType type,
int currentIndex,
PrototypeEntryCommandDefault entryCommandDefault)
- Description copied from class:
AbstractPrototypeEntryParser
- Invoked by the
AbstractPrototypeEntryParser.parse(String, PrototypeEntryCommandDefault)
method to parse
the items of a line. The given array of items represents the whole line split up into strings.
- Specified by:
parseItems
in class AbstractPrototypeEntryParser
- Parameters:
items
- All items of this linepart
- The pre-parsed value for the optional "part" fieldtype
- The pre-parsed value for the mandatory "type" character fieldcurrentIndex
- The current index located after the "type" field already parsed. This is the index where
the parsing should be continued by the concrete implementations.
- Returns:
createEntry
protected PrototypeEntry createEntry(java.lang.Integer part,
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)
Copyright © 2007-2008. All Rights Reserved.