Search in sources :

Example 1 with BasicPropertyHolder

use of org.osate.ba.aadlba.BasicPropertyHolder in project osate2 by osate.

the class AadlBaParserVisitor method clonePropertyNameHolder.

private PropertyElementHolder clonePropertyNameHolder(PropertyElementHolder sourcePeh) {
    PropertyElementHolder result = null;
    // BasicPropertyHolder
    if (sourcePeh instanceof BasicPropertyHolder) {
        result = _baFact.createBasicPropertyHolder();
    } else if (sourcePeh instanceof EnumLiteralHolder) {
        result = _baFact.createEnumLiteralHolder();
    } else if (sourcePeh instanceof PropertyAssociationHolder) {
        result = _baFact.createPropertyAssociationHolder();
    } else if (sourcePeh instanceof PropertyExpressionHolder) {
        result = _baFact.createPropertyExpressionHolder();
    } else if (sourcePeh instanceof PropertyTypeHolder) {
        result = _baFact.createPropertyTypeHolder();
    }
    result.setElement(sourcePeh.getElement());
    result.setLocationReference(sourcePeh.getLocationReference());
    return result;
}
Also used : EnumLiteralHolder(org.osate.ba.aadlba.EnumLiteralHolder) BasicPropertyHolder(org.osate.ba.aadlba.BasicPropertyHolder) PropertyExpressionHolder(org.osate.ba.aadlba.PropertyExpressionHolder) PropertyTypeHolder(org.osate.ba.aadlba.PropertyTypeHolder) PropertyElementHolder(org.osate.ba.aadlba.PropertyElementHolder) PropertyAssociationHolder(org.osate.ba.aadlba.PropertyAssociationHolder)

Aggregations

BasicPropertyHolder (org.osate.ba.aadlba.BasicPropertyHolder)1 EnumLiteralHolder (org.osate.ba.aadlba.EnumLiteralHolder)1 PropertyAssociationHolder (org.osate.ba.aadlba.PropertyAssociationHolder)1 PropertyElementHolder (org.osate.ba.aadlba.PropertyElementHolder)1 PropertyExpressionHolder (org.osate.ba.aadlba.PropertyExpressionHolder)1 PropertyTypeHolder (org.osate.ba.aadlba.PropertyTypeHolder)1