Class AttributeConstraintModel

    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • QUALIFIER

        public static final java.lang.String QUALIFIER
        Generated constant - Attribute key of AttributeConstraint.qualifier attribute defined at extension validation.
        See Also:
        Constant Field Values
      • LANGUAGES

        public static final java.lang.String LANGUAGES
        Generated constant - Attribute key of AttributeConstraint.languages attribute defined at extension validation.
        See Also:
        Constant Field Values
      • DESCRIPTOR

        public static final java.lang.String DESCRIPTOR
        Generated constant - Attribute key of AttributeConstraint.descriptor attribute defined at extension validation.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AttributeConstraintModel

        public AttributeConstraintModel()
        Generated constructor - Default constructor for generic creation.
      • AttributeConstraintModel

        public AttributeConstraintModel​(ItemModelContext ctx)
        Generated constructor - Default constructor for creation with existing context
        Parameters:
        ctx - the model context to be injected, must not be null
      • AttributeConstraintModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public AttributeConstraintModel​(java.lang.Class _annotation,
                                        java.lang.String _id)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - Constructor with all mandatory attributes.
        Parameters:
        _annotation - initial attribute declared by type AbstractConstraint at extension validation
        _id - initial attribute declared by type AbstractConstraint at extension validation
      • AttributeConstraintModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public AttributeConstraintModel​(java.lang.Class _annotation,
                                        java.lang.String _id,
                                        ItemModel _owner)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - for all mandatory and initial attributes.
        Parameters:
        _annotation - initial attribute declared by type AbstractConstraint at extension validation
        _id - initial attribute declared by type AbstractConstraint at extension validation
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getLanguages

        @Accessor(qualifier="languages",
                  type=GETTER)
        public java.util.Set<LanguageModel> getLanguages()
        Generated method - Getter of the AttributeConstraint.languages attribute defined at extension validation. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the languages - Languages for which constraint will be enforced
      • getQualifier

        @Accessor(qualifier="qualifier",
                  type=GETTER)
        public java.lang.String getQualifier()
        Generated method - Getter of the AttributeConstraint.qualifier attribute defined at extension validation.
        Returns:
        the qualifier - Qualifier name for attribute descriptor
      • setDescriptor

        @Accessor(qualifier="descriptor",
                  type=SETTER)
        public void setDescriptor​(AttributeDescriptorModel value)
        Generated method - Setter of AttributeConstraint.descriptor attribute defined at extension validation.
        Parameters:
        value - the descriptor
      • setLanguages

        @Accessor(qualifier="languages",
                  type=SETTER)
        public void setLanguages​(java.util.Set<LanguageModel> value)
        Generated method - Setter of AttributeConstraint.languages attribute defined at extension validation.
        Parameters:
        value - the languages - Languages for which constraint will be enforced
      • setQualifier

        @Accessor(qualifier="qualifier",
                  type=SETTER)
        public void setQualifier​(java.lang.String value)
        Generated method - Setter of AttributeConstraint.qualifier attribute defined at extension validation.
        Parameters:
        value - the qualifier - Qualifier name for attribute descriptor