Package org.nuxeo.ecm.core.schema.types
Class SchemaImpl
java.lang.Object
org.nuxeo.ecm.core.schema.types.AbstractType
org.nuxeo.ecm.core.schema.types.ComplexTypeImpl
org.nuxeo.ecm.core.schema.types.SchemaImpl
- All Implemented Interfaces:
Serializable
,ComplexType
,Schema
,Type
The implementation of a Schema
- See Also:
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.schema.types.ComplexTypeImpl
fields, fieldsByName, ns
Fields inherited from class org.nuxeo.ecm.core.schema.types.AbstractType
constraints, EMPTY_SUPERTYPES, name, schema, superType
-
Constructor Summary
ConstructorDescriptionSchemaImpl
(String name, Namespace ns) Constructor for a schema.SchemaImpl
(String name, Namespace ns, boolean isVersionWritabe) SchemaImpl
(ComplexType complexType, String name, Namespace ns, boolean isVersionWritabe) Create a schema from a ComplexType -
Method Summary
Modifier and TypeMethodDescriptionGets the schema defining this type.Gets a schema local type given its name.Type[]
getTypes()
Gets the types declared by this schema.boolean
void
registerType
(Type type) Registers a new type in that schema context.toString()
Methods inherited from class org.nuxeo.ecm.core.schema.types.ComplexTypeImpl
addField, addField, canonicalXPath, convert, getField, getField, getFields, getFieldsCount, getNamespace, hasField, hasFields, isComplexType, newInstance, validate
Methods inherited from class org.nuxeo.ecm.core.schema.types.AbstractType
addConstraints, decode, encode, getConstraints, getName, getObjectResolver, getSchemaName, getSuperType, getTypeHierarchy, isAny, isAnyType, isCompositeType, isListType, isSimpleType, isSuperTypeOf, validateConstraints
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isComplexType, isCompositeType, isListType, isSimpleType, isSuperTypeOf, newInstance, validate
-
Field Details
-
isVersionWritabe
public boolean isVersionWritabe
-
-
Constructor Details
-
SchemaImpl
Constructor for a schema. Its types (fields) are then added throughregisterType(org.nuxeo.ecm.core.schema.types.Type)
. -
SchemaImpl
-
SchemaImpl
Create a schema from a ComplexType- Since:
- 5.7
-
-
Method Details
-
getType
Description copied from interface:Schema
Gets a schema local type given its name. -
getTypes
Description copied from interface:Schema
Gets the types declared by this schema. -
registerType
Description copied from interface:Schema
Registers a new type in that schema context.- Specified by:
registerType
in interfaceSchema
-
toString
- Overrides:
toString
in classComplexTypeImpl
-
getSchema
Description copied from interface:Type
Gets the schema defining this type.- Specified by:
getSchema
in interfaceType
- Overrides:
getSchema
in classAbstractType
-
isVersionWritabe
public boolean isVersionWritabe()- Specified by:
isVersionWritabe
in interfaceSchema
- Returns:
- true if the schema's fields are writable even for Version document.
-