org.alfresco.repo.dictionary
Class M2ModelDefinition

java.lang.Object
  extended by org.alfresco.repo.dictionary.M2ModelDefinition
All Implemented Interfaces:
ModelDefinition

public class M2ModelDefinition
extends java.lang.Object
implements ModelDefinition

Compiled Model Definition


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.dictionary.ModelDefinition
ModelDefinition.XMLBindingType
 
Method Summary
 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()
           
 DictionaryDAO getDictionaryDAO()
           
 java.util.Collection getImportedNamespaces()
           
 QName getName()
           
 java.util.Collection 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public QName getName()
Specified by:
getName in interface ModelDefinition
Returns:
the model name

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ModelDefinition
Returns:
the model description

getAuthor

public java.lang.String getAuthor()
Specified by:
getAuthor in interface ModelDefinition
Returns:
the model author

getPublishedDate

public java.util.Date getPublishedDate()
Specified by:
getPublishedDate in interface ModelDefinition
Returns:
the date when the model was published

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface ModelDefinition
Returns:
the model version

getNamespaces

public java.util.Collection getNamespaces()
Specified by:
getNamespaces in interface ModelDefinition
Returns:
the namespaces defined by this model

isNamespaceDefined

public boolean isNamespaceDefined(java.lang.String uri)
Specified by:
isNamespaceDefined in interface ModelDefinition
Parameters:
uri - namespace uri
Returns:
true => model defines the uri

getImportedNamespaces

public java.util.Collection getImportedNamespaces()
Specified by:
getImportedNamespaces in interface ModelDefinition
Returns:
the namespaces imported by this model

isNamespaceImported

public boolean isNamespaceImported(java.lang.String uri)
Specified by:
isNamespaceImported in interface ModelDefinition
Parameters:
uri - namespace uri
Returns:
true => model imports the uri

toXML

public void toXML(ModelDefinition.XMLBindingType bindingType,
                  java.io.OutputStream xml)
Specified by:
toXML in interface ModelDefinition

getChecksum

public long getChecksum(ModelDefinition.XMLBindingType bindingType)
Specified by:
getChecksum in interface ModelDefinition

getAnalyserResourceBundleName

public java.lang.String getAnalyserResourceBundleName()
Description copied from interface: ModelDefinition
Get the name of the property bundle that defines analyser mappings for this model (keyed by the type of the property)

Specified by:
getAnalyserResourceBundleName in interface ModelDefinition
Returns:
the resource or null if not set.

getDictionaryDAO

public DictionaryDAO getDictionaryDAO()
Specified by:
getDictionaryDAO in interface ModelDefinition
Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.