public interface DictionaryDAO
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the Dictionary
|
java.util.List |
diffModel(M2Model model)
Return diffs between input model and model in the Dictionary.
|
java.util.List |
diffModelIgnoringConstraints(M2Model model) |
TypeDefinition |
getAnonymousType(QName type,
java.util.Collection aspects)
Construct an anonymous type that combines a primary type definition and
and one or more aspects
|
AspectDefinition |
getAspect(QName name)
Gets the specified aspect
|
java.util.Collection |
getAspects(QName model) |
AssociationDefinition |
getAssociation(QName name)
Gets the specified association
|
java.util.Collection |
getAssociations(QName model) |
ClassDefinition |
getClass(QName name)
Gets the specified class
|
ConstraintDefinition |
getConstraint(QName name)
Gets the specified property constraint
|
java.util.Collection |
getConstraints(QName model) |
java.util.Collection |
getConstraints(QName model,
boolean referenceableDefsOnly) |
DataTypeDefinition |
getDataType(java.lang.Class javaClass)
Gets the data type for the specified Java Class
|
DataTypeDefinition |
getDataType(QName name)
Gets the specified data type
|
java.util.Collection |
getDataTypes(QName model) |
java.lang.String |
getDefaultAnalyserResourceBundleName() |
ModelDefinition |
getModel(QName name) |
java.util.Collection |
getModels() |
java.util.Collection |
getNamespaces(QName modelName) |
java.util.Collection |
getProperties(QName model) |
java.util.Collection |
getProperties(QName modelName,
QName dataType)
Get all properties for the model and that are of the given data type.
|
java.util.Collection |
getPropertiesOfDataType(QName dataType)
Get all properties for all models of the given data type.
|
PropertyDefinition |
getProperty(QName name)
Gets the specified property
|
java.lang.ClassLoader |
getResourceClassLoader() |
java.util.Collection |
getSubAspects(QName superAspect,
boolean follow) |
java.util.Collection |
getSubTypes(QName superType,
boolean follow) |
TypeDefinition |
getType(QName name)
Gets the specified type
|
java.util.Collection |
getTypes(QName model) |
void |
init()
Initialise the Dictionary
|
boolean |
isModelInherited(QName name) |
QName |
putModel(M2Model model)
Adds a model to the dictionary.
|
QName |
putModelIgnoringConstraints(M2Model model)
Adds a model to the dictionary.
|
void |
register(DictionaryListener dictionaryListener)
Register listener with the Dictionary
|
void |
removeModel(QName model)
Removes a model from the dictionary.
|
void |
reset()
Reset the Dictionary - destroy & re-initialise
|
void |
setResourceClassLoader(java.lang.ClassLoader resourceClassLoader) |
java.util.Collection getModels()
ModelDefinition getModel(QName name)
name
- the model to retrievejava.util.Collection getDataTypes(QName model)
model
- the model to retrieve property types forjava.util.Collection getTypes(QName model)
model
- the model to retrieve types forjava.util.Collection getSubTypes(QName superType, boolean follow)
superType
- follow
- true => follow up the super-class hierarchy, false => immediate sub types onlyjava.util.Collection getAspects(QName model)
model
- the model to retrieve aspects forjava.util.Collection getAssociations(QName model)
model
- the model to retrieve associations forjava.util.Collection getSubAspects(QName superAspect, boolean follow)
superAspect
- follow
- true => follow up the super-class hierarchy, false => immediate sub aspects onlyjava.util.Collection getProperties(QName model)
model
- the model for which to get properties forTypeDefinition getAnonymousType(QName type, java.util.Collection aspects)
type
- the primary typeaspects
- the aspects to combineQName putModel(M2Model model)
model
- the model to addQName putModelIgnoringConstraints(M2Model model)
model
- the model to addvoid removeModel(QName model)
model
- the qname of the model to removejava.util.Collection getProperties(QName modelName, QName dataType)
modelName
- the name of the modeldataType
- null to get all propertiesjava.util.Collection getPropertiesOfDataType(QName dataType)
modelName
- dataType
- java.util.Collection getNamespaces(QName modelName)
model
- the model to retrieve namespaces forjava.util.Collection getConstraints(QName model)
model
- the model to retrieve constraint defs (including property constaint refs)java.util.Collection getConstraints(QName model, boolean referenceableDefsOnly)
model
- the model to retrieve constraint defs (optionally only referenceable constraints)java.util.List diffModel(M2Model model)
model
- java.util.List diffModelIgnoringConstraints(M2Model model)
void register(DictionaryListener dictionaryListener)
dictionaryListener
- void reset()
void init()
void destroy()
boolean isModelInherited(QName name)
java.lang.String getDefaultAnalyserResourceBundleName()
java.lang.ClassLoader getResourceClassLoader()
void setResourceClassLoader(java.lang.ClassLoader resourceClassLoader)
resourceClassLoader
- DataTypeDefinition getDataType(QName name)
name
- name of the data typeDataTypeDefinition getDataType(java.lang.Class javaClass)
javaClass
- the java classTypeDefinition getType(QName name)
name
- name of the typeAspectDefinition getAspect(QName name)
name
- name of the aspectClassDefinition getClass(QName name)
name
- name of the classPropertyDefinition getProperty(QName name)
name
- name of the propertyConstraintDefinition getConstraint(QName name)
name
- the qualified name of the property constraintAssociationDefinition getAssociation(QName name)
name
- name of the associationCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.