Interface ConstraintMetaData

    • Method Detail

      • getName

        String getName()
        Returns the name of this meta data object.
        Returns:
        This meta data object's name.
      • getType

        Type getType()
        Returns the data type of this meta data object, e.g. the type of a bean property or the return type of a method.
        Returns:
        This meta data object's type.
      • getKind

        ElementKind getKind()
        Returns the kind of this meta data object.
        Returns:
        The kind of this meta data object.
      • isCascading

        boolean isCascading()
        Whether this meta data object is marked for cascaded validation or not.
        Returns:
        trueif this object is marked for cascaded validation, false otherwise.
      • isConstrained

        boolean isConstrained()
        Whether this meta data object is constrained by any means or not.
        Returns:
        true if this object is marked for cascaded validation or has any constraints, false otherwise.
      • asDescriptor

        ElementDescriptor asDescriptor​(boolean defaultGroupSequenceRedefined,
                                       List<Class<?>> defaultGroupSequence)
        Returns this meta data object's corresponding representation in the descriptor model.
        Parameters:
        defaultGroupSequenceRedefined - Whether the bean hosting the represented element has a redefined default group sequence or not.
        defaultGroupSequence - The default group sequence of the bean hosting the represented element.
        Returns:
        This meta data object's corresponding descriptor model representation. Implementations should return a specific sub type of ElementDescriptor.