public class SchemaImpl extends ComplexTypeImpl implements Schema
Modifier and Type | Field and Description |
---|---|
boolean |
isVersionWritabe |
fields, fieldsByName, ns
constraints, EMPTY_SUPERTYPES, name, schema, superType
Constructor and Description |
---|
SchemaImpl(ComplexType complexType,
String name,
Namespace ns,
boolean isVersionWritabe)
Create a schema from a ComplexType
|
SchemaImpl(String name,
Namespace ns)
Constructor for a schema.
|
SchemaImpl(String name,
Namespace ns,
boolean isVersionWritabe) |
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.
|
boolean |
isVersionWritabe() |
void |
registerType(Type type)
Registers a new type in that schema context.
|
String |
toString() |
addField, addField, canonicalXPath, convert, getField, getField, getFields, getFieldsCount, getNamespace, hasField, hasFields, isComplexType, newInstance, validate, validateMap
addConstraints, decode, encode, getConstraints, getName, getObjectResolver, getSchemaName, getSuperType, getTypeHierarchy, isAny, isAnyType, isCompositeType, isListType, isSimpleType, isSuperTypeOf, validateConstraints
clone, equals, finalize, 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 boolean isVersionWritabe
public SchemaImpl(String name, Namespace ns)
registerType(org.nuxeo.ecm.core.schema.types.Type)
.public SchemaImpl(String name, Namespace ns, boolean isVersionWritabe)
public SchemaImpl(ComplexType complexType, String name, Namespace ns, boolean isVersionWritabe)
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
public Schema getSchema()
Type
getSchema
in interface Type
getSchema
in class AbstractType
public boolean isVersionWritabe()
isVersionWritabe
in interface Schema
Copyright © 2018 Nuxeo. All rights reserved.