Class MockModelDefinition

  • All Implemented Interfaces:
    Serializable, org.alfresco.service.cmr.dictionary.ModelDefinition

    public class MockModelDefinition
    extends Object
    implements org.alfresco.service.cmr.dictionary.ModelDefinition, Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • MockModelDefinition

        public MockModelDefinition​(org.alfresco.service.namespace.QName name)
    • Method Detail

      • getName

        public org.alfresco.service.namespace.QName getName()
        Specified by:
        getName in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • getDescription

        public String getDescription​(org.alfresco.service.cmr.i18n.MessageLookup messageLookup)
        Specified by:
        getDescription in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • getAuthor

        public String getAuthor()
        Specified by:
        getAuthor in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • getPublishedDate

        public Date getPublishedDate()
        Specified by:
        getPublishedDate in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • getVersion

        public String getVersion()
        Specified by:
        getVersion in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • getNamespaces

        public Collection<org.alfresco.service.cmr.dictionary.NamespaceDefinition> getNamespaces()
        Specified by:
        getNamespaces in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • isNamespaceDefined

        public boolean isNamespaceDefined​(String uri)
        Specified by:
        isNamespaceDefined in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • getImportedNamespaces

        public Collection<org.alfresco.service.cmr.dictionary.NamespaceDefinition> getImportedNamespaces()
        Specified by:
        getImportedNamespaces in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • isNamespaceImported

        public boolean isNamespaceImported​(String uri)
        Specified by:
        isNamespaceImported in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • toXML

        public void toXML​(org.alfresco.service.cmr.dictionary.ModelDefinition.XMLBindingType bindingType,
                          OutputStream xml)
        Specified by:
        toXML in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • getChecksum

        public long getChecksum​(org.alfresco.service.cmr.dictionary.ModelDefinition.XMLBindingType bindingType)
        Specified by:
        getChecksum in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • getAnalyserResourceBundleName

        public String getAnalyserResourceBundleName()
        Specified by:
        getAnalyserResourceBundleName in interface org.alfresco.service.cmr.dictionary.ModelDefinition
      • getDictionaryDAO

        public org.alfresco.repo.dictionary.DictionaryDAO getDictionaryDAO()
        Specified by:
        getDictionaryDAO in interface org.alfresco.service.cmr.dictionary.ModelDefinition