|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omwg.mediation.language.objectModel.MappingDocument
public class MappingDocument
This is the main class to create a mapping document. A mapping document is constituted by an ID, a source and target ontologies and a collection of mapping rules
Constructor Summary | |
---|---|
MappingDocument()
Constructor for a new empty mapping Document object |
|
MappingDocument(Id id,
Id sourceOnto,
Id targetOnto)
Constructor for a new mapping Document object |
Method Summary | |
---|---|
void |
addAnnotation(Annotation anno)
Add the given annotation to the annotations list/collection |
void |
addRule(MappingRule rule)
Used to add a rule to the mapping rule collection |
Annotation |
getAnnotation(int num)
Returns the annotation specified by the reference number (int param) |
java.util.Collection |
getAnnotations()
Returns the entire collection of annotations for a given mapping |
Id |
getId()
Returns the id of the mapping when predefined |
int |
getNbAnnotations()
Returns the total amount of annotations in a collection for a given mapping |
int |
getNbRules()
Returns the total amount of mapping rules in a collection for a given mapping |
MappingRule |
getRule(int num)
Returns the mapping rule specified by the reference number (int param) |
java.util.Collection |
getRules()
Returns the entire collection of mapping rules for a given mapping |
Id |
getSource()
Returns the id of the source ontology when predefined |
Id |
getTarget()
Returns the id of the source ontology when predefined |
void |
setId(Id id)
Sets the mapping id |
void |
setSource(Id source)
Sets the id of the source ontology |
void |
setTarget(Id target)
Sets the target ontology id |
java.lang.String |
toString()
Returns a string describing the mapping: the mapping id, the source and target ontologies, the annotations, and the mapping rules |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MappingDocument()
Constructor for a new empty mapping Document object
public MappingDocument(Id id, Id sourceOnto, Id targetOnto)
Constructor for a new mapping Document object
id
- (mapping id)sourceOnto
- (source ontology id)targetOnto
- (target ontology id)Method Detail |
---|
public void addAnnotation(Annotation anno)
Add the given annotation to the annotations list/collection
anno
- (Annotation object)public void addRule(MappingRule rule)
Used to add a rule to the mapping rule collection
rule
- (MappingRule object)public java.lang.String toString()
Returns a string describing the mapping: the mapping id, the source and target ontologies, the annotations, and the mapping rules
toString
in class java.lang.Object
public Id getId()
Returns the id of the mapping when predefined
public void setId(Id id)
Sets the mapping id
id
- (mapping id)public Id getSource()
Returns the id of the source ontology when predefined
public void setSource(Id source)
Sets the id of the source ontology
source
- (source ontology id)public Id getTarget()
Returns the id of the source ontology when predefined
public void setTarget(Id target)
Sets the target ontology id
target
- (target ontology id)public Annotation getAnnotation(int num)
Returns the annotation specified by the reference number (int param)
num
- (number referencing specific annotation in annotation list/collection)
public MappingRule getRule(int num)
Returns the mapping rule specified by the reference number (int param)
num
- (number referencing specific mapping rule in mapping rule list/collection)
public int getNbAnnotations()
Returns the total amount of annotations in a collection for a given mapping
public int getNbRules()
Returns the total amount of mapping rules in a collection for a given mapping
public java.util.Collection getAnnotations()
Returns the entire collection of annotations for a given mapping
public java.util.Collection getRules()
Returns the entire collection of mapping rules for a given mapping
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |