Package org.nuxeo.ecm.core.schema.types
Interface Schema
- All Superinterfaces:
ComplexType
,Serializable
,Type
- All Known Implementing Classes:
SchemaImpl
A marker interface for schemas.
A schema is a complex type that can be used used to create composite types - such as document types.
Schemas have no super types and must not be used as field types.
-
Method Summary
Modifier and TypeMethodDescriptionGets a schema local type given its name.Type[]
getTypes()
Gets the types declared by this schema.default boolean
void
registerType
(Type type) Registers a new type in that schema context.Methods inherited from interface org.nuxeo.ecm.core.schema.types.ComplexType
addField, getField, getField, getFields, getFieldsCount, getNamespace, hasField, hasFields
Methods inherited from interface org.nuxeo.ecm.core.schema.types.Type
convert, decode, encode, getConstraints, getName, getObjectResolver, getSchema, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isComplexType, isCompositeType, isListType, isSimpleType, isSuperTypeOf, newInstance, validate
-
Method Details
-
getTypes
Type[] getTypes()Gets the types declared by this schema. -
getType
Gets a schema local type given its name.- Returns:
- the type or null if no such type
-
registerType
Registers a new type in that schema context. -
isVersionWritabe
default boolean isVersionWritabe()- Returns:
- true if the schema's fields are writable even for Version document.
- Since:
- 8.4
-