use of org.geotoolkit.sml.xml.v100.Classifier in project osate2 by osate.
the class ClassifierFeatureImpl method getFeaturingClassifiers.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public EList<Classifier> getFeaturingClassifiers() {
// DB This should be an EStructuralFeature.Setting
// final EList<Classifier> list = new BasicEList<Classifier>();
final EList<Classifier> list = new NonNotifyingEObjectEList<Classifier>(Classifier.class, this, Aadl2Package.CLASSIFIER_FEATURE__FEATURING_CLASSIFIER);
final Classifier contClassifier = getContainingClassifier();
if (contClassifier != null) {
list.add(contClassifier);
}
return list;
}
use of org.geotoolkit.sml.xml.v100.Classifier in project osate2 by osate.
the class ClassifierImpl method getInheritedMembers.
protected EList<NamedElement> getInheritedMembers(EList<NamedElement> tmp, EList<NamedElement> cls) {
// DONE: implemented get inherited members
for (Generalization g : getGeneralizations()) {
Classifier cl = g.getGeneral();
if (!Aadl2Util.isNull(cl) && !cls.contains(cl)) {
tmp.addAll(cl.getOwnedMembers());
cls.add(cl);
((ClassifierImpl) cl).getInheritedMembers(tmp, cls);
cls.remove(cl);
}
}
return tmp;
}
use of org.geotoolkit.sml.xml.v100.Classifier in project osate2 by osate.
the class ClassifierImpl method getAllPropertyAssociations.
// XXX: [AADL 1 -> AADL 2] Added to make instantiation work.
public EList<PropertyAssociation> getAllPropertyAssociations() {
final EList<PropertyAssociation> result = new BasicEList<PropertyAssociation>();
final EList<Classifier> classifiers = getSelfPlusAllExtended();
for (final ListIterator<Classifier> i = classifiers.listIterator(classifiers.size()); i.hasPrevious(); ) {
final Classifier current = i.previous();
result.addAll(current.getOwnedPropertyAssociations());
}
return result;
}
use of org.geotoolkit.sml.xml.v100.Classifier in project osate2 by osate.
the class ConnectionImpl method getFeaturingClassifiers.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public EList<Classifier> getFeaturingClassifiers() {
// DB This should be an EStructuralFeature.Setting
final EList<Classifier> list = new NonNotifyingEObjectEList<Classifier>(Classifier.class, this, Aadl2Package.CONNECTION__FEATURING_CLASSIFIER);
// BasicEList<Classifier> list = new BasicEList<Classifier>();
final Classifier classifier = getContainingClassifier();
// DB the list does not allow null values.
if (classifier != null) {
list.add(classifier);
}
return list;
}
use of org.geotoolkit.sml.xml.v100.Classifier in project osate2 by osate.
the class BehavioredImplementationImpl method getAllSubprogramCallSequences.
public EList<SubprogramCallSequence> getAllSubprogramCallSequences() {
EList<Classifier> ancestors = getSelfPlusAllExtended();
final BasicEList<SubprogramCallSequence> returnlist = new BasicEList<SubprogramCallSequence>();
for (Iterator<Classifier> it = ancestors.iterator(); it.hasNext(); ) {
final BehavioredImplementation current = (BehavioredImplementation) it.next();
returnlist.addAll(current.getOwnedSubprogramCallSequences());
}
return returnlist;
}
Aggregations