Class DefaultContentDescriptor

    • Field Detail

      • DEFAULT_CONTENT_TYPE

        public static final Type DEFAULT_CONTENT_TYPE
        Default content type of all content descriptors.
        Since:
        10.9
    • Constructor Detail

      • DefaultContentDescriptor

        public DefaultContentDescriptor()
        Default constructor.
      • DefaultContentDescriptor

        public DefaultContentDescriptor​(String description)
        Parameters:
        description - the description of the content.
      • DefaultContentDescriptor

        public DefaultContentDescriptor​(boolean mandatory)
        Parameters:
        mandatory - indicate if the content is mandatory.
      • DefaultContentDescriptor

        public DefaultContentDescriptor​(String description,
                                        boolean mandatory)
        Parameters:
        description - the description of the content.
        mandatory - indicate if the content is mandatory.
      • DefaultContentDescriptor

        public DefaultContentDescriptor​(String description,
                                        boolean mandatory,
                                        Type type)
        Parameters:
        description - the description of the content.
        mandatory - indicate if the content is mandatory.
        type - Specify the type of the content
        Since:
        10.10RC1
    • Method Detail

      • isMandatory

        public boolean isMandatory()
        Specified by:
        isMandatory in interface ContentDescriptor
        Returns:
        indicate if the macro content is mandatory.
      • getType

        public Type getType()
        Description copied from interface: ContentDescriptor
        This method will return the type of the macro content. By default it fallback to String.
        Specified by:
        getType in interface ContentDescriptor
        Returns:
        the type of the macro content.