public class SchemaImpl extends ComplexTypeImpl implements Schema
| Modifier and Type | Field and Description |
|---|---|
boolean |
isVersionWritabe |
fields, fieldsByName, nsconstraints, 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, validateMapaddConstraints, decode, encode, getConstraints, getName, getObjectResolver, getSchemaName, getSuperType, getTypeHierarchy, isAny, isAnyType, isCompositeType, isListType, isSimpleType, isSuperTypeOf, validateConstraintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddField, getField, getField, getFields, getFieldsCount, getNamespace, hasField, hasFieldsconvert, decode, encode, getConstraints, getName, getObjectResolver, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isComplexType, isCompositeType, isListType, isSimpleType, isSuperTypeOf, newInstance, validatepublic 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)
Schemapublic Type[] getTypes()
Schemapublic void registerType(Type type)
SchemaregisterType in interface Schemapublic String toString()
toString in class ComplexTypeImplpublic Schema getSchema()
TypegetSchema in interface TypegetSchema in class AbstractTypepublic boolean isVersionWritabe()
isVersionWritabe in interface SchemaCopyright © 2018 Nuxeo. All rights reserved.