public interface Schema extends ComplexType
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.
Modifier and Type | Method and Description |
---|---|
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.
|
addField, addField, addField, addField, getField, getField, getFields, getFieldsCount, getNamespace, hasField, hasField, hasFields, isUnstructured
decode, encode, getHelper, getName, getSchema, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isComplexType, isCompositeType, isListType, isNotNull, isReadOnly, isSimpleType, isSuperTypeOf, newInstance, validate
convert
boolean isLazy()
void setLazy(boolean isLazy)
isLazy
- TypeRef<Schema> getRef()
Type
getRef
in interface ComplexType
getRef
in interface Type
Type[] getTypes()
Type getType(String typeName)
typeName
- void registerType(Type type)
type
- Copyright © 2011 Nuxeo SA. All Rights Reserved.