Class CallableModelFileImpl
- java.lang.Object
-
- cern.accsoft.steering.jmad.domain.file.AbstractModelFile
-
- cern.accsoft.steering.jmad.domain.file.CallableModelFileImpl
-
- All Implemented Interfaces:
CallableModelFile
,ModelFile
,java.lang.Cloneable
public class CallableModelFileImpl extends AbstractModelFile implements CallableModelFile, java.lang.Cloneable
The default implementation of a modelFile. Immutable.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cern.accsoft.steering.jmad.domain.file.CallableModelFile
CallableModelFile.ParseType
-
Nested classes/interfaces inherited from interface cern.accsoft.steering.jmad.domain.file.ModelFile
ModelFile.ModelFileLocation
-
-
Field Summary
-
Fields inherited from class cern.accsoft.steering.jmad.domain.file.AbstractModelFile
DEFAULT_MODEL_FILE_LOCATION
-
-
Constructor Summary
Constructors Constructor Description CallableModelFileImpl()
default constructor, Necessary for XStreamCallableModelFileImpl(java.lang.String path)
CallableModelFileImpl(java.lang.String path, ModelFile.ModelFileLocation location)
CallableModelFileImpl(java.lang.String path, ModelFile.ModelFileLocation location, CallableModelFile.ParseType parseType)
a constructor with the additional parse type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallableModelFile.ParseType
getParseType()
java.lang.String
toString()
-
Methods inherited from class cern.accsoft.steering.jmad.domain.file.AbstractModelFile
abstractReadResolve, clone, equals, fillWriteReplace, getLocation, getName, hashCode
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cern.accsoft.steering.jmad.domain.file.ModelFile
getLocation, getName
-
-
-
-
Constructor Detail
-
CallableModelFileImpl
public CallableModelFileImpl()
default constructor, Necessary for XStream
-
CallableModelFileImpl
public CallableModelFileImpl(java.lang.String path, ModelFile.ModelFileLocation location)
-
CallableModelFileImpl
public CallableModelFileImpl(java.lang.String path)
-
CallableModelFileImpl
public CallableModelFileImpl(java.lang.String path, ModelFile.ModelFileLocation location, CallableModelFile.ParseType parseType)
a constructor with the additional parse type- Parameters:
path
- the relative path of the filelocation
- the location (repository or resource) where to search for the fileparseType
- defines how to interprete the file
-
-
Method Detail
-
getParseType
public CallableModelFile.ParseType getParseType()
- Specified by:
getParseType
in interfaceCallableModelFile
- Returns:
- the parse type
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-