public interface CompositeType extends ComplexType
Each schema defines its own namespace to avoid field name collisions.
Modifier and Type | Method and Description |
---|---|
void |
addSchema(Schema schema)
Adds a schema.
|
void |
addSchema(String schema)
Adds a schema.
|
TypeRef<? extends CompositeType> |
getRef()
Gets a proxy (or reference to this type).
|
Schema |
getSchema(String name)
Gets the composite type schema given its name.
|
Schema |
getSchemaByPrefix(String prefix)
Finds the composite type schema given the schema prefix.
|
String[] |
getSchemaNames()
Gets the schema names of this type.
|
Collection<Schema> |
getSchemas()
Gets all the schemas (including inherited schemas) of this composite type.
|
boolean |
hasSchema(String name)
Checks if this composite type has the given schema.
|
boolean |
hasSchemas()
Checks if this composite type has any schema defined.
|
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
void addSchema(String schema)
schema
- the schema name to addvoid addSchema(Schema schema)
schema
- the schema to addSchema getSchema(String name)
name
- the schema nameSchema getSchemaByPrefix(String prefix)
prefix
- the schema prefixboolean hasSchemas()
boolean hasSchema(String name)
name
- the schema nameString[] getSchemaNames()
Collection<Schema> getSchemas()
TypeRef<? extends CompositeType> getRef()
Type
getRef
in interface ComplexType
getRef
in interface Type
Copyright © 2011 Nuxeo SA. All Rights Reserved.