use of org.osate.ba.aadlba.PropertyTypeHolder 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;
}
Aggregations