public abstract class AbstractDictionaryRegistry extends Object implements DictionaryRegistry
Modifier and Type | Field and Description |
---|---|
protected DictionaryDAO |
dictionaryDAO |
protected static org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
AbstractDictionaryRegistry(DictionaryDAO dictionaryDAO) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTenantDomain
protected static final org.apache.commons.logging.Log logger
protected DictionaryDAO dictionaryDAO
public AbstractDictionaryRegistry(DictionaryDAO dictionaryDAO)
public void clear()
clear
in interface DictionaryRegistry
public Map<String,List<CompiledModel>> getUriToModels()
getUriToModels
in interface DictionaryRegistry
public Map<QName,CompiledModel> getCompiledModels(boolean includeInherited)
getCompiledModels
in interface DictionaryRegistry
public List<CompiledModel> getModelsForUri(String uri)
getModelsForUri
in interface DictionaryRegistry
public QName putModel(CompiledModel model)
putModel
in interface DictionaryRegistry
public CompiledModel getModel(QName modelName)
getModel
in interface DictionaryRegistry
public boolean modelExists(QName modelName)
modelExists
in interface DictionaryRegistry
public void removeModel(QName modelName)
removeModel
in interface DictionaryRegistry
protected CompiledModel removeModelImpl(QName modelName)
protected CompiledModel getModelImpl(QName modelName)
protected List<CompiledModel> getModelsForUriImpl(String uri)
protected void unmapUriToModel(String uri, CompiledModel model)
protected void mapUriToModel(String uri, CompiledModel model)
protected QName putModelImpl(CompiledModel model)
public AspectDefinition getAspect(QName aspectName)
getAspect
in interface DictionaryRegistry
protected AspectDefinition getAspectImpl(QName aspectName)
public AssociationDefinition getAssociation(QName assocName)
getAssociation
in interface DictionaryRegistry
protected AssociationDefinition getAssociationImpl(QName assocName)
public ClassDefinition getClass(QName className)
getClass
in interface DictionaryRegistry
protected ClassDefinition getClassImpl(QName className)
public PropertyDefinition getProperty(QName propertyName)
getProperty
in interface DictionaryRegistry
protected PropertyDefinition getPropertyImpl(QName propertyName)
public TypeDefinition getType(QName typeName)
getType
in interface DictionaryRegistry
protected TypeDefinition getTypeImpl(QName typeName)
public ConstraintDefinition getConstraint(QName constraintQName)
getConstraint
in interface DictionaryRegistry
protected ConstraintDefinition getConstraintImpl(QName constraintQName)
public DataTypeDefinition getDataType(QName typeName)
getDataType
in interface DictionaryRegistry
protected DataTypeDefinition getDataTypeImp(QName typeName)
public DataTypeDefinition getDataType(Class javaClass)
getDataType
in interface DictionaryRegistry
protected DataTypeDefinition getDataTypeImpl(Class javaClass)
public Map<String,String> getPrefixesCache()
getPrefixesCache
in interface DictionaryRegistry
public List<String> getUrisCache()
getUrisCache
in interface DictionaryRegistry
public Collection<String> getPrefixes(String URI)
getPrefixes
in interface DictionaryRegistry
protected Collection<String> getPrefixesImpl(String URI)
public void addURI(String uri)
addURI
in interface DictionaryRegistry
protected void addURIImpl(String uri)
public boolean hasURI(String uri)
hasURI
in interface DictionaryRegistry
public void addPrefix(String prefix, String uri)
addPrefix
in interface DictionaryRegistry
public boolean hasPrefix(String prefix)
hasPrefix
in interface DictionaryRegistry
public void removeURI(String uri)
removeURI
in interface DictionaryRegistry
public void removePrefix(String prefix)
removePrefix
in interface DictionaryRegistry
protected boolean removeURIImpl(String uri)
protected boolean removePrefixImpl(String prefix)
public Collection<QName> getTypes(boolean includeInherited)
getTypes
in interface DictionaryRegistry
public Collection<QName> getAssociations(boolean includeInherited)
getAssociations
in interface DictionaryRegistry
public Collection<QName> getAspects(boolean includeInherited)
getAspects
in interface DictionaryRegistry
protected abstract void initImpl()
public void init()
init
in interface DictionaryRegistry
protected abstract void removeImpl()
public void remove()
remove
in interface DictionaryRegistry
public boolean isModelInherited(QName modelName)
isModelInherited
in interface DictionaryRegistry
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface DictionaryRegistry
Copyright © 2005–2019 Alfresco Software. All rights reserved.