DDProperty.java 435 B

123456789101112131415161718
  1. package org.leumasjaffe.charsheet.model.features;
  2. import java.util.Map;
  3. import com.fasterxml.jackson.annotation.JsonTypeInfo;
  4. import com.fasterxml.jackson.annotation.JsonTypeInfo.Id;
  5. @JsonTypeInfo(use=Id.MINIMAL_CLASS)
  6. public interface DDProperty {
  7. public enum Group {
  8. NONE
  9. }
  10. String getName();
  11. String getDescription();
  12. boolean appliesTo(Object key);
  13. @Deprecated <T> T value();
  14. void accumulate(Map<String, Object> props);
  15. }