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, ValueConverter
public class SchemaImpl
- extends ComplexTypeImpl
- implements Schema
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
Fields inherited from interface org.nuxeo.ecm.core.schema.types.Type |
ANY |
Methods inherited from class org.nuxeo.ecm.core.schema.types.ComplexTypeImpl |
addField, addField, addField, addField, canonicalXPath, convert, getField, getField, getFields, getFieldsCount, getNamespace, hasField, hasField, hasFields, isComplexType, isUnstructured, newInstance, validate |
Methods inherited from class org.nuxeo.ecm.core.schema.types.AbstractType |
decode, encode, getHelper, getName, getSchema, getSchemaName, getSuperType, getTypeHierarchy, isAny, isAnyType, isCompositeType, isListType, isNotNull, isReadOnly, isSimpleType, isSuperTypeOf, setNotNull, setReadOnly |
Methods inherited from interface org.nuxeo.ecm.core.schema.types.ComplexType |
addField, addField, addField, addField, getField, getField, getFields, getFieldsCount, getNamespace, hasField, hasField, hasFields, isUnstructured |
Methods inherited from interface org.nuxeo.ecm.core.schema.types.Type |
decode, encode, getHelper, getName, getSchema, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isComplexType, isCompositeType, isListType, isNotNull, isReadOnly, isSimpleType, isSuperTypeOf, newInstance, validate |
SchemaImpl
public SchemaImpl(String name)
SchemaImpl
public SchemaImpl(String name,
Namespace ns)
isLazy
public boolean isLazy()
- Specified by:
isLazy
in interface Schema
setLazy
public void setLazy(boolean isLazy)
- Description copied from interface:
Schema
- Sets the lazy flag for the given schema. DocumentTypes that was already
initialized are not notified about schema change.
- Specified by:
setLazy
in interface Schema
getType
public Type getType(String typeName)
- Description copied from interface:
Schema
- Gets a schema local type given its name.
- Specified by:
getType
in interface Schema
- Returns:
- the type or null if no such type
getTypes
public Type[] getTypes()
- Description copied from interface:
Schema
- Gets the types declared by this schema.
- Specified by:
getTypes
in interface Schema
registerType
public void registerType(Type type)
- Description copied from interface:
Schema
- Registers a new type in that schema context.
- Specified by:
registerType
in interface Schema
toString
public String toString()
- Overrides:
toString
in class ComplexTypeImpl
getRef
public TypeRef<Schema> getRef()
- Description copied from interface:
Type
- Gets a proxy (or reference to this type).
- Specified by:
getRef
in interface ComplexType
- Specified by:
getRef
in interface Schema
- Specified by:
getRef
in interface Type
- Overrides:
getRef
in class ComplexTypeImpl
- Returns:
- a reference to the type
Copyright © 2011 Nuxeo SAS. All Rights Reserved.