@StableMinor(version="12.4", sinceVersion="8.1") public class DocumentType extends Object implements Serializable
document
type.Modifier | Constructor and Description |
---|---|
protected |
DocumentType(String id)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addField(DocumentTypeField field)
Adds the given field in this document type.
|
Document |
createDocument()
Returns a new empty document of this document type.
|
Map<String,DocumentTypeField> |
getFields()
Returns an unmodifiable map of fields, using the field identifier as the key.
|
String |
getId()
Returns the identifier.
|
protected void |
removeField(String fieldId)
Removes the field with the given identifier of this document type.
|
String |
toString() |
protected DocumentType(String id)
id
- this document type identifier.public String getId()
public Map<String,DocumentTypeField> getFields()
protected void addField(DocumentTypeField field)
field
- the field in this document type.DocumentTypeFields
protected void removeField(String fieldId)
field
- the field identifier.public Document createDocument()
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.