public static EnumLiteral getEnumLiteralPropertyAttribute(final Property property, final EnumLiteralPropertyAttributeType type) { boolean _and = false; EList<PropertyAttribute> _propertyAttributes = property.getPropertyAttributes(); boolean _notEquals = (!Objects.equal(_propertyAttributes, null)); if (!_notEquals) { _and = false; } else { EList<PropertyAttribute> _propertyAttributes_1 = property.getPropertyAttributes(); int _size = _propertyAttributes_1.size(); boolean _greaterThan = (_size > 0); _and = _greaterThan; } if (_and) { EList<PropertyAttribute> _propertyAttributes_2 = property.getPropertyAttributes(); for (final PropertyAttribute pA : _propertyAttributes_2) { if ((pA instanceof EnumLiteralPropertyAttribute)) { EnumLiteralPropertyAttribute bPA = ((EnumLiteralPropertyAttribute) pA); EnumLiteralPropertyAttributeType _type = bPA.getType(); boolean _equals = Objects.equal(_type, type); if (_equals) { return bPA.getValue(); } } } } return null; }
public static boolean getBooleanPropertyAttribute(final Property property, final BooleanPropertyAttributeType type) { boolean _and = false; EList<PropertyAttribute> _propertyAttributes = property.getPropertyAttributes(); boolean _notEquals = (!Objects.equal(_propertyAttributes, null)); if (!_notEquals) { _and = false; } else { EList<PropertyAttribute> _propertyAttributes_1 = property.getPropertyAttributes(); int _size = _propertyAttributes_1.size(); boolean _greaterThan = (_size > 0); EList<PropertyAttribute> _propertyAttributes_2 = property.getPropertyAttributes(); for (final PropertyAttribute pA : _propertyAttributes_2) { if ((pA instanceof BooleanPropertyAttribute)) {