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 String
getAuthor()
long
getChecksum(ModelDefinition.XMLBindingType bindingType)
String
getDescription(MessageLookup messageLookup)
DictionaryDAO
getDictionaryDAO()
Collection<NamespaceDefinition>
getImportedNamespaces()
QName
getName()
Collection<NamespaceDefinition>
getNamespaces()
Date
getPublishedDate()
String
getVersion()
boolean
isNamespaceDefined(String uri)
boolean
isNamespaceImported(String uri)
void
toXML(ModelDefinition.XMLBindingType bindingType, OutputStream xml)
-
-
-
Method Detail
-
getName
public QName getName()
- Specified by:
getName
in interfaceModelDefinition
- Returns:
- the model name
-
getDescription
public String getDescription(MessageLookup messageLookup)
- Specified by:
getDescription
in interfaceModelDefinition
- Returns:
- the model description
-
getAuthor
public String getAuthor()
- Specified by:
getAuthor
in interfaceModelDefinition
- Returns:
- the model author
-
getPublishedDate
public Date getPublishedDate()
- Specified by:
getPublishedDate
in interfaceModelDefinition
- Returns:
- the date when the model was published
-
getVersion
public String getVersion()
- Specified by:
getVersion
in interfaceModelDefinition
- Returns:
- the model version
-
getNamespaces
public Collection<NamespaceDefinition> getNamespaces()
- Specified by:
getNamespaces
in interfaceModelDefinition
- Returns:
- the namespaces defined by this model
-
isNamespaceDefined
public boolean isNamespaceDefined(String uri)
- Specified by:
isNamespaceDefined
in interfaceModelDefinition
- Parameters:
uri
- namespace uri- Returns:
- true => model defines the uri
-
getImportedNamespaces
public Collection<NamespaceDefinition> getImportedNamespaces()
- Specified by:
getImportedNamespaces
in interfaceModelDefinition
- Returns:
- the namespaces imported by this model
-
isNamespaceImported
public boolean isNamespaceImported(String uri)
- Specified by:
isNamespaceImported
in interfaceModelDefinition
- Parameters:
uri
- namespace uri- Returns:
- true => model imports the uri
-
toXML
public void toXML(ModelDefinition.XMLBindingType bindingType, OutputStream xml)
- Specified by:
toXML
in interfaceModelDefinition
-
getChecksum
public long getChecksum(ModelDefinition.XMLBindingType bindingType)
- Specified by:
getChecksum
in interfaceModelDefinition
-
getDictionaryDAO
public DictionaryDAO getDictionaryDAO()
- Specified by:
getDictionaryDAO
in interfaceModelDefinition
- Returns:
- DictionaryDAO
-
-