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:
- java.io.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 |
Method Summary |
TypeRef<Schema> |
getRef()
Gets a proxy (or reference to this type). |
Type |
getType(java.lang.String typeName)
Gets a schema local type given its name. |
Type[] |
getTypes()
Gets the types declared by this schema. |
boolean |
isLazy()
|
void |
registerType(Type type)
Registers a new type in that schema context. |
void |
setLazy(boolean isLazy)
Sets the lazy flag for the given schema. |
java.lang.String |
toString()
|
Methods inherited from class org.nuxeo.ecm.core.schema.types.ComplexTypeImpl |
addField, addField, addField, addField, 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 class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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(java.lang.String name)
SchemaImpl
public SchemaImpl(java.lang.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(java.lang.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 java.lang.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 © 2010 Nuxeo SAS. All Rights Reserved.