Class M2Model


  • public class M2Model
    extends Object
    Model Definition.
    Author:
    David Caruana
    • Method Detail

      • createModel

        public static M2Model createModel​(String name)
        Construct an empty model
        Parameters:
        name - the name of the model
        Returns:
        the model
      • createModel

        public static M2Model createModel​(InputStream xml)
        Construct a model from a dictionary xml specification
        Parameters:
        xml - the dictionary xml
        Returns:
        the model representation of the xml
      • toXML

        public void toXML​(OutputStream xml)
        Render the model to dictionary XML
        Parameters:
        xml - the dictionary xml representation of the model
      • compile

        public CompiledModel compile​(DictionaryDAO dictionaryDAO,
                                     NamespaceDAO namespaceDAO,
                                     boolean enableConstraintClassLoading)
        Create a compiled form of this model
        Parameters:
        dictionaryDAO - dictionary DAO
        namespaceDAO - namespace DAO
        Returns:
        the compiled form of the model
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getAuthor

        public String getAuthor()
      • setAuthor

        public void setAuthor​(String author)
      • getPublishedDate

        public Date getPublishedDate()
      • setPublishedDate

        public void setPublishedDate​(Date published)
      • getVersion

        public String getVersion()
      • setVersion

        public void setVersion​(String version)
      • removeType

        public void removeType​(String name)
      • removeAspect

        public void removeAspect​(String name)
      • removePropertyType

        public void removePropertyType​(String name)
      • removeNamespace

        public void removeNamespace​(String uri)
      • removeImport

        public void removeImport​(String uri)
      • removeConstraint

        public void removeConstraint​(String name)
      • getAnalyserResourceBundleName

        public String getAnalyserResourceBundleName()
        Returns:
        String
      • setAnalyserResourceBundleName

        public void setAnalyserResourceBundleName​(String analyserResourceBundleName)
      • setConfigProperties

        public void setConfigProperties​(Properties configProperties)