Package org.nuxeo.ecm.core.schema.types
Interface Schema
-
- All Superinterfaces:
ComplexType
,Serializable
,Type
- All Known Implementing Classes:
SchemaImpl
public interface Schema extends ComplexType
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Type
getType(String typeName)
Gets a schema local type given its name.Type[]
getTypes()
Gets the types declared by this schema.default boolean
isVersionWritabe()
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 Detail
-
getType
Type getType(String typeName)
Gets a schema local type given its name.- Returns:
- the type or null if no such type
-
registerType
void registerType(Type type)
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
-
-