Interface ModelDefinition
-
- All Known Subinterfaces:
CustomModelDefinition
- All Known Implementing Classes:
CustomModelDefinitionImpl,M2ModelDefinition
@AlfrescoPublicApi public interface ModelDefinition
Read-only definition of a Model.- Author:
- David Caruana
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classModelDefinition.XMLBindingType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAnalyserResourceBundleName()Get the name of the property bundle that defines analyser mappings for this model (keyed by the type of the property)StringgetAuthor()longgetChecksum(ModelDefinition.XMLBindingType bindingType)StringgetDescription(MessageLookup messageLookup)DictionaryDAOgetDictionaryDAO()Collection<NamespaceDefinition>getImportedNamespaces()QNamegetName()Collection<NamespaceDefinition>getNamespaces()DategetPublishedDate()StringgetVersion()booleanisNamespaceDefined(String uri)booleanisNamespaceImported(String uri)voidtoXML(ModelDefinition.XMLBindingType bindingType, OutputStream xml)
-
-
-
Method Detail
-
getName
QName getName()
- Returns:
- the model name
-
getDescription
String getDescription(MessageLookup messageLookup)
- Returns:
- the model description
-
getAuthor
String getAuthor()
- Returns:
- the model author
-
getPublishedDate
Date getPublishedDate()
- Returns:
- the date when the model was published
-
getVersion
String getVersion()
- Returns:
- the model version
-
getNamespaces
Collection<NamespaceDefinition> getNamespaces()
- Returns:
- the namespaces defined by this model
-
isNamespaceDefined
boolean isNamespaceDefined(String uri)
- Parameters:
uri- namespace uri- Returns:
- true => model defines the uri
-
getImportedNamespaces
Collection<NamespaceDefinition> getImportedNamespaces()
- Returns:
- the namespaces imported by this model
-
isNamespaceImported
boolean isNamespaceImported(String uri)
- Parameters:
uri- namespace uri- Returns:
- true => model imports the uri
-
toXML
void toXML(ModelDefinition.XMLBindingType bindingType, OutputStream xml)
-
getChecksum
long getChecksum(ModelDefinition.XMLBindingType bindingType)
-
getAnalyserResourceBundleName
String getAnalyserResourceBundleName()
Get the name of the property bundle that defines analyser mappings for this model (keyed by the type of the property)- Returns:
- the resource or null if not set.
-
getDictionaryDAO
DictionaryDAO getDictionaryDAO()
- Returns:
- DictionaryDAO
-
-