Class Markdown.Builder

    • Method Detail

      • id

        public Markdown.Builder id​(java.lang.String id)
        unique id for the element within a resource (for internal references)
        Overrides:
        id in class String.Builder
        Parameters:
        id - xml:id (or equivalent in JSON)
        Returns:
        A reference to this Builder instance
      • extension

        public Markdown.Builder extension​(Extension... extension)
        May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

        Adds new element(s) to the existing list. If any of the elements are null, calling build() will fail.

        Overrides:
        extension in class String.Builder
        Parameters:
        extension - Additional content defined by implementations
        Returns:
        A reference to this Builder instance
      • extension

        public Markdown.Builder extension​(java.util.Collection<Extension> extension)
        May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

        Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling build() will fail.

        Overrides:
        extension in class String.Builder
        Parameters:
        extension - Additional content defined by implementations
        Returns:
        A reference to this Builder instance
        Throws:
        java.lang.NullPointerException - If the passed collection is null
      • value

        public Markdown.Builder value​(java.lang.String value)
        Primitive value for markdown
        Overrides:
        value in class String.Builder
        Parameters:
        value - Primitive value for markdown
        Returns:
        A reference to this Builder instance
      • build

        public Markdown build()
        Build the Markdown
        Specified by:
        build in interface Builder<Element>
        Overrides:
        build in class String.Builder
        Returns:
        An immutable object of type Markdown
        Throws:
        java.lang.IllegalStateException - if the current state cannot be built into a valid Markdown per the base specification
      • validate

        protected void validate​(Markdown markdown)