Class SimilarityModelReader
java.lang.Object
de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
de.uni_trier.wi2.procake.data.io.IOImpl
de.uni_trier.wi2.procake.data.io.xml.xerces_saxImpl.AbstractXMLReader
de.uni_trier.wi2.procake.data.io.xml.xerces_saxImpl.SimilarityModelReader
- All Implemented Interfaces:
IO
,ProCAKEReader
SimilarityModelReader class.
- Author:
- Rainer Maximini
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
ConstantPARSER_NAME="SimilarityModelParser"
Fields inherited from class de.uni_trier.wi2.procake.data.io.xml.xerces_saxImpl.AbstractXMLReader
filename, inputStream
Fields inherited from interface de.uni_trier.wi2.procake.utils.io.IO
DEFAULT_ENCODING, LOG_FILE_NOT_FOUND, LOG_IO_EXCEPTION, LOG_READER_NOT_FOUND, LOG_SAX_EXCEPTION, LOG_UNKNOWN_PARAMETER, LOG_WRONG_PARAMATER_TYPE, RESOURCE_XML
Fields inherited from interface de.uni_trier.wi2.procake.utils.io.ProCAKEReader
LOG_ENTITY_NOT_FOUND, LOG_UNKNOWN_ATTRIBUTE_IN_TAG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
overwritten copy-method from Object; use it to copy a complete operatorgetName()
Each io component must have a name that is used inIOFactory.newIO(String)
.boolean
isHandlerFor
(Class value) Checks if the io component is capable to perform the operation for objects of this class.protected AbstractXMLHandler
Provides a handler by the subclass in order to be used to create the parser.read()
Reads the give filename or input source and returns the parsed object.void
setModelDependency
(Model dataModel) void
setTargetSimilarityModel
(SimilarityModel simModel) Methods inherited from class de.uni_trier.wi2.procake.data.io.xml.xerces_saxImpl.AbstractXMLReader
getFilename, setFilename, setInputStream, toString
Methods inherited from class de.uni_trier.wi2.procake.data.io.IOImpl
getFamily, getParameters, postInit, preInit, setFamily
Methods inherited from class de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
getParameter, initParametersBasedOn
-
Field Details
-
READER_NAME
ConstantPARSER_NAME="SimilarityModelParser"
- See Also:
-
-
Constructor Details
-
SimilarityModelReader
public SimilarityModelReader()
-
-
Method Details
-
getName
Each io component must have a name that is used inIOFactory.newIO(String)
. The name must be unique thus it is usefull to use a short description or to the class name (this.getClass().getName()
).- Returns:
- Returns the name of the io component.
-
provideHandler
Description copied from class:AbstractXMLReader
Provides a handler by the subclass in order to be used to create the parser. This should reduce code duplicates.- Specified by:
provideHandler
in classAbstractXMLReader
- Returns:
- the provided content handler
-
setTargetSimilarityModel
-
setModelDependency
-
isHandlerFor
Checks if the io component is capable to perform the operation for objects of this class.A typical implementation looks like:
public boolean isHandlerFor(Class value) { if (DataObject.class.isAssignableFrom(value)) return true; return false; }
- Parameters:
value
- The class that has to be checked.- Returns:
- Results
true
if the class can oeprate with the given class.
-
copy
overwritten copy-method from Object; use it to copy a complete operator- Returns:
-
read
Reads the give filename or input source and returns the parsed object.- Specified by:
read
in interfaceProCAKEReader
- Overrides:
read
in classAbstractXMLReader
- Returns:
- Returns the parsed object.
- Throws:
CAKEIOException
-