Package nl.geostandaarden.mim
Class MimModel
java.lang.Object
nl.geostandaarden.mim.MimModel
Abstract MimModel base class for all MIM version and relatiemodelleringstype specific subclasses.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Object
Gets the Informatiemodel object that can be used as a starting point to traverse the whole modelprotected abstract Class<?>
protected abstract jakarta.xml.bind.JAXBElement<?>
abstract MimSerializationApi.MIM_VERSION
Gets the model element (like an Attribuutsoort or Objecttype) with specified unique identifiergetModelElementsByName
(String name) Gets all model elements (like an View or Objecttype) with specified nameGets the XML target namespace of the associated MIM XML schemaprotected Schema
Gets the filename of the associated MIM XML schemaGets the classpath of the associated MIM XML schemavoid
Indexes all unique identifiers so that the RefTypeEx.getTarget() functionality will workvoid
save
(OutputStream mimSerialization) Save (marshall/serialize) the model to an OutputStreamvoid
save
(OutputStream mimSerialization, jakarta.xml.bind.ValidationEventHandler validationEventHandler) Save (marshall/serialize) the model to an OutputStreamvoid
Save (marshall/serialize) the model to a Pathvoid
Save (marshall/serialize) the model to a Path
-
Field Details
-
idModelElementMap
-
nameModelElementMap
-
informationModel
-
schema
-
-
Constructor Details
-
MimModel
public MimModel() -
MimModel
public MimModel(Document mimDoc, jakarta.xml.bind.ValidationEventHandler validationEventHandler) throws MimSerializationApiLoadException - Throws:
MimSerializationApiLoadException
-
MimModel
- Throws:
MimSerializationApiLoadException
-
-
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 tovalidationEventHandler
- 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 tovalidationEventHandler
- a JAXB ValidationEventHandler- Throws:
MimSerializationApiSaveException
-
save
Save (marshall/serialize) the model to an OutputStream- Parameters:
mimSerialization
- the OutputStream to save to- Throws:
MimSerializationApiSaveException
-
save
Save (marshall/serialize) the model to a Path- Parameters:
mimSerializationPath
- the Path to save to- Throws:
MimSerializationApiSaveException
-
indexReferences
Indexes all unique identifiers so that the RefTypeEx.getTarget() functionality will work- Throws:
MimSerializationApiSaveException
-
getXmlSchema
- Throws:
SAXException
-
getXmlSchemaPath
Gets the classpath of the associated MIM XML schema- Returns:
-
getXmlNamespace
Gets the XML target namespace of the associated MIM XML schema- Returns:
-
getXmlSchemaName
Gets the filename of the associated MIM XML schema- Returns:
-
getModelElementById
Gets the model element (like an Attribuutsoort or Objecttype) with specified unique identifier- Parameters:
id
- the unique identifier of the model element- Returns:
-
getModelElementsByName
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
Gets the Informatiemodel object that can be used as a starting point to traverse the whole model- Returns:
-
getMimVersie
-
getRelatiemodelleringsType
-
getInformatiemodelClass
-
getInformatiemodelWrapper
protected abstract jakarta.xml.bind.JAXBElement<?> getInformatiemodelWrapper()
-