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 |
---|---|
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
decode, encode, getName, getSchema, 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, getName, getSchema, 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 © 2013 Nuxeo SA. All Rights Reserved.