|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.pipeline.PipePort<T> edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel<java.io.File> edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile edu.jhu.ece.iacl.jist.pipeline.parameter.ParamObject<T>
T
- *public class ParamObject<T>
Parameter for generic object which uses specified reader/writer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile |
---|
ParamFile.DialogType |
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
---|
PipePort.PortListener, PipePort.type |
Field Summary | |
---|---|
protected T |
obj
The obj. |
protected FileReaderWriter<T> |
readerWriter
The reader writer. |
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile |
---|
dialogType, extensionFilter, file, uri |
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
---|
cliTag, description, factory, hidden, label, loadAndSaveOnValidate, mandatory, shortLabel |
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
---|
connectible, gport, incomingConnectors, listeners, maxIncoming, maxOutgoing, outgoingConnectors, owner, portType, useWire |
Constructor Summary | |
---|---|
ParamObject(ParamFile.DialogType type)
Constructor. |
|
ParamObject(java.lang.String name)
Constructor. |
|
ParamObject(java.lang.String name,
FileReaderWriter<T> readerWriter)
Constructor. |
|
ParamObject(java.lang.String name,
ParamFile.DialogType type)
Constructor. |
Method Summary | |
---|---|
ParamObject |
clone()
Clone object. |
T |
getObject()
Get object. |
FileReaderWriter<T> |
getReaderWriter()
Get reader and writer for object. |
void |
init()
Initialize parameter. |
void |
setFileName(java.lang.String fileName)
Set filename to store object. |
void |
setObject(T obj)
Set object. |
void |
setReaderWriter(FileReaderWriter<T> readerWriter)
Set reader writer. |
void |
setValue(java.io.File f)
Set file to store object. |
void |
setValue(java.lang.String s)
Set filename as string. |
java.lang.String |
toString()
Get description of object. |
void |
validate()
Validate filename. |
boolean |
writeObject(java.io.File f)
Write stored object to file. |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile |
---|
clean, compareTo, getDialogType, getExtensionFilter, getHumanReadableDataType, getURI, getValue, getXMLValue, isCompatible, probeDefaultValue, replacePath, setExtensionFilter, setValue, setXMLValue, translatePath |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
---|
createMipavParameter, createTreeNode, dispose, equals, getCliTag, getDescription, getFactory, getInputView, getLabel, getName, getOutputView, getShortLabel, getView, hide, importMipavParameter, importParameter, isConnectible, isHidden, isMandatory, loadResources, loadResources, read, read, saveResources, setCliTag, setDescription, setFactory, setHidden, setInputView, setLabel, setLoadAndSaveOnValidate, setMandatory, setName, setOutputView, setShortLabel, toXML, write, write, writeAndFreeNow |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
---|
addListener, disconnect, disconnect, disconnect, disconnect, getGraphPort, getIncomingConnector, getIncomingConnectors, getIncomingPorts, getListeners, getMaxIncoming, getMaxOutgoing, getOutgoingConnector, getOutgoingConnectors, getOutgoingPorts, getOwner, getPortType, isConnected, isConnectedTo, isInputPort, isOutputPort, notifyListenersOfConnection, notifyListenersOfDisconnection, removeAllListeners, removeListener, setConnectable, setGraphPort, setMaxIncoming, setMaxOutgoing, setOwner, setPortType, setUseConnector, usingConnector |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient T obj
protected FileReaderWriter<T> readerWriter
Constructor Detail |
---|
public ParamObject(ParamFile.DialogType type)
type
- dialog typepublic ParamObject(java.lang.String name)
name
- parameter namepublic ParamObject(java.lang.String name, ParamFile.DialogType type)
name
- parameter nametype
- dialog typepublic ParamObject(java.lang.String name, FileReaderWriter<T> readerWriter)
name
- parameter namereaderWriter
- reader/writerMethod Detail |
---|
public ParamObject clone()
clone
in class ParamFile
public T getObject()
public FileReaderWriter<T> getReaderWriter()
public void init()
init
in class ParamFile
public void setFileName(java.lang.String fileName)
fileName
- the file namepublic void setObject(T obj)
obj
- objectpublic void setReaderWriter(FileReaderWriter<T> readerWriter)
readerWriter
- the reader writerpublic void setValue(java.io.File f)
setValue
in class ParamFile
f
- the fpublic void setValue(java.lang.String s)
setValue
in class ParamFile
s
- the spublic java.lang.String toString()
toString
in class ParamFile
public void validate() throws InvalidParameterException
validate
in class ParamFile
InvalidParameterException
- the invalid parameter exceptionpublic boolean writeObject(java.io.File f)
f
- filename
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |