|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.io.AbstractMapInputFile<K,V>
sbrt.shell.io.RomiFile<java.lang.String,java.lang.String>
sbrt.shell.io.ProcessInputFile
public final class ProcessInputFile
This class is used to represent process input files. These are the files that can be given as a single command line argument to sbrt. The are used to specify all the details required to construct a process using a process manager.
Constructor Summary | |
---|---|
ProcessInputFile(java.lang.String fileName)
Constructs a new process input file from the provided argument. |
|
ProcessInputFile(java.lang.String fileName,
AppInputFileLineFormat lineFormat)
Constructs a new process input file from the provided arguments. |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the canonical name of this file. |
java.lang.String |
getOptionalValue(java.lang.Object key)
Returns the value corresponding to the provided key. |
java.lang.String |
getRequiredValue(java.lang.Object key)
Returns the value corresponding to the provided key. |
boolean |
hasValueFor(java.lang.Object key)
Indicates if a value exists for the provided key in this manager input. |
java.util.Map<java.lang.String,java.lang.String> |
toMap()
Returns the information contained in this file as a map. |
java.lang.String |
toString()
Returns a string representation of the information contained in this file. |
Methods inherited from class sbrt.shell.io.RomiFile |
---|
getKeys, getMap, iterator |
Methods inherited from class sbrt.shell.io.AbstractMapInputFile |
---|
close, getCanonicalName, getMapFormat, getOriginalName, getRequiredKeys, isClosed, lineIterator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProcessInputFile(java.lang.String fileName, AppInputFileLineFormat lineFormat)
fileName
- the name of the file to be read.lineFormat
- the format used to parse its lines.public ProcessInputFile(java.lang.String fileName)
fileName
- the name of the file to be read.Method Detail |
---|
public java.util.Map<java.lang.String,java.lang.String> toMap()
toMap
in interface ManagerInput<java.lang.String,java.lang.String>
public final java.lang.String getName()
getName
in interface ManagerInput<java.lang.String,java.lang.String>
public boolean hasValueFor(java.lang.Object key)
hasValueFor
in interface ManagerInput<java.lang.String,java.lang.String>
key
- the key whose presence in this input
is to be tested.
true
if this input contains a
value for the specified key.public java.lang.String getOptionalValue(java.lang.Object key)
getOptionalValue
in interface ManagerInput<java.lang.String,java.lang.String>
key
- the key whose value is to be returned.
null
if the value does not exist.public java.lang.String getRequiredValue(java.lang.Object key)
getRequiredValue
in interface ManagerInput<java.lang.String,java.lang.String>
key
- the key whose value is to be returned.
ApplicationException
- if the value does not exist.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 |