public interface DocumentType extends CompositeType
Sample document types are Workspace, Section, Domain,... The list of builtin document type is visible at NXCore/OSGI-INF/CoreExtensions.xml.
Modifier and Type | Method and Description |
---|---|
Set<String> |
getFacets()
Gets all the facets of this document type.
|
PrefetchInfo |
getPrefetchInfo()
Gets the prefetch info, or null if no prefetch is defined.
|
boolean |
hasFacet(String facetName)
Returns
true if this document type has the given facetName facet, false otherwise . |
boolean |
isFile()
Tests whether this type describes a document (not a folder!) or not.
|
boolean |
isFolder()
Tests whether this type describes a folder or not.
|
boolean |
isOrdered()
Tests whether this type describe an ordered folder or not.
|
getSchema, getSchemaNames, getSchemas, hasSchema, hasSchemas
addField, getField, getField, getFields, getFieldsCount, getNamespace, hasField, hasFields
convert, decode, encode, getConstraints, getName, getObjectResolver, getSchema, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isComplexType, isCompositeType, isListType, isSimpleType, isSuperTypeOf, newInstance, validate
PrefetchInfo getPrefetchInfo()
If the prefetch info is not null, the caller should use it when instantiating a document to preload the fields defined by the prefetch info.
If no prefetch is specified by the document type, the caller is free to use a default prefetch info or no prefetch at all.
boolean isFile()
boolean isFolder()
boolean isOrdered()
Set<String> getFacets()
Facets inherited from parents are taken into account.
Copyright © 2016 Nuxeo SA. All rights reserved.