public interface SchemaManager extends TypeProvider
Modifier and Type | Method and Description |
---|---|
void |
clear()
Unregisters all types.
|
Set<String> |
getDocumentTypeNamesExtending(String docType)
Return the names of all document types extending the given one, which
is included.
|
Set<String> |
getDocumentTypeNamesForFacet(String facet)
Returns the names of all document types that have given facet.
|
int |
getDocumentTypesCount() |
Field |
getField(String prefixedName)
Gets the field given a prefixed name.
|
TypeHelper |
getHelper(String schema,
String type) |
Schema |
getSchemaFromPrefix(String schemaPrefix) |
Schema |
getSchemaFromURI(String schemaURI) |
int |
getSchemasCount() |
Type[] |
getTypes(String schema)
Gets the types defined by the given schema.
|
int |
getTypesCount() |
String |
getXmlSchemaDefinition(String name)
Get the schema definition.
|
void |
registerDocumentType(DocumentType docType) |
void |
registerFacet(CompositeType facet) |
void |
registerHelper(String schema,
String type,
TypeHelper helper) |
void |
registerSchema(Schema schema) |
void |
registerType(Type type) |
DocumentType |
unregisterDocumentType(String name) |
CompositeType |
unregisterFacet(String name) |
void |
unregisterHelper(String schema,
String type) |
Schema |
unregisterSchema(String name) |
Type |
unregisterType(String name) |
getDocumentType, getDocumentTypes, getFacet, getFacets, getSchema, getSchemas, getType, getType, getTypes
void registerType(Type type)
Type[] getTypes(String schema)
schema
- int getTypesCount()
void registerSchema(Schema schema)
Field getField(String prefixedName)
prefixedName
- int getSchemasCount()
void registerDocumentType(DocumentType docType)
DocumentType unregisterDocumentType(String name)
void registerFacet(CompositeType facet)
CompositeType unregisterFacet(String name)
Set<String> getDocumentTypeNamesForFacet(String facet)
facet
- Set<String> getDocumentTypeNamesExtending(String docType)
docType
- int getDocumentTypesCount()
void clear()
String getXmlSchemaDefinition(String name)
void registerHelper(String schema, String type, TypeHelper helper)
TypeHelper getHelper(String schema, String type)
Copyright © 2011 Nuxeo SA. All Rights Reserved.