示例#1
0
  public void applyEffectOnAttribute(
      final @Nonnull String attributeCode, final @Nonnull Effect<BigDecimal> effect)
      throws AttributeNotFound {
    AttributeFeature attributeFeature = getAttributeFeature();

    if (attributeFeature != null) {
      attributeFeature.applyEffectOnAttribute(attributeCode, effect);
    } else {
      throw new AttributeNotFound(getFeatureEntityId(), attributeCode);
    }
  }