|
a |
|
b/src/main/java/genericbcm/validation/MultiClusterValidator.java |
|
|
1 |
/**
|
|
|
2 |
*
|
|
|
3 |
* $Id$
|
|
|
4 |
*/
|
|
|
5 |
package genericbcm.validation;
|
|
|
6 |
|
|
|
7 |
import genericbcm.Unit;
|
|
|
8 |
|
|
|
9 |
import org.eclipse.emf.common.util.EList;
|
|
|
10 |
|
|
|
11 |
/**
|
|
|
12 |
* A sample validator interface for {@link genericbcm.MultiCluster}.
|
|
|
13 |
* This doesn't really do anything, and it's not a real EMF artifact.
|
|
|
14 |
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
|
|
|
15 |
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
|
|
|
16 |
*/
|
|
|
17 |
public interface MultiClusterValidator {
|
|
|
18 |
boolean validate();
|
|
|
19 |
|
|
|
20 |
boolean validateMultiplicity(int value);
|
|
|
21 |
boolean validateUnits(EList<Unit> value);
|
|
|
22 |
}
|