public class CompositeTypeImpl extends ComplexTypeImpl implements CompositeType
Modifier and Type | Field and Description |
---|---|
protected Map<String,Schema> |
schemas
The schemas for this composite type.
|
fields, fieldsByName, ns
constraints, EMPTY_SUPERTYPES, name, schema, superType
Constructor and Description |
---|
CompositeTypeImpl(CompositeType superType,
String schema,
String name,
List<Schema> schemaList)
Constructs a composite type.
|
Modifier and Type | Method and Description |
---|---|
Field |
getField(QName name)
Gets the field having the given name.
|
Schema |
getSchema(String name)
Gets the composite type schema given its name.
|
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.
|
boolean |
isComplexType()
Tests whether this type is a complex type.
|
boolean |
isCompositeType()
Tests whether this is a composite type.
|
boolean |
validate(Object object)
Tests whether the given object is of this type.
|
addField, addField, canonicalXPath, convert, getField, getFields, getFieldsCount, getNamespace, hasField, hasFields, newInstance, toString, validateMap
addConstraints, decode, encode, getConstraints, getName, getObjectResolver, getSchema, getSchemaName, getSuperType, getTypeHierarchy, isAny, isAnyType, isListType, isSimpleType, isSuperTypeOf, validateConstraints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addField, getField, getFields, getFieldsCount, getNamespace, hasField, hasFields
convert, decode, encode, getConstraints, getName, getObjectResolver, getSchema, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isListType, isSimpleType, isSuperTypeOf, newInstance
public CompositeTypeImpl(CompositeType superType, String schema, String name, List<Schema> schemaList)
public boolean hasSchemas()
CompositeType
hasSchemas
in interface CompositeType
public Schema getSchema(String name)
CompositeType
getSchema
in interface CompositeType
name
- the schema namepublic boolean hasSchema(String name)
CompositeType
hasSchema
in interface CompositeType
name
- the schema namepublic String[] getSchemaNames()
CompositeType
getSchemaNames
in interface CompositeType
public Collection<Schema> getSchemas()
CompositeType
getSchemas
in interface CompositeType
public Field getField(QName name)
ComplexType
getField
in interface ComplexType
getField
in class ComplexTypeImpl
name
- the namepublic boolean isComplexType()
Type
isComplexType
in interface Type
isComplexType
in class ComplexTypeImpl
public boolean isCompositeType()
Type
isCompositeType
in interface Type
isCompositeType
in class AbstractType
public boolean validate(Object object)
Type
validate
in interface Type
validate
in class ComplexTypeImpl
object
- the object to testCopyright © 2018 Nuxeo. All rights reserved.