use of org.osate.aadl2.contrib.modeling.ModelingProperties in project osate2 by osate.
the class GetProperties method getClassifierMatchingRuleProperty.
public static String getClassifierMatchingRuleProperty(NamedElement ne) {
Property classifierMatchingRuleProperty = GetProperties.lookupPropertyDefinition(ne, ModelingProperties._NAME, ModelingProperties.CLASSIFIER_MATCHING_RULE);
EnumerationLiteral classifierMatchingRuleValue;
try {
classifierMatchingRuleValue = PropertyUtils.getEnumLiteral(ne, classifierMatchingRuleProperty);
} catch (PropertyNotPresentException e) {
return ModelingProperties.CLASSIFIER_MATCH;
}
return classifierMatchingRuleValue.getName();
}
use of org.osate.aadl2.contrib.modeling.ModelingProperties in project osate2 by osate.
the class GetProperties method getClassifierSubstitutionRuleProperty.
public static String getClassifierSubstitutionRuleProperty(NamedElement ne) {
Property classifierMatchingRuleProperty = GetProperties.lookupPropertyDefinition(ne, ModelingProperties._NAME, ModelingProperties.CLASSIFIER_SUBSTITUTION_RULE);
EnumerationLiteral classifierMatchingRuleValue;
try {
classifierMatchingRuleValue = PropertyUtils.getEnumLiteral(ne, classifierMatchingRuleProperty);
} catch (PropertyNotPresentException e) {
return ModelingProperties.CLASSIFIER_MATCH;
}
return classifierMatchingRuleValue.getName();
}
Aggregations