Package org.nuxeo.ecm.core.schema
Class DocumentTypeDescriptor
- java.lang.Object
-
- org.nuxeo.ecm.core.schema.DocumentTypeDescriptor
-
public class DocumentTypeDescriptor extends Object
Document Type Descriptor.Can be used to delay document type registration when not all prerequisites are met (e.g. supertype was not yet registered).
In this case the descriptor containing all the information needed to register the document is put in a queue waiting for the prerequisites to be met.
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description boolean
append
boolean
enabled
String[]
facets
String[]
forbiddenSubtypes
String
name
String
prefetch
SchemaDescriptor[]
schemas
Boolean
special
Allows to exclude the doctype from copy operations for example.String[]
subtypes
String
superTypeName
-
Constructor Summary
Constructors Constructor Description DocumentTypeDescriptor()
DocumentTypeDescriptor(String superTypeName, String name, SchemaDescriptor[] schemas, String[] facets)
DocumentTypeDescriptor(String superTypeName, String name, SchemaDescriptor[] schemas, String[] facets, String[] subtypes, String[] forbiddenSubtypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentTypeDescriptor
clone()
DocumentTypeDescriptor
merge(DocumentTypeDescriptor other)
String
toString()
-
-
-
Field Detail
-
name
public String name
-
schemas
public SchemaDescriptor[] schemas
-
superTypeName
public String superTypeName
-
facets
public String[] facets
-
prefetch
public String prefetch
-
append
public boolean append
-
special
public Boolean special
Allows to exclude the doctype from copy operations for example.- Since:
- 11.1
-
enabled
public boolean enabled
- Since:
- 2021.16
-
subtypes
public String[] subtypes
-
forbiddenSubtypes
public String[] forbiddenSubtypes
-
-
Constructor Detail
-
DocumentTypeDescriptor
public DocumentTypeDescriptor()
-
DocumentTypeDescriptor
public DocumentTypeDescriptor(String superTypeName, String name, SchemaDescriptor[] schemas, String[] facets)
-
-
Method Detail
-
clone
public DocumentTypeDescriptor clone()
-
merge
public DocumentTypeDescriptor merge(DocumentTypeDescriptor other)
-
-