Package org.nuxeo.ecm.core.schema.types
Interface CompositeType
- All Superinterfaces:
ComplexType
,Serializable
,Type
- All Known Subinterfaces:
DocumentType
- All Known Implementing Classes:
CompositeTypeImpl
,DocumentTypeImpl
A composite type is an aggregation of several schemas.
Each schema defines its own namespace to avoid field name collisions.
-
Method Summary
Modifier and TypeMethodDescriptionGets the composite type schema given its name.String[]
Gets the schema names of this type.Gets all the schemas (including inherited schemas) of this composite type.boolean
Checks if this composite type has the given schema.boolean
Checks if this composite type has any schema defined.Methods inherited from interface org.nuxeo.ecm.core.schema.types.ComplexType
addField, getField, getField, getFields, getFieldsCount, getNamespace, hasField, hasFields
Methods inherited from interface org.nuxeo.ecm.core.schema.types.Type
convert, decode, encode, getConstraints, getName, getObjectResolver, getSchema, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isComplexType, isCompositeType, isListType, isSimpleType, isSuperTypeOf, newInstance, validate
-
Method Details
-
getSchema
Gets the composite type schema given its name.- Parameters:
name
- the schema name- Returns:
- the schema if any or null if none was found
-
hasSchemas
boolean hasSchemas()Checks if this composite type has any schema defined.- Returns:
- true if this composite type has some schemas defined, false otherwise
-
hasSchema
Checks if this composite type has the given schema.- Parameters:
name
- the schema name- Returns:
- true if the composite type has this schema, false otherwise
-
getSchemaNames
String[] getSchemaNames()Gets the schema names of this type.- Returns:
- the schema names
-
getSchemas
Collection<Schema> getSchemas()Gets all the schemas (including inherited schemas) of this composite type.- Returns:
- the composite type schemas
-