Class AttributesClass

  • All Implemented Interfaces:
    DescribedObject, NamedObject

    public class AttributesClass
    extends DescribedObjectImpl
    Represents attribute class, i.e. a structure with two sets of attribute types. The mandatory set defines which attributes are mandatory for an entity having the class and allowed - which are allowed. It is possible to set that all attributes are allowed. All mandatory attributes are always allowed.

    Attribute class can have a parents. Then all mandatory and allowed attribute types of the parent are added to those defined locally.

    Attribute class inheritance can be multilevel.

    Attribute class is always assigned in a scope of a particular group, but the group is not defined in the class itself, i.e. the class can be used in many groups.

    If an entity has multiple attribute classes assigned in some group, then all sets are summed up. If any of the classes allows for arbitrary attributes, then effectively all attributes are allowed.

    All mandatory attributes are always allowed.

    This class uses the default JSON serialization.

    Author:
    K. Benedyczak
    • Constructor Detail

      • AttributesClass

        public AttributesClass()
        Creates an empty, anonymous AC: nothing is required nor allowed