Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.schema.types
Class SchemaImpl

java.lang.Object
  extended by org.nuxeo.ecm.core.schema.types.AbstractType
      extended by org.nuxeo.ecm.core.schema.types.ComplexTypeImpl
          extended by 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

Field Summary
 
Fields inherited from class org.nuxeo.ecm.core.schema.types.ComplexTypeImpl
F_UNSTRUCT_DEFAULT, F_UNSTRUCT_FALSE, F_UNSTRUCT_TRUE
 
Fields inherited from class org.nuxeo.ecm.core.schema.types.AbstractType
EMPTY_SUPERTYPES, F_NOTNULL, F_READONLY
 
Fields inherited from interface org.nuxeo.ecm.core.schema.types.Type
ANY
 
Constructor Summary
SchemaImpl(String name)
           
SchemaImpl(String name, Namespace ns)
           
 
Method Summary
 TypeRef<Schema> getRef()
          Gets a proxy (or reference to this type).
 Type getType(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.
 String toString()
           
 
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 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
 
Methods inherited from interface org.nuxeo.ecm.core.schema.types.ValueConverter
convert
 

Constructor Detail

SchemaImpl

public SchemaImpl(String name)

SchemaImpl

public SchemaImpl(String name,
                  Namespace ns)
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.