public class VibeKVPair extends Item implements IReader, IWriter
component
Constructor and Description |
---|
VibeKVPair()
The nullary constructor.
|
VibeKVPair(org.eclipse.core.resources.IProject projectSpace)
The required constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Entry> |
findAll(org.eclipse.core.resources.IFile file,
java.lang.String regex)
This method can be used by realizations of this interface to provide the
functionality needed to find all occurrences of a String regular
expression in a file with the given URI and return a list of Entries
representing those occurrences.
|
java.lang.String |
getReaderType()
Return that this is a VibeKVPairItem
|
java.lang.String |
getWriterType()
Return that this is a VibeKVPairItem
|
void |
loadInput(java.lang.String name)
This operation loads the given example into the Form.
|
FormStatus |
process(java.lang.String actionName)
Process the item.
|
Form |
read(org.eclipse.core.resources.IFile ifile)
Reads in the KV Pair file to a form.
|
void |
replace(org.eclipse.core.resources.IFile file,
java.lang.String regex,
java.lang.String value)
This method provides clients with a basic search and replace
functionality.
|
void |
setupForm()
This operation overrides the base class' operation to create a Form with
Entries that will be used to generate the VIBEkey-value pair file.
|
void |
write(Form formToWrite,
org.eclipse.core.resources.IFile ifile)
Writes the KV pair file from the given form
|
addListener, cancelProcess, cancelProcess, clone, copy, disable, equals, getAvailableActions, getDescription, getForm, getId, getItemBuilderName, getItemType, getName, getOutputFile, getResource, getResource, getStatus, hashCode, hasProject, isEnabled, loadFromPSF, reloadProjectData, setActionFactory, setDescription, setId, setIOService, setItemBuilderName, setName, setProject, setupFormWithServices, submitForm, update, update, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
public VibeKVPair()
public VibeKVPair(org.eclipse.core.resources.IProject projectSpace)
projectSpace
- The Eclipse Project space needed for file manipulation.public void setupForm()
public FormStatus process(java.lang.String actionName)
public void loadInput(java.lang.String name)
This operation loads the given example into the Form.
public Form read(org.eclipse.core.resources.IFile ifile)
public void write(Form formToWrite, org.eclipse.core.resources.IFile ifile)
public java.util.ArrayList<Entry> findAll(org.eclipse.core.resources.IFile file, java.lang.String regex)
IReader
public void replace(org.eclipse.core.resources.IFile file, java.lang.String regex, java.lang.String value)
IWriter
public java.lang.String getWriterType()
getWriterType
in interface IWriter
public java.lang.String getReaderType()
getReaderType
in interface IReader