Class ObjectReader
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.ObjectReader
- All Implemented Interfaces:
IO
,ProCAKEReader
ObjectReader class.
- Author:
- Rainer Maximini
-
Field Summary
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.Methods inherited from class de.uni_trier.wi2.procake.data.io.xml.xerces_saxImpl.AbstractXMLReader
getFilename, read, 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
ConstantPARSERNAME="ObjectSaxParser"
- See Also:
-
-
Constructor Details
-
ObjectReader
public ObjectReader()
-
-
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
-
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:
-