Package lumis.portal.bigdata
Interface IDocumentTypeBuilder<T extends DocumentType>
-
- Type Parameters:
T
- the type of document type.
- All Known Implementing Classes:
DocumentTypeBuilder
@StableMinor(version="14.1", sinceVersion="8.1") public interface IDocumentTypeBuilder<T extends DocumentType>
Document type builder.- Since:
- 8.1.0
- Version:
- $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IDocumentTypeBuilder<T>
addField(DocumentTypeField field)
Adds the given field in the document type.T
build()
Returns an immutableDocumentType
.Map<String,DocumentTypeField>
getFields()
Returns an unmodifiable map of fields in this builder.String
getId()
Returns the identifier of the document type this builder would build.IDocumentTypeBuilder<T>
removeField(String fieldId)
Removes the given field from the document type.
-
-
-
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
-
build
T build()
Returns an immutableDocumentType
.- Returns:
- an immutable
DocumentType
. - Since:
- 8.1.0
-
-