use of org.osate.aadl2.PropertyType in project osate2 by osate.
the class AVariableDeclarationImpl method basicSetType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetType(PropertyType newType, NotificationChain msgs) {
PropertyType oldType = type;
type = newType;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CommonPackage.AVARIABLE_DECLARATION__TYPE, oldType, newType);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.osate.aadl2.PropertyType in project osate2 by osate.
the class TypeRefImpl method setRef.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setRef(PropertyType newRef) {
PropertyType oldRef = ref;
ref = newRef;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TYPE_REF__REF, oldRef, ref));
}
use of org.osate.aadl2.PropertyType in project osate2 by osate.
the class FormalParameterImpl method basicSetType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetType(PropertyType newType, NotificationChain msgs) {
PropertyType oldType = type;
type = newType;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VerifyPackage.FORMAL_PARAMETER__TYPE, oldType, newType);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.osate.aadl2.PropertyType in project osate2 by osate.
the class AadlBaTypeChecker method propertyElementHolderResolver.
private PropertyElementHolder propertyElementHolderResolver(Element el, LocationReference loc) {
PropertyElementHolder result = null;
if (el instanceof BasicProperty) {
BasicProperty bp = (BasicProperty) el;
BasicPropertyHolder tmp = _fact.createBasicPropertyHolder();
tmp.setBasicProperty(bp);
result = tmp;
} else if (el instanceof PropertyAssociation) {
PropertyAssociation pa = (PropertyAssociation) el;
PropertyAssociationHolder tmp = _fact.createPropertyAssociationHolder();
tmp.setPropertyAssociation(pa);
result = tmp;
} else if (el instanceof PropertyExpression) {
PropertyExpression pe = (PropertyExpression) el;
PropertyExpressionHolder tmp = _fact.createPropertyExpressionHolder();
tmp.setPropertyExpression(pe);
result = tmp;
} else if (el instanceof PropertyType) {
PropertyType pt = (PropertyType) el;
PropertyTypeHolder tmp = _fact.createPropertyTypeHolder();
tmp.setPropertyType(pt);
result = tmp;
} else if (el instanceof EnumerationLiteral) {
EnumerationLiteral enumLit = (EnumerationLiteral) el;
EnumLiteralHolder tmp = _fact.createEnumLiteralHolder();
tmp.setEnumLiteral(enumLit);
result = tmp;
} else {
String errorMsg = "type: " + el.getClass().getSimpleName() + " is not supported yet.";
System.err.println(errorMsg);
throw new UnsupportedOperationException(errorMsg);
}
result.setLocationReference(loc);
return result;
}
use of org.osate.aadl2.PropertyType in project osate2 by osate.
the class BasicPropertyImpl method basicSetOwnedPropertyType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetOwnedPropertyType(PropertyType newOwnedPropertyType, NotificationChain msgs) {
PropertyType oldOwnedPropertyType = ownedPropertyType;
ownedPropertyType = newOwnedPropertyType;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Aadl2Package.BASIC_PROPERTY__OWNED_PROPERTY_TYPE, oldOwnedPropertyType, newOwnedPropertyType);
if (msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
}
}
return msgs;
}
Aggregations