public class InputProgram
extends java.lang.Object
Constructor and Description |
---|
InputProgram()
Creates a new programs , setting space as default separator
|
InputProgram(java.lang.Object inputObj)
instantiate a new
InputProgram |
InputProgram(java.lang.String initial_program) |
Modifier and Type | Method and Description |
---|---|
void |
addFilesPath(java.lang.String file_path)
add a new file path into
files_paths |
void |
addObjectInput(java.lang.Object inputObj) |
void |
addObjectsInput(java.util.Set<java.lang.Object> inputObjs) |
void |
addProgram(java.lang.String new_instruction)
Adds a new instruction directly into
programs |
void |
clearAll()
After this method both
files_paths and programs will be empty |
void |
clearFilesPaths()
After this method
files_paths will be empty |
void |
clearPrograms()
After this method
programs will be empty |
java.util.List<java.lang.String> |
getFilesPaths() |
java.lang.String |
getPrograms()
Returns data stored in
programs |
java.lang.String |
getSeparator()
get separator character
|
java.lang.String |
getStringOfFilesPaths()
Returns files paths for this programs
|
void |
setPrograms(java.lang.String programs)
sets
programs value to the new given one |
void |
setSeparator(java.lang.String separator)
Set programs separator to current value
|
public InputProgram()
public InputProgram(java.lang.Object inputObj) throws java.lang.Exception
InputProgram
inputObj
- Object used to retrieve data fromjava.lang.Exception
addObjectInput(Object)
public InputProgram(java.lang.String initial_program)
public void addFilesPath(java.lang.String file_path)
files_paths
file_path
- a new file pathpublic void addObjectInput(java.lang.Object inputObj) throws java.lang.Exception
java.lang.Exception
public void addObjectsInput(java.util.Set<java.lang.Object> inputObjs) throws java.lang.Exception
java.lang.Exception
addObjectInput(Object)
public void addProgram(java.lang.String new_instruction)
programs
new_instruction
- a new programs instructionpublic void clearAll()
files_paths
and programs
will be emptypublic void clearFilesPaths()
files_paths
will be emptypublic void clearPrograms()
programs
will be emptypublic java.util.List<java.lang.String> getFilesPaths()
public java.lang.String getPrograms()
programs
public java.lang.String getSeparator()
public java.lang.String getStringOfFilesPaths()
public void setPrograms(java.lang.String programs)
programs
value to the new given onepublic void setSeparator(java.lang.String separator)
separator
- used as new separator