public class SchemaImpl extends ComplexTypeImpl implements Schema
EMPTY_SUPERTYPES
Constructor and Description |
---|
SchemaImpl(ComplexType complexType,
String name,
Namespace ns)
Create a schema from a ComplexType
|
SchemaImpl(String name,
Namespace ns)
Constructor for a schema.
|
Modifier and Type | Method and Description |
---|---|
Schema |
getSchema()
Gets the schema defining this type.
|
Type |
getType(String typeName)
Gets a schema local type given its name.
|
Type[] |
getTypes()
Gets the types declared by this schema.
|
void |
registerType(Type type)
Registers a new type in that schema context.
|
String |
toString() |
addField, canonicalXPath, convert, getField, getField, getFields, getFieldsCount, getNamespace, hasField, hasFields, isComplexType, newInstance, validate
addConstraints, decode, encode, getConstraints, getName, getObjectResolver, getSchemaName, getSuperType, getTypeHierarchy, isAny, isAnyType, isCompositeType, isListType, isSimpleType, isSuperTypeOf
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addField, getField, getField, getFields, getFieldsCount, getNamespace, hasField, hasFields
convert, decode, encode, getConstraints, getName, getObjectResolver, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isComplexType, isCompositeType, isListType, isSimpleType, isSuperTypeOf, newInstance, validate
public SchemaImpl(String name, Namespace ns)
registerType(org.nuxeo.ecm.core.schema.types.Type)
.public SchemaImpl(ComplexType complexType, String name, Namespace ns)
complexType
- name
- ns
- public Type getType(String typeName)
Schema
public Type[] getTypes()
Schema
public void registerType(Type type)
Schema
registerType
in interface Schema
public String toString()
toString
in class ComplexTypeImpl
Copyright © 2015 Nuxeo SA. All rights reserved.