Class AttributeClassHelper


  • public class AttributeClassHelper
    extends Object
    Helper for handling AttributesClasses of an entity. A single virtual 'class' is created from the classes provided as arguments. With it checking of attributes is fast.

    Additionally static utility methods are provided allowing to clean up the duplicated entries in ACs.

    Author:
    K. Benedyczak
    • Field Detail

    • Method Detail

      • isRestricting

        public boolean isRestricting​(AttributeClassHelper original)
        Parameters:
        original -
        Returns:
        true only if the this effective class is more restrictive then the given argument, i.e. it has more mandatory attributes or less allowed.
      • isAllowed

        public boolean isAllowed​(String attribute)
      • isMandatory

        public boolean isMandatory​(String attribute)
      • getEffectiveAllowed

        public Set<String> getEffectiveAllowed()
      • getEffectiveMandatory

        public Set<String> getEffectiveMandatory()
      • isEffectiveAllowArbitrary

        public boolean isEffectiveAllowArbitrary()