|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object insensa.CRasterFile insensa.CRasterFileInformation
public class CRasterFileInformation
Enthaelt informationen ueber ein Raster File incl. der verwendeten Option und Infos
Field Summary | |
---|---|
private ConnectionFileChanger |
connectionFileChanger
|
private DependencyChecker |
depChecker
|
private java.lang.String |
description
|
private java.util.List<FileObserver> |
fileObserverList
|
private java.util.List<InfoReader> |
infoReaders
|
private CInfoReaderThreadPool |
iThreadPool
|
private int |
lockedCnt
|
private java.util.List<OptionFileChanger> |
options
|
private COptionThreadPool |
optionThreadPool
|
private java.lang.String |
outputFileName
|
private ParentModule |
parent
|
private java.lang.String |
separator
|
private CRasterFileInformation |
targetRasterFile
|
private CXmlRasterFileInformation |
xmlInformation
|
Constructor Summary | |
---|---|
CRasterFileInformation(CRasterFileInformation oldFile,
ParentModule parent,
java.lang.String newOutputFileName,
boolean keepOpen)
Creates a new CRasterFileInformation as a copy of another, with new OutputFilePath and OutputFileName. |
|
CRasterFileInformation(ParentModule parent,
java.lang.String outputFileName,
java.lang.String fullName,
ConnectionDependencies conDep)
Open existing File as CRasterFileInformation. |
|
CRasterFileInformation(ParentModule parent,
java.lang.String outputFileName,
java.lang.String fullName,
OptionFileChanger option,
ConnectionDependencies conDep)
|
|
CRasterFileInformation(java.lang.String newAbsoluteFilePath,
CRasterFileInformation oldFile,
ParentModule parent,
boolean copyInfos,
boolean copyOptions,
boolean keepOpen)
Create a new File Instance and copy all Options and Infos from CRasterFile and CRasterFileInformation The Path of the new File instance is the path of newAbsoluteFilePath The XML Information for the new File is the same as for the old file, no need to change this. |
Method Summary | |
---|---|
void |
addFileObserver(FileObserver fObservr)
TODO TEST BUG 1002 F�gt neuen Observer hinzu. |
boolean |
addInfoReader(InfoReader info,
boolean serialize)
Add the info Inforeader Object to this File. |
void |
addInfoReaders(java.util.List<InfoReader> infos,
boolean serialize)
Add all InfoReader Objects in infos to this File. |
void |
addOption(OptionFileChanger option)
|
void |
changeOutputFileName(java.lang.String newOutputFileName)
set the new output file name and change the name of the xml config. |
void |
changeOutputFilePath(java.lang.String mOutputFilePath)
Deletes the xml information an create a new one in the new path. |
int |
compareTo(CRasterFileInformation o)
This compares the file names of the file reference first. |
boolean |
delete()
|
boolean |
deleteFile()
|
boolean |
deleteLink()
|
boolean |
equals(java.lang.Object obj)
|
void |
executeAllInfos(WorkerStatusList mWorkerStatusList)
Execute all Unused InformationReader. |
void |
executeAllOptions(WorkerStatusList workerStatusList)
Execute all Options in the Option List. |
void |
executeInfo(java.lang.String iReaderName,
WorkerStatusList mWorkerStatusList)
|
void |
executeInfos(java.util.List<java.lang.String> infoReaderList,
WorkerStatusList mWorkerStatusList)
Executes the read method on the first InfoReader Object. |
java.lang.String |
getAbsoluteOutputFilePath()
|
ConnectionFileChanger |
getConnectionFileChanger()
|
DependencyChecker |
getDepChecker()
|
java.lang.String |
getDescription()
|
java.util.List<FileObserver> |
getFileObserverList()
TODO BUG 1002. |
InfoReader |
getInfoReader(java.lang.String infoReaderName)
|
int |
getInfoReaderCount()
|
java.util.List<InfoReader> |
getInfoReaders()
|
CInfoReaderThreadPool |
getiThreadPool()
|
int |
getOptionFileChangerCount()
|
java.util.List<OptionFileChanger> |
getOptions()
|
java.util.List<OptionFileChanger> |
getOptions(java.lang.String sOption)
|
COptionThreadPool |
getOptionThreadPool()
|
java.lang.String |
getOutputFileName()
|
ParentModule |
getParentModule()
|
java.lang.String |
getRelativePath()
|
CRasterFileInformation |
getTargetRasterFile()
|
int |
getUnusedInfoReaderCount()
|
int |
getUnusedOptionCount()
|
CXmlRasterFileInformation |
getXmlRasterFileInformation()
|
int |
hashCode()
|
boolean |
isHardCopy()
be carefull.. rename a fileset causes this to be wring |
boolean |
isLocked()
|
void |
notifyObserversDelete()
|
private void |
readXmlRasterFileInformation(ConnectionDependencies connDep)
loads the Information from the XML File. |
void |
relocateFile()
crelocates the ref file if the path changed and the name did not!. |
void |
removeFileObserver(FileObserver fObs)
TODO BUG 1002. |
void |
removeInfoReader(InfoReader iReader)
|
void |
removeOptionFileChanger(OptionFileChanger option)
|
boolean |
renameTo(java.io.File dest)
just renames the file reference and saves dest as new file reference. |
void |
setConnectionFileChanger(ConnectionFileChanger conn)
|
void |
setDescription(java.lang.String description)
|
void |
setLock(boolean locked)
|
void |
setOutputFileName(java.lang.String outputFileName)
|
void |
setParentModule(ParentModule parentModule)
|
void |
setTargetRasterFile(CRasterFileInformation targetRasterFile)
|
void |
setXmlInformation(CXmlRasterFileInformation xmlInformation)
|
java.lang.String |
toString()
|
void |
update(CRasterFileInformation file)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.List<OptionFileChanger> options
private java.util.List<InfoReader> infoReaders
private ConnectionFileChanger connectionFileChanger
private java.lang.String description
private CXmlRasterFileInformation xmlInformation
private CRasterFileInformation targetRasterFile
private DependencyChecker depChecker
private CInfoReaderThreadPool iThreadPool
private java.util.List<FileObserver> fileObserverList
private COptionThreadPool optionThreadPool
private java.lang.String outputFileName
private int lockedCnt
private ParentModule parent
private java.lang.String separator
Constructor Detail |
---|
public CRasterFileInformation(CRasterFileInformation oldFile, ParentModule parent, java.lang.String newOutputFileName, boolean keepOpen) throws java.io.IOException, CRasterFileException
oldFile
- parent
- newOutputFileName
- keepOpen
-
java.io.IOException
org.jdom.JDOMException
CRasterFileException
public CRasterFileInformation(ParentModule parent, java.lang.String outputFileName, java.lang.String fullName, ConnectionDependencies conDep) throws java.io.IOException, org.jdom.JDOMException, CRasterFileException
parent
- outputFileName
- fullName
- conDep
-
java.io.IOException
org.jdom.JDOMException
CRasterFileException
public CRasterFileInformation(ParentModule parent, java.lang.String outputFileName, java.lang.String fullName, OptionFileChanger option, ConnectionDependencies conDep) throws java.io.IOException, CRasterFileException
parent
- outputFileName
- fullName
- option
- conDep
-
java.io.IOException
org.jdom.JDOMException
CRasterFileException
public CRasterFileInformation(java.lang.String newAbsoluteFilePath, CRasterFileInformation oldFile, ParentModule parent, boolean copyInfos, boolean copyOptions, boolean keepOpen) throws java.io.IOException, org.jdom.JDOMException, CRasterFileException
newAbsoluteFilePath
- oldFile
- parent
- copyInfos
- copyOptions
- keepOpen
-
java.io.IOException
org.jdom.JDOMException
CRasterFileException
Method Detail |
---|
public void addFileObserver(FileObserver fObservr)
fObservr
- public boolean addInfoReader(InfoReader info, boolean serialize) throws java.io.IOException
info
- serialize
-
java.io.IOException
public void addInfoReaders(java.util.List<InfoReader> infos, boolean serialize) throws java.io.IOException
infos
- serialize
-
java.io.IOException
public void addOption(OptionFileChanger option) throws java.io.IOException
option
-
java.io.IOException
public void changeOutputFileName(java.lang.String newOutputFileName) throws java.io.IOException
newOutputFileName
-
java.io.IOException
public void changeOutputFilePath(java.lang.String mOutputFilePath) throws java.io.IOException
mOutputFilePath
-
java.io.IOException
public boolean delete()
delete
in class CRasterFile
CRasterFile.delete()
public boolean deleteFile()
public boolean deleteLink()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
Object.equals(java.lang.Object)
public int compareTo(CRasterFileInformation o)
compareTo
in interface java.lang.Comparable<CRasterFileInformation>
Comparable.compareTo(java.lang.Object)
public void executeAllInfos(WorkerStatusList mWorkerStatusList) throws java.io.IOException
mWorkerStatusList
-
java.io.IOException
public void executeAllOptions(WorkerStatusList workerStatusList) throws java.io.IOException, org.jdom.JDOMException
workerStatusList
-
java.io.IOException
org.jdom.JDOMException
public void executeInfo(java.lang.String iReaderName, WorkerStatusList mWorkerStatusList) throws java.io.IOException
iReaderName
- mWorkerStatusList
-
java.io.IOException
public void executeInfos(java.util.List<java.lang.String> infoReaderList, WorkerStatusList mWorkerStatusList) throws java.io.IOException
infoReaderList
- mWorkerStatusList
-
java.io.IOException
public java.lang.String getAbsoluteOutputFilePath()
public ConnectionFileChanger getConnectionFileChanger()
public DependencyChecker getDepChecker()
public java.lang.String getDescription()
public java.util.List<FileObserver> getFileObserverList()
public InfoReader getInfoReader(java.lang.String infoReaderName)
infoReaderName
-
public int getInfoReaderCount()
public java.util.List<InfoReader> getInfoReaders()
public CInfoReaderThreadPool getiThreadPool()
public int getOptionFileChangerCount()
public java.util.List<OptionFileChanger> getOptions()
public java.util.List<OptionFileChanger> getOptions(java.lang.String sOption)
sOption
-
public COptionThreadPool getOptionThreadPool()
public java.lang.String getOutputFileName()
public ParentModule getParentModule()
public java.lang.String getRelativePath()
public CRasterFileInformation getTargetRasterFile()
public int getUnusedInfoReaderCount()
public int getUnusedOptionCount()
public CXmlRasterFileInformation getXmlRasterFileInformation()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean isHardCopy()
public boolean isLocked()
isLocked
in interface FileInspector
FileInspector.isLocked()
public void notifyObserversDelete()
private void readXmlRasterFileInformation(ConnectionDependencies connDep) throws java.io.IOException
connDep
-
java.io.IOException
org.jdom.JDOMException
public void relocateFile()
public void removeFileObserver(FileObserver fObs)
fObs
- public void removeInfoReader(InfoReader iReader) throws java.io.IOException
iReader
-
java.io.IOException
public void removeOptionFileChanger(OptionFileChanger option) throws java.io.IOException
option
-
java.io.IOException
public boolean renameTo(java.io.File dest) throws java.io.IOException
CRasterFile
renameTo
in class CRasterFile
dest
-
java.io.IOException
CRasterFile.renameTo(java.io.File)
public void setConnectionFileChanger(ConnectionFileChanger conn) throws java.io.IOException
conn
-
java.io.IOException
public void setDescription(java.lang.String description) throws java.io.IOException
description
-
java.io.IOException
public void setLock(boolean locked)
setLock
in interface FileInspector
locked
- FileInspector.setLock(boolean)
public void setOutputFileName(java.lang.String outputFileName) throws java.io.IOException
outputFileName
-
java.io.IOException
public void setParentModule(ParentModule parentModule)
parentModule
- public void setTargetRasterFile(CRasterFileInformation targetRasterFile)
targetRasterFile
- public void setXmlInformation(CXmlRasterFileInformation xmlInformation)
xmlInformation
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public void update(CRasterFileInformation file)
update
in interface FileInspector
file
- FileInspector.update(insensa.CRasterFileInformation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |