Package org.alfresco.repo.dictionary
Class M2ModelDefinition
- java.lang.Object
-
- org.alfresco.repo.dictionary.M2ModelDefinition
-
- All Implemented Interfaces:
ModelDefinition
public class M2ModelDefinition extends Object implements ModelDefinition
Compiled Model Definition- Author:
- David Caruana
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.dictionary.ModelDefinition
ModelDefinition.XMLBindingType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
public QName getName()
- Specified by:
getNamein interfaceModelDefinition- Returns:
- the model name
-
getDescription
public String getDescription(MessageLookup messageLookup)
- Specified by:
getDescriptionin interfaceModelDefinition- Returns:
- the model description
-
getAuthor
public String getAuthor()
- Specified by:
getAuthorin interfaceModelDefinition- Returns:
- the model author
-
getPublishedDate
public Date getPublishedDate()
- Specified by:
getPublishedDatein interfaceModelDefinition- Returns:
- the date when the model was published
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceModelDefinition- Returns:
- the model version
-
getNamespaces
public Collection<NamespaceDefinition> getNamespaces()
- Specified by:
getNamespacesin interfaceModelDefinition- Returns:
- the namespaces defined by this model
-
isNamespaceDefined
public boolean isNamespaceDefined(String uri)
- Specified by:
isNamespaceDefinedin interfaceModelDefinition- Parameters:
uri- namespace uri- Returns:
- true => model defines the uri
-
getImportedNamespaces
public Collection<NamespaceDefinition> getImportedNamespaces()
- Specified by:
getImportedNamespacesin interfaceModelDefinition- Returns:
- the namespaces imported by this model
-
isNamespaceImported
public boolean isNamespaceImported(String uri)
- Specified by:
isNamespaceImportedin interfaceModelDefinition- Parameters:
uri- namespace uri- Returns:
- true => model imports the uri
-
toXML
public void toXML(ModelDefinition.XMLBindingType bindingType, OutputStream xml)
- Specified by:
toXMLin interfaceModelDefinition
-
getChecksum
public long getChecksum(ModelDefinition.XMLBindingType bindingType)
- Specified by:
getChecksumin interfaceModelDefinition
-
getDictionaryDAO
public DictionaryDAO getDictionaryDAO()
- Specified by:
getDictionaryDAOin interfaceModelDefinition- Returns:
- DictionaryDAO
-
-