Class SimilarityModelWriterImpl
- 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_writerImpl.XMLWriterImpl
-
- de.uni_trier.wi2.procake.data.io.xml.xerces_writerImpl.SimilarityModelWriterImpl
-
- All Implemented Interfaces:
SimilarityTags,IO,Writer
public class SimilarityModelWriterImpl extends XMLWriterImpl implements SimilarityTags
SimilarityModelWriterImpl class.
- Author:
- kmaximi
-
-
Field Summary
-
Fields inherited from class de.uni_trier.wi2.procake.data.io.xml.xerces_writerImpl.XMLWriterImpl
filename, outputStream
-
Fields inherited from interface de.uni_trier.wi2.procake.utils.io.IO
COMPONENT, COMPONENT_KEY, DEFAULT_ENCODING, LOG_CONTENTHANDLER_NOT_FOUND, LOG_FILE_NOT_FOUND, LOG_IO_EXCEPTION, LOG_READER_NOT_FOUND, LOG_SAX_EXCEPTION, LOG_UNKNOWN_PARAMETER, LOG_WRITER_NOT_FOUND, LOG_WRONG_PARAMATER_TYPE, RESOURCE_XML
-
Fields inherited from interface de.uni_trier.wi2.procake.data.io.xml.SimilarityTags
ATT_AGG_FUNCTION, ATT_ALLOW_CASE_ORIENTED_MAPPING, ATT_ALLOW_PREINITIALIZATION_OF_SOLUTION, ATT_ALPHA, ATT_ASYMMETRICZEROOUTSTRATEGY, ATT_ATT, ATT_CASE, ATT_CASESENSITIVE, ATT_CLASS, ATT_CONTAINS, ATT_DATA_SIM_TO_USE, ATT_DEFAULT, ATT_DEFAULTSIMILARITY, ATT_DEFAULTWEIGHT, ATT_DELIMITER, ATT_DISCORDANT_PARAMETER, ATT_DOWN, ATT_END_WITH_QUERY, ATT_FORCEOVERRIDE, ATT_HALVING_DIST, ATT_IGNORE_NULL_ATTRIBUTES_IN_QUERY, ATT_INNERNODEINCASE, ATT_INNERNODEINQUERY, ATT_K, ATT_LOCAL_SIM_TO_USE, ATT_MAPPING_ORDER, ATT_MAX, ATT_MAX_QUEUE_SIZE, ATT_MEASURE, ATT_MIN, ATT_N, ATT_NAME, ATT_ONLY_TEST_FOR_EQUALITY, ATT_ORDER, ATT_P, ATT_PENALTY_DELETION, ATT_PENALTY_INSERTION, ATT_QUERY, ATT_RELATION, ATT_RELATION_NAMESPACE, ATT_RETURN_LOCAL_EDGE_SIMILARITIES, ATT_RETURN_LOCAL_NODE_SIMILARITIES, ATT_RETURN_LOCAL_SIMILARITIES, ATT_SIMILARITYTOUSE, ATT_SPARQL, ATT_SPARQL_PARAM_NAME, ATT_SPREAD, ATT_STRATEGY, ATT_SYMMETRIC, ATT_SYNTAX, ATT_TASK_SIM_TO_USE, ATT_THETA, ATT_THRESHOLD, ATT_TIMEOUT, ATT_TRANSITIVE, ATT_TYPE, ATT_UP, ATT_USE_HEURISTIC_BASED_ITEM_SELECTION, ATT_VAL_BELOW_ZERO, ATT_VALUE, ATT_WEIGHT, PREFIX_CDSM, SCHEMA_LOCATION, SCHEMA_LOCATION_CDSM, TAG_AGGREGATEAVERAGE, TAG_AGGREGATEEUCLIDIAN, TAG_AGGREGATEKMAXIMUM, TAG_AGGREGATEKMINIMUM, TAG_AGGREGATEMAXIMUM, TAG_AGGREGATEMINIMUM, TAG_AGGREGATEMINKOWSKI, TAG_AGGWEIGHT, TAG_COLLECTION_ISOLATED_MAPPING, TAG_COLLECTION_MAPPING, TAG_ENTRY, TAG_GraphAStarOne, TAG_GraphAStarThree, TAG_GraphAStarTwo, TAG_GraphDTW, TAG_GraphSWA, TAG_IMPORTANCE, TAG_INTERVAL, TAG_LIST_CORRECTNESS, TAG_LIST_MAPPING, TAG_ListDTW, TAG_ListSWA, TAG_NEST_GRAPH_ITEM, TAG_NODE, TAG_NUMERICEXPONENTIAL, TAG_NUMERICFUZZY, TAG_NUMERICLINEAR, TAG_NUMERICSIGMOID, TAG_NUMERICTHRESHOLD, TAG_OBJECTEQUAL, TAG_ONTO_AGGWEIGHT, TAG_ONTO_EQUIVALENCE_RELATION, TAG_ONTO_RELATION, TAG_ONTOLOGY_AGG_AVG, TAG_ONTOLOGY_DIR_GROUP, TAG_ONTOLOGY_FB_MS, TAG_ONTOLOGY_FB_SANCHEZ, TAG_ONTOLOGY_INDIR_GROUP, TAG_ONTOLOGY_IS_EQUIVALENT, TAG_ONTOLOGY_SP_RADA, TAG_ONTOLOGY_SP_SLIMANI, TAG_ONTOLOGY_SP_WP, TAG_ONTOLOGYPATH, TAG_PARAMETER, TAG_SIMILARITYMODEL, TAG_STRINGCOSINE, TAG_STRINGEQUAL, TAG_STRINGJAROWINKLER, TAG_STRINGLEVENSHTEIN, TAG_STRINGNGRAM, TAG_STRINGREGEXP, TAG_STRINGTERMCOUNT, TAG_STRINGWILDCARD, TAG_TABLE_DATA_CLASS, TAG_TABLEDATAOBJECT, TAG_TAXONOMYCLASSIC, TAG_TAXONOMYCLASSICUSERWEIGHTS, TAG_TAXONOMYNODEHEIGHT, TAG_TAXONOMYPATH, URI_CDSM, V_AVERAGE, V_CASEHIGHERTHANQUERY, V_CASEINCLUSION, V_EGREP, V_EXACT, V_FALSE, V_INEXACT, V_INTERSECTION, V_NONE, V_OPTIMISTIC, V_PERL5, V_PESSIMISTIC, V_POSIX, V_QUERYHIGHERTHANCASE, V_QUERYINCLUSION, V_REQUIRE_EQUAL_DATA_CLASS, V_TRUE
-
Fields inherited from interface de.uni_trier.wi2.procake.utils.io.Writer
COMPONENT, COMPONENT_KEY, LOG_CANNOT_WRITE, LOG_NO_WRITER_FOUND, LOG_UNEXPECTED_IOEXCEPTION
-
-
Constructor Summary
Constructors Constructor Description SimilarityModelWriterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOcopy()overwritten copy-method from Object; use it to copy a complete operatorStringgetDescription()A description of the io component.StringgetName()Each io component must have a name that is used inIOFactory.newIO(String).voidinsertNamespace(XMLSchemaBasedWriter writer)Adds the namespace-imports of this handler to the given xmlWriter.booleanisHandlerFor(Class value)Checks if the io component is capable to perform the operation for objects of this class.voidstore(Object value, XMLSchemaBasedWriter writer)To embed xml writers into another one it must be possible to specify the parentXMLSchemaBasedWriteras well as a prefix that should be probably used.-
Methods inherited from class de.uni_trier.wi2.procake.data.io.xml.xerces_writerImpl.XMLWriterImpl
correctPrefix, createXMLWriter, setFilename, setOutputStream, store, storeWithFamiliarWriter
-
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
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
A description of the io component. The description should contain the file format and the classes that can be managed.- Specified by:
getDescriptionin interfaceIO- Overrides:
getDescriptionin classIOImpl- Returns:
- a description of the io component
-
getName
public String 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()).
-
insertNamespace
public void insertNamespace(XMLSchemaBasedWriter writer)
Adds the namespace-imports of this handler to the given xmlWriter.- Specified by:
insertNamespacein classXMLWriterImpl- Parameters:
writer- aXMLSchemaBasedWriterobject
-
isHandlerFor
public boolean isHandlerFor(Class value)
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; }- Specified by:
isHandlerForin interfaceIO- Parameters:
value- The class that has to be checked.- Returns:
- Results
trueif the class can oeprate with the given class.
-
copy
public IO copy()
overwritten copy-method from Object; use it to copy a complete operator
-
store
public void store(Object value, XMLSchemaBasedWriter writer) throws CakeIOException
To embed xml writers into another one it must be possible to specify the parentXMLSchemaBasedWriteras well as a prefix that should be probably used. If a parent writer is specified, no header will be written.If the writer does not support XML writing, the writer should throw an
UnsupportedOperationException.public void store(Object value, String prefix, XMLWriter writer) throws CakeIOException { throw new UnsupportedOperationException(); }- Specified by:
storein classXMLWriterImpl- Parameters:
value- aObjectobjectwriter- A parent writer that is used.- Throws:
CakeIOException- if any.
-
-