|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omwg.mediation.language.objectModel.MappingRule
public class MappingRule
Class for a mapping rule, represented by an id and a directive.
Field Summary | |
---|---|
boolean |
directionality
Represents a flag that indicates whether the mapping rules is unidirectional or bidirectional. |
Constructor Summary | |
---|---|
MappingRule()
Creates a new empty mapping rule. |
|
MappingRule(boolean directionality)
Construct a mapping rule object having a specified id and the indicated directionality. |
Method Summary | |
---|---|
void |
addAnnotation(Annotation annotation)
Attributes a collection of annotations of the mapping rule |
void |
addCondition(Condition condition)
Adds a condition (with value) to a new conditions array (collection), if the conditions array (collection) is empty |
void |
addLogicalExpressions(LogicalExpression logicalExpression)
Adds a logical expression (with value) to a new logical expression array (collection), if the logical expression array (collection) is empty |
java.lang.Object |
clone()
Clones the curent object. |
Annotation |
getAnnotation(int num)
Returns the annotation specified by the reference number (int param) |
java.util.Collection |
getAnnotations()
Returns entire collection of annotations when predefined |
java.util.Collection |
getConditions()
Returns a collection of the conditions of the mapping rule |
boolean |
getDirectionality()
Returns the directionality of the mapping rule when predefined(unidirectionality: false & bidirectionality: true) |
java.util.Collection |
getLogicalExpressions()
Returns a collection of the logical expressions of the mapping rule |
Expression |
getSource()
Returns the expression from the source ontology when predefined |
Expression |
getTarget()
Returns the expression from the target onotolgy when predefined |
void |
setAnnotations(java.util.Collection annotations)
Attributes a collection of annotations of the mapping rule |
void |
setConditions(java.util.Collection conditions)
Attributes a collection of the conditions of the mapping rule |
void |
setDirectionality(boolean directionality)
Sets the directionality of the mapping rule (unidirectionality: false & bidirectionality: true) |
void |
setLogicalExpressions(java.util.Collection logicalExpressions)
Attributes a collection of the logical expressions of the mapping rule |
void |
setSource(Expression source)
Sets the source ontology expression |
void |
setTarget(Expression target)
Sets the target ontology expression |
java.lang.String |
toString()
Provides a serialization for MappingRule objects. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean directionality
Represents a flag that indicates whether the mapping rules is unidirectional or bidirectional. Individual mappings are always bidirectional
Constructor Detail |
---|
public MappingRule()
Creates a new empty mapping rule.
public MappingRule(boolean directionality)
Construct a mapping rule object having a specified id and the indicated directionality.
directionality
- indicates whether the mapping rule is one-way (directionality: false) or two-way (directionality: true)Method Detail |
---|
public java.lang.Object clone()
Clones the curent object.
clone
in class java.lang.Object
public java.lang.String toString()
Provides a serialization for MappingRule objects.
toString
in class java.lang.Object
public Expression getSource()
Returns the expression from the source ontology when predefined
public void setSource(Expression source)
Sets the source ontology expression
source
- (expression from the source ontology)public Expression getTarget()
Returns the expression from the target onotolgy when predefined
public void setTarget(Expression target)
Sets the target ontology expression
target
- (expression from the target ontology)public boolean getDirectionality()
Returns the directionality of the mapping rule when predefined(unidirectionality: false & bidirectionality: true)
public void setDirectionality(boolean directionality)
Sets the directionality of the mapping rule (unidirectionality: false & bidirectionality: true)
directionality
- (of the mapping)public java.util.Collection getAnnotations()
Returns entire collection of annotations when predefined
public void setAnnotations(java.util.Collection annotations)
Attributes a collection of annotations of the mapping rule
annotations
- (entire collection)public void addAnnotation(Annotation annotation)
Attributes a collection of annotations of the mapping rule
annotation
- (entire collection)public java.util.Collection getConditions()
Returns a collection of the conditions of the mapping rule
public void setConditions(java.util.Collection conditions)
Attributes a collection of the conditions of the mapping rule
conditions
- (entire collection)public java.util.Collection getLogicalExpressions()
Returns a collection of the logical expressions of the mapping rule
public void setLogicalExpressions(java.util.Collection logicalExpressions)
Attributes a collection of the logical expressions of the mapping rule
logicalExpressions
- (entire collection)public void addCondition(Condition condition)
Adds a condition (with value) to a new conditions array (collection), if the conditions array (collection) is empty
condition
- public void addLogicalExpressions(LogicalExpression logicalExpression)
Adds a logical expression (with value) to a new logical expression array (collection), if the logical expression array (collection) is empty
logicalExpression
- public Annotation getAnnotation(int num)
Returns the annotation specified by the reference number (int param)
num
- (number referencing specific annotation in annotation list/collection)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |