public class SchemaManagerImpl extends Object implements SchemaManager
Holds basic types (String, Integer, etc.), schemas, document types and facets.
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMAS_DIR_NAME |
| Constructor and Description |
|---|
SchemaManagerImpl() |
public static final String SCHEMAS_DIR_NAME
public File getSchemasDir()
public void registerConfiguration(TypeConfiguration config)
public void unregisterConfiguration(TypeConfiguration config)
public void registerSchema(SchemaBindingDescriptor sd)
public void unregisterSchema(SchemaBindingDescriptor sd)
public void registerFacet(FacetDescriptor fd)
public void unregisterFacet(FacetDescriptor fd)
public void registerDocumentType(DocumentTypeDescriptor dtd)
public void unregisterDocumentType(DocumentTypeDescriptor dtd)
public DocumentTypeDescriptor getDocumentTypeDescriptor(String name)
public void registerProxies(ProxiesDescriptor pd)
public void unregisterProxies(ProxiesDescriptor pd)
public Schema[] getSchemas()
TypeProvidergetSchemas in interface TypeProviderpublic Schema getSchema(String name)
TypeProvidergetSchema in interface TypeProviderpublic Schema getSchemaFromPrefix(String schemaPrefix)
getSchemaFromPrefix in interface SchemaManagerpublic Schema getSchemaFromURI(String schemaURI)
getSchemaFromURI in interface SchemaManagerpublic CompositeType[] getFacets()
TypeProvidergetFacets in interface TypeProviderpublic CompositeType getFacet(String name)
TypeProvidergetFacet in interface TypeProviderpublic DocumentType getDocumentType(String name)
TypeProvidergetDocumentType in interface TypeProviderpublic Set<String> getDocumentTypeNamesForFacet(String facet)
SchemaManagergetDocumentTypeNamesForFacet in interface SchemaManagerpublic Set<String> getDocumentTypeNamesExtending(String docTypeName)
SchemaManagergetDocumentTypeNamesExtending in interface SchemaManagerpublic DocumentType[] getDocumentTypes()
TypeProvidergetDocumentTypes in interface TypeProviderpublic int getDocumentTypesCount()
getDocumentTypesCount in interface SchemaManagerpublic List<Schema> getProxySchemas(String docType)
TypeProvidergetProxySchemas in interface TypeProviderpublic boolean isProxySchema(String schema, String docType)
TypeProviderisProxySchema in interface TypeProviderpublic Field getField(String prefixedName)
SchemaManagergetField in interface SchemaManagerpublic void flushPendingsRegistration()
Copyright © 2013 Nuxeo SA. All Rights Reserved.