Class MimModel

java.lang.Object
nl.geostandaarden.mim.MimModel
Direct Known Subclasses:
MimModel, MimModel, MimModel, MimModel, MimModel, MimModel

public abstract class MimModel extends Object
Abstract MimModel base class for all MIM version and relatiemodelleringstype specific subclasses.
  • Field Details

  • Constructor Details

  • Method Details

    • save

      public void save(OutputStream mimSerialization, jakarta.xml.bind.ValidationEventHandler validationEventHandler) throws MimSerializationApiSaveException
      Save (marshall/serialize) the model to an OutputStream
      Parameters:
      mimSerialization - the OutputStream to save to
      validationEventHandler - a JAXB ValidationEventHandler
      Throws:
      MimSerializationApiSaveException
    • save

      public void save(Path mimSerializationPath, jakarta.xml.bind.ValidationEventHandler validationEventHandler) throws MimSerializationApiSaveException
      Save (marshall/serialize) the model to a Path
      Parameters:
      mimSerializationPath - the Path to save to
      validationEventHandler - a JAXB ValidationEventHandler
      Throws:
      MimSerializationApiSaveException
    • save

      public void save(OutputStream mimSerialization) throws MimSerializationApiSaveException
      Save (marshall/serialize) the model to an OutputStream
      Parameters:
      mimSerialization - the OutputStream to save to
      Throws:
      MimSerializationApiSaveException
    • save

      public void save(Path mimSerializationPath) throws MimSerializationApiSaveException
      Save (marshall/serialize) the model to a Path
      Parameters:
      mimSerializationPath - the Path to save to
      Throws:
      MimSerializationApiSaveException
    • indexReferences

      public void indexReferences() throws MimSerializationApiSaveException
      Indexes all unique identifiers so that the RefTypeEx.getTarget() functionality will work
      Throws:
      MimSerializationApiSaveException
    • getXmlSchema

      protected Schema getXmlSchema() throws SAXException
      Throws:
      SAXException
    • getXmlSchemaPath

      public String getXmlSchemaPath()
      Gets the classpath of the associated MIM XML schema
      Returns:
    • getXmlNamespace

      public String getXmlNamespace()
      Gets the XML target namespace of the associated MIM XML schema
      Returns:
    • getXmlSchemaName

      public String getXmlSchemaName()
      Gets the filename of the associated MIM XML schema
      Returns:
    • getModelElementById

      public Object getModelElementById(String id)
      Gets the model element (like an Attribuutsoort or Objecttype) with specified unique identifier
      Parameters:
      id - the unique identifier of the model element
      Returns:
    • getModelElementsByName

      public List<Object> getModelElementsByName(String name)
      Gets all model elements (like an View or Objecttype) with specified name
      Parameters:
      name - the name of the model elements
      Returns:
      the list of model elements with specified name or null if no model elements with specified name
    • getInformatiemodel

      public abstract Object getInformatiemodel()
      Gets the Informatiemodel object that can be used as a starting point to traverse the whole model
      Returns:
    • getMimVersie

      public abstract MimSerializationApi.MIM_VERSION getMimVersie()
    • getRelatiemodelleringsType

      public abstract MimSerializationApi.MIM_RELATIEMODELLERINGSTYPE getRelatiemodelleringsType()
    • getInformatiemodelClass

      protected abstract Class<?> getInformatiemodelClass()
    • getInformatiemodelWrapper

      protected abstract jakarta.xml.bind.JAXBElement<?> getInformatiemodelWrapper()