Interface IDocumentTypeBuilder<T extends DocumentType>

  • Type Parameters:
    T - the type of document type.
    All Known Implementing Classes:
    DocumentTypeBuilder

    @StableMinor(version="14.0",
                 sinceVersion="8.1")
    public interface IDocumentTypeBuilder<T extends DocumentType>
    Document type builder.
    Since:
    8.1.0
    Version:
    $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
    • Method Detail

      • getId

        String getId()
        Returns the identifier of the document type this builder would build.
        Returns:
        the document type identifier.
        Since:
        8.1.0
      • getFields

        Map<String,​DocumentTypeField> getFields()
        Returns an unmodifiable map of fields in this builder.
        Returns:
        an unmodifiable map of fields, using the field identifier as the key.
        Since:
        8.1.0
      • addField

        IDocumentTypeBuilder<T> addField​(DocumentTypeField field)
        Adds the given field in the document type.
        Parameters:
        field - the field in the document type.
        Returns:
        this builder.
        Since:
        8.1.0
      • removeField

        IDocumentTypeBuilder<T> removeField​(String fieldId)
        Removes the given field from the document type.
        Parameters:
        fieldId - the field identifier.
        Returns:
        this builder.
        Since:
        8.1.0