|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DictionaryDAO
Dictionary Data Access
| Method Summary | |
|---|---|
void |
destroy()
Destroy the Dictionary |
java.util.List |
diffModel(M2Model model)
Return diffs between input model and model in the Dictionary. |
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)
|
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. |
PropertyDefinition |
getProperty(QName name)
Gets the specified property |
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. |
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 |
| Method Detail |
|---|
java.util.Collection getModels()
ModelDefinition getModel(QName name)
name - the model to retrieve
java.util.Collection getDataTypes(QName model)
model - the model to retrieve property types for
java.util.Collection getTypes(QName model)
model - the model to retrieve types for
java.util.Collection getSubTypes(QName superType,
boolean follow)
superType - follow - true => follow up the super-class hierarchy, false => immediate sub types only
java.util.Collection getAspects(QName model)
model - the model to retrieve aspects for
java.util.Collection getAssociations(QName model)
model - the model to retrieve associations for
java.util.Collection getSubAspects(QName superAspect,
boolean follow)
superAspect - follow - true => follow up the super-class hierarchy, false => immediate sub aspects only
java.util.Collection getProperties(QName model)
model - the model for which to get properties for
TypeDefinition getAnonymousType(QName type,
java.util.Collection aspects)
type - the primary typeaspects - the aspects to combine
QName putModel(M2Model model)
model - the model to add
void removeModel(QName model)
model - the qname of the model to remove
java.util.Collection getProperties(QName modelName,
QName dataType)
modelName - dataType -
java.util.Collection getNamespaces(QName modelName)
model - the model to retrieve namespaces for
java.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 -
void register(DictionaryListener dictionaryListener)
dictionaryListener - void reset()
void init()
void destroy()
boolean isModelInherited(QName name)
DataTypeDefinition getDataType(QName name)
name - name of the data type
DataTypeDefinition getDataType(java.lang.Class javaClass)
javaClass - the java class
TypeDefinition getType(QName name)
name - name of the type
AspectDefinition getAspect(QName name)
name - name of the aspect
ClassDefinition getClass(QName name)
name - name of the class
PropertyDefinition getProperty(QName name)
name - name of the property
ConstraintDefinition getConstraint(QName name)
name - the qualified name of the property constraint
AssociationDefinition getAssociation(QName name)
name - name of the association
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||