org.omwg.mediation.mappingstore.model
Class Mapping
java.lang.Object
org.omwg.mediation.mappingstore.model.Mapping
- All Implemented Interfaces:
- java.io.Serializable
- public class Mapping
- extends java.lang.Object
- implements java.io.Serializable
Represents a particular mapping. The fields of the object are encapsulated
through standard get/set methods.
We expect that a mapping could be created in two ways:
- by its definition available in an input stream, parser and two
ontologies - source and target (See the constructor);
- by loading a mapping from the MappingStore.
- See Also:
- Serialized Form
Constructor Summary |
Mapping(java.lang.String inputDefinition,
Ontology source,
Ontology target)
Constructs a mapping for two given ontologies with definition imported
from a specific language format through given parser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Mapping
public Mapping(java.lang.String inputDefinition,
Ontology source,
Ontology target)
- Constructs a mapping for two given ontologies with definition imported
from a specific language format through given parser. The initial format
is retrieved by given input stream.
- Parameters:
inputDefinition
- given mapping definitionsource
- given source ontologytarget
- given target ontology
parse
public static Mapping parse(java.lang.String inputDefinition,
Parser p)
getDefinition
public java.lang.String getDefinition()
getName
public java.lang.String getName()
getVersion
public Version getVersion()
getDescription
public java.lang.String getDescription()
getSourceOntology
public Ontology getSourceOntology()
getTargetOntology
public Ontology getTargetOntology()
setName
public void setName(java.lang.String name)
setVersion
public void setVersion(Version v)
setDescription
public void setDescription(java.lang.String description)
toString
public java.lang.String toString()