-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a32424
commit 8a7d120
Showing
53 changed files
with
1,107 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...va/fr/softeam/cameldesigner/exchange/exporter/constraint/AttributeConstraintExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package fr.softeam.cameldesigner.exchange.exporter.constraint; | ||
|
||
import org.eclipse.emf.cdo.CDOObject; | ||
import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.AttributeConstraint; | ||
|
||
public abstract class AttributeConstraintExporter<T extends AttributeConstraint> extends UnaryConstraintExporter<T>{ | ||
|
||
public AttributeConstraintExporter(T elt) { | ||
super(elt); | ||
} | ||
|
||
|
||
@Override | ||
public CDOObject createCamelElt(CDOObject context) { | ||
return super.createCamelElt(context); | ||
} | ||
|
||
|
||
@Override | ||
public void setProperties(CDOObject elt) { | ||
super.setProperties(elt); | ||
} | ||
|
||
|
||
@Override | ||
public void attach(CDOObject elt, CDOObject context) { | ||
super.attach(elt, context); | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
...va/fr/softeam/cameldesigner/exchange/exporter/constraint/CompositeConstraintExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package fr.softeam.cameldesigner.exchange.exporter.constraint; | ||
|
||
import org.eclipse.emf.cdo.CDOObject; | ||
import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.CompositeConstraint; | ||
|
||
public abstract class CompositeConstraintExporter<T extends CompositeConstraint> extends ConstraintExporter<T>{ | ||
|
||
public CompositeConstraintExporter(T elt) { | ||
super(elt); | ||
} | ||
|
||
|
||
@Override | ||
public CDOObject createCamelElt(CDOObject context) { | ||
return super.createCamelElt(context); | ||
} | ||
|
||
|
||
@Override | ||
public void setProperties(CDOObject elt) { | ||
super.setProperties(elt); | ||
} | ||
|
||
|
||
@Override | ||
public void attach(CDOObject elt, CDOObject context) { | ||
super.attach(elt, context); | ||
} | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
src/main/java/fr/softeam/cameldesigner/exchange/exporter/constraint/ConstraintExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package fr.softeam.cameldesigner.exchange.exporter.constraint; | ||
|
||
import org.eclipse.emf.cdo.CDOObject; | ||
import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.CamelConstraint; | ||
import fr.softeam.cameldesigner.exchange.exporter.core.ExpendableElementExporter; | ||
|
||
public abstract class ConstraintExporter<T extends CamelConstraint> extends ExpendableElementExporter<T>{ | ||
|
||
public ConstraintExporter(T elt) { | ||
super(elt); | ||
} | ||
|
||
|
||
@Override | ||
public CDOObject createCamelElt(CDOObject context) { | ||
return super.createCamelElt(context); | ||
} | ||
|
||
|
||
@Override | ||
public void setProperties(CDOObject elt) { | ||
super.setProperties(elt); | ||
} | ||
|
||
|
||
@Override | ||
public void attach(CDOObject elt, CDOObject context) { | ||
if ((context instanceof camel.constraint.ConstraintModel) && (elt instanceof camel.constraint.Constraint)) { | ||
((camel.constraint.ConstraintModel) context).getConstraints().add((camel.constraint.Constraint) elt); | ||
}else { | ||
super.attach(elt, context); | ||
} | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
.../java/fr/softeam/cameldesigner/exchange/exporter/constraint/IfThenConstraintExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package fr.softeam.cameldesigner.exchange.exporter.constraint; | ||
|
||
import org.eclipse.emf.cdo.CDOObject; | ||
import camel.constraint.ConstraintFactory; | ||
import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.IfThenConstraint; | ||
|
||
public class IfThenConstraintExporter<T extends IfThenConstraint> extends CompositeConstraintExporter<T>{ | ||
|
||
public IfThenConstraintExporter(T elt) { | ||
super(elt); | ||
} | ||
|
||
|
||
@Override | ||
public CDOObject createCamelElt(CDOObject context) { | ||
return ConstraintFactory.eINSTANCE.createIfThenConstraint(); | ||
} | ||
|
||
|
||
@Override | ||
public void setProperties(CDOObject elt) { | ||
super.setProperties(elt); | ||
} | ||
|
||
|
||
@Override | ||
public void attach(CDOObject elt, CDOObject context) { | ||
super.attach(elt, context); | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
...java/fr/softeam/cameldesigner/exchange/exporter/constraint/LogicalConstraintExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package fr.softeam.cameldesigner.exchange.exporter.constraint; | ||
|
||
import org.eclipse.emf.cdo.CDOObject; | ||
import camel.constraint.ConstraintFactory; | ||
import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.LogicalConstraint; | ||
|
||
public class LogicalConstraintExporter<T extends LogicalConstraint> extends CompositeConstraintExporter<T>{ | ||
|
||
public LogicalConstraintExporter(T elt) { | ||
super(elt); | ||
} | ||
|
||
|
||
@Override | ||
public CDOObject createCamelElt(CDOObject context) { | ||
return ConstraintFactory.eINSTANCE.createLogicalConstraint(); | ||
} | ||
|
||
|
||
@Override | ||
public void setProperties(CDOObject elt) { | ||
super.setProperties(elt); | ||
} | ||
|
||
|
||
@Override | ||
public void attach(CDOObject elt, CDOObject context) { | ||
super.attach(elt, context); | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
.../java/fr/softeam/cameldesigner/exchange/exporter/constraint/MetricConstraintExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package fr.softeam.cameldesigner.exchange.exporter.constraint; | ||
|
||
import org.eclipse.emf.cdo.CDOObject; | ||
import camel.constraint.ConstraintFactory; | ||
import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint; | ||
|
||
public class MetricConstraintExporter<T extends MetricConstraint> extends ConstraintExporter<T>{ | ||
|
||
public MetricConstraintExporter(T elt) { | ||
super(elt); | ||
} | ||
|
||
|
||
@Override | ||
public CDOObject createCamelElt(CDOObject context) { | ||
return ConstraintFactory.eINSTANCE.createMetricConstraint(); | ||
} | ||
|
||
|
||
@Override | ||
public void setProperties(CDOObject elt) { | ||
super.setProperties(elt); | ||
} | ||
|
||
|
||
@Override | ||
public void attach(CDOObject elt, CDOObject context) { | ||
super.attach(elt, context); | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
.../softeam/cameldesigner/exchange/exporter/constraint/MetricVariableConstraintExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package fr.softeam.cameldesigner.exchange.exporter.constraint; | ||
|
||
import org.eclipse.emf.cdo.CDOObject; | ||
import camel.constraint.ConstraintFactory; | ||
import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricVariableConstraint; | ||
|
||
public class MetricVariableConstraintExporter<T extends MetricVariableConstraint> extends UnaryConstraintExporter<T>{ | ||
|
||
public MetricVariableConstraintExporter(T elt) { | ||
super(elt); | ||
} | ||
|
||
|
||
@Override | ||
public CDOObject createCamelElt(CDOObject context) { | ||
return ConstraintFactory.eINSTANCE.createMetricVariableConstraint(); | ||
} | ||
|
||
|
||
@Override | ||
public void setProperties(CDOObject elt) { | ||
super.setProperties(elt); | ||
} | ||
|
||
|
||
@Override | ||
public void attach(CDOObject elt, CDOObject context) { | ||
super.attach(elt, context); | ||
} | ||
|
||
} |
Oops, something went wrong.