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 class
ModelDefinition.XMLBindingType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAnalyserResourceBundleName()
Get the name of the property bundle that defines analyser mappings for this model (keyed by the type of the property)java.lang.String
getAuthor()
long
getChecksum(ModelDefinition.XMLBindingType bindingType)
java.lang.String
getDescription(MessageLookup messageLookup)
DictionaryDAO
getDictionaryDAO()
java.util.Collection<NamespaceDefinition>
getImportedNamespaces()
QName
getName()
java.util.Collection<NamespaceDefinition>
getNamespaces()
java.util.Date
getPublishedDate()
java.lang.String
getVersion()
boolean
isNamespaceDefined(java.lang.String uri)
boolean
isNamespaceImported(java.lang.String uri)
void
toXML(ModelDefinition.XMLBindingType bindingType, java.io.OutputStream xml)
-
-
-
Method Detail
-
getName
QName getName()
- Returns:
- the model name
-
getDescription
java.lang.String getDescription(MessageLookup messageLookup)
- Returns:
- the model description
-
getAuthor
java.lang.String getAuthor()
- Returns:
- the model author
-
getPublishedDate
java.util.Date getPublishedDate()
- Returns:
- the date when the model was published
-
getVersion
java.lang.String getVersion()
- Returns:
- the model version
-
getNamespaces
java.util.Collection<NamespaceDefinition> getNamespaces()
- Returns:
- the namespaces defined by this model
-
isNamespaceDefined
boolean isNamespaceDefined(java.lang.String uri)
- Parameters:
uri
- namespace uri- Returns:
- true => model defines the uri
-
getImportedNamespaces
java.util.Collection<NamespaceDefinition> getImportedNamespaces()
- Returns:
- the namespaces imported by this model
-
isNamespaceImported
boolean isNamespaceImported(java.lang.String uri)
- Parameters:
uri
- namespace uri- Returns:
- true => model imports the uri
-
toXML
void toXML(ModelDefinition.XMLBindingType bindingType, java.io.OutputStream xml)
-
getChecksum
long getChecksum(ModelDefinition.XMLBindingType bindingType)
-
getAnalyserResourceBundleName
java.lang.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
-
-