Class ClientIfcModel

  • All Implemented Interfaces:
    AutoCloseable, Iterable<org.bimserver.emf.IdEObject>, GeometryTarget, org.bimserver.emf.IfcModelInterface, org.bimserver.emf.ObjectFactory

    public class ClientIfcModel
    extends org.bimserver.ifc.IfcModel
    implements GeometryTarget
    • Field Summary

      • Fields inherited from class org.bimserver.ifc.IfcModel

        modelMetaData
    • Constructor Summary

      Constructors 
      Constructor Description
      ClientIfcModel​(BimServerClient bimServerClient, long poid, long roid, boolean deep, org.bimserver.emf.PackageMetaData packageMetaData, boolean recordChanges, boolean includeGeometry)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ClientIfcModel branch​(long poid, boolean recordChanges)  
      void checkin​(long poid, String comment)
      This method requires IfcPlugins to be loaded (either on the default cp, or a a BIMserver plugin)
      long commit​(String comment)  
      boolean contains​(long oid)  
      boolean containsGuid​(String guid)  
      boolean containsNoFetch​(long oid)  
      int count​(org.eclipse.emf.ecore.EClass eClass)  
      <T extends org.bimserver.emf.IdEObject>
      T
      create​(Class<T> clazz)  
      <T extends org.bimserver.emf.IdEObject>
      T
      create​(org.eclipse.emf.ecore.EClass eClass)  
      <T extends org.bimserver.emf.IdEObject>
      T
      create​(org.eclipse.emf.ecore.EClass eClass, long oid)  
      void dumpDebug()  
      org.bimserver.emf.IdEObject get​(long oid)  
      <T extends org.bimserver.emf.IdEObject>
      List<T>
      getAll​(org.eclipse.emf.ecore.EClass eClass)  
      <T extends org.bimserver.emf.IdEObject>
      List<T>
      getAllWithSubTypes​(org.eclipse.emf.ecore.EClass eClass)  
      BimServerClient getBimServerClient()  
      org.bimserver.emf.IdEObject getByGuid​(String guid)  
      org.bimserver.emf.IdEObject getByName​(org.eclipse.emf.ecore.EClass eClass, String name)  
      ClientDebugInfo getClientDebugInfo()  
      Set<String> getGuids​(org.eclipse.emf.ecore.EClass eClass)  
      org.bimserver.emf.ModelMetaData getModelMetaData()  
      ClientIfcModel.ModelState getModelState()  
      Set<String> getNames​(org.eclipse.emf.ecore.EClass eClass)  
      org.bimserver.emf.IdEObject getNoFetch​(long oid)  
      org.bimserver.shared.PluginClassLoaderProvider getPluginClassLoaderProvider()  
      Long getTransactionId()  
      Collection<org.bimserver.emf.IdEObject> getValues()  
      Set<Long> keySet()  
      void load​(org.bimserver.emf.IdEObject object)  
      void loadExplicit​(long oid)  
      void loadGeometry()  
      void query​(com.fasterxml.jackson.databind.node.ObjectNode query, boolean assumeCompletePreload)  
      void queryNew​(org.bimserver.database.queries.om.Query query, org.bimserver.ifc.IfcModelChangeListener ifcModelChangeListener, boolean assumeCompletePreload)  
      void remove​(org.bimserver.emf.IdEObject object)  
      void set​(org.bimserver.emf.IdEObject idEObject, org.eclipse.emf.ecore.EStructuralFeature eFeature, Object newValue)  
      void setPluginClassLoaderProvider​(org.bimserver.shared.PluginClassLoaderProvider pluginClassLoaderProvider)  
      long size()  
      • Methods inherited from class org.bimserver.ifc.IfcModel

        add, addAllowMultiModel, addChangeListener, buildGuidIndex, buildIndex, buildNameIndex, changeOid, checkDoubleOids, checkDoubleOidsPlusReferences, clear, close, contains, countWithSubtypes, create, create, createAndAdd, createAndAdd, createAndAdd, dump, dumpObject, dumpPlusReferences, dumpSummary, fixInverseMismatches, fixOidCounter, fixOids, fixOids, fixOidsFlat, generateMinimalExpressIds, getAll, getAllWithSubTypes, getFirst, getFirst, getHighestOid, getObjects, getPackageMetaData, getPidRoidMap, getUnidentifiedValues, getUsedClasses, indexGuids, isUseDoubleStrings, isValid, iterateAllObjects, iterator, rebuildIndexPerClass, removeChangeListener, resetExpressIds, resetOids, resetOids, resetOidsFlat, setObjectOids, setOid, setUseDoubleStrings, showBackReferences
    • Constructor Detail

      • ClientIfcModel

        public ClientIfcModel​(BimServerClient bimServerClient,
                              long poid,
                              long roid,
                              boolean deep,
                              org.bimserver.emf.PackageMetaData packageMetaData,
                              boolean recordChanges,
                              boolean includeGeometry)
                       throws org.bimserver.shared.exceptions.ServerException,
                              org.bimserver.shared.exceptions.UserException,
                              org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Throws:
        org.bimserver.shared.exceptions.ServerException
        org.bimserver.shared.exceptions.UserException
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
    • Method Detail

      • getModelMetaData

        public org.bimserver.emf.ModelMetaData getModelMetaData()
        Specified by:
        getModelMetaData in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        getModelMetaData in class org.bimserver.ifc.IfcModel
      • branch

        public ClientIfcModel branch​(long poid,
                                     boolean recordChanges)
        Specified by:
        branch in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        branch in class org.bimserver.ifc.IfcModel
      • commit

        public long commit​(String comment)
                    throws org.bimserver.shared.exceptions.ServerException,
                           org.bimserver.shared.exceptions.UserException,
                           org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Specified by:
        commit in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        commit in class org.bimserver.ifc.IfcModel
        Throws:
        org.bimserver.shared.exceptions.ServerException
        org.bimserver.shared.exceptions.UserException
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • loadGeometry

        public void loadGeometry()
                          throws org.bimserver.database.queries.om.QueryException,
                                 org.bimserver.shared.exceptions.ServerException,
                                 org.bimserver.shared.exceptions.UserException,
                                 org.bimserver.shared.exceptions.PublicInterfaceNotFoundException,
                                 IOException,
                                 GeometryException,
                                 org.bimserver.emf.IfcModelInterfaceException
        Throws:
        org.bimserver.database.queries.om.QueryException
        org.bimserver.shared.exceptions.ServerException
        org.bimserver.shared.exceptions.UserException
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        IOException
        GeometryException
        org.bimserver.emf.IfcModelInterfaceException
      • getAll

        public <T extends org.bimserver.emf.IdEObject> List<T> getAll​(org.eclipse.emf.ecore.EClass eClass)
        Specified by:
        getAll in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        getAll in class org.bimserver.ifc.IfcModel
      • getGuids

        public Set<String> getGuids​(org.eclipse.emf.ecore.EClass eClass)
        Specified by:
        getGuids in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        getGuids in class org.bimserver.ifc.IfcModel
      • getNames

        public Set<String> getNames​(org.eclipse.emf.ecore.EClass eClass)
        Specified by:
        getNames in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        getNames in class org.bimserver.ifc.IfcModel
      • getByName

        public org.bimserver.emf.IdEObject getByName​(org.eclipse.emf.ecore.EClass eClass,
                                                     String name)
        Specified by:
        getByName in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        getByName in class org.bimserver.ifc.IfcModel
      • size

        public long size()
        Specified by:
        size in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        size in class org.bimserver.ifc.IfcModel
      • keySet

        public Set<Long> keySet()
        Specified by:
        keySet in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        keySet in class org.bimserver.ifc.IfcModel
      • get

        public org.bimserver.emf.IdEObject get​(long oid)
        Specified by:
        get in interface GeometryTarget
        Specified by:
        get in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        get in class org.bimserver.ifc.IfcModel
      • loadExplicit

        public void loadExplicit​(long oid)
      • getNoFetch

        public org.bimserver.emf.IdEObject getNoFetch​(long oid)
        Specified by:
        getNoFetch in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        getNoFetch in class org.bimserver.ifc.IfcModel
      • getValues

        public Collection<org.bimserver.emf.IdEObject> getValues()
        Specified by:
        getValues in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        getValues in class org.bimserver.ifc.IfcModel
      • getAllWithSubTypes

        public <T extends org.bimserver.emf.IdEObject> List<T> getAllWithSubTypes​(org.eclipse.emf.ecore.EClass eClass)
        Specified by:
        getAllWithSubTypes in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        getAllWithSubTypes in class org.bimserver.ifc.IfcModel
      • getTransactionId

        public Long getTransactionId()
      • contains

        public boolean contains​(long oid)
        Specified by:
        contains in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        contains in class org.bimserver.ifc.IfcModel
      • containsNoFetch

        public boolean containsNoFetch​(long oid)
        Specified by:
        containsNoFetch in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        containsNoFetch in class org.bimserver.ifc.IfcModel
      • containsGuid

        public boolean containsGuid​(String guid)
        Specified by:
        containsGuid in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        containsGuid in class org.bimserver.ifc.IfcModel
      • count

        public int count​(org.eclipse.emf.ecore.EClass eClass)
        Specified by:
        count in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        count in class org.bimserver.ifc.IfcModel
      • getByGuid

        public org.bimserver.emf.IdEObject getByGuid​(String guid)
        Specified by:
        getByGuid in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        getByGuid in class org.bimserver.ifc.IfcModel
      • create

        public <T extends org.bimserver.emf.IdEObject> T create​(Class<T> clazz)
                                                         throws org.bimserver.emf.IfcModelInterfaceException,
                                                                org.bimserver.plugins.ObjectAlreadyExistsException
        Specified by:
        create in interface GeometryTarget
        Specified by:
        create in interface org.bimserver.emf.ObjectFactory
        Overrides:
        create in class org.bimserver.ifc.IfcModel
        Throws:
        org.bimserver.emf.IfcModelInterfaceException
        org.bimserver.plugins.ObjectAlreadyExistsException
      • create

        public <T extends org.bimserver.emf.IdEObject> T create​(org.eclipse.emf.ecore.EClass eClass,
                                                                long oid)
                                                         throws org.bimserver.emf.IfcModelInterfaceException
        Specified by:
        create in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        create in class org.bimserver.ifc.IfcModel
        Throws:
        org.bimserver.emf.IfcModelInterfaceException
      • create

        public <T extends org.bimserver.emf.IdEObject> T create​(org.eclipse.emf.ecore.EClass eClass)
                                                         throws org.bimserver.emf.IfcModelInterfaceException,
                                                                org.bimserver.plugins.ObjectAlreadyExistsException
        Specified by:
        create in interface org.bimserver.emf.ObjectFactory
        Overrides:
        create in class org.bimserver.ifc.IfcModel
        Throws:
        org.bimserver.emf.IfcModelInterfaceException
        org.bimserver.plugins.ObjectAlreadyExistsException
      • set

        public void set​(org.bimserver.emf.IdEObject idEObject,
                        org.eclipse.emf.ecore.EStructuralFeature eFeature,
                        Object newValue)
        Specified by:
        set in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        set in class org.bimserver.ifc.IfcModel
      • checkin

        public void checkin​(long poid,
                            String comment)
                     throws org.bimserver.shared.exceptions.ServerException,
                            org.bimserver.shared.exceptions.UserException,
                            org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        This method requires IfcPlugins to be loaded (either on the default cp, or a a BIMserver plugin)
        Specified by:
        checkin in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        checkin in class org.bimserver.ifc.IfcModel
        Throws:
        org.bimserver.shared.exceptions.ServerException
        org.bimserver.shared.exceptions.UserException
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • load

        public void load​(org.bimserver.emf.IdEObject object)
        Specified by:
        load in interface org.bimserver.emf.IfcModelInterface
        Specified by:
        load in class org.bimserver.ifc.IfcModel
      • remove

        public void remove​(org.bimserver.emf.IdEObject object)
        Specified by:
        remove in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        remove in class org.bimserver.ifc.IfcModel
      • query

        public void query​(com.fasterxml.jackson.databind.node.ObjectNode query,
                          boolean assumeCompletePreload)
                   throws org.bimserver.shared.exceptions.ServerException,
                          org.bimserver.shared.exceptions.UserException,
                          org.bimserver.shared.exceptions.PublicInterfaceNotFoundException,
                          org.bimserver.emf.IfcModelInterfaceException,
                          IOException
        Specified by:
        query in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        query in class org.bimserver.ifc.IfcModel
        Throws:
        org.bimserver.shared.exceptions.ServerException
        org.bimserver.shared.exceptions.UserException
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        org.bimserver.emf.IfcModelInterfaceException
        IOException
      • queryNew

        public void queryNew​(org.bimserver.database.queries.om.Query query,
                             org.bimserver.ifc.IfcModelChangeListener ifcModelChangeListener,
                             boolean assumeCompletePreload)
      • dumpDebug

        public void dumpDebug()
        Specified by:
        dumpDebug in interface org.bimserver.emf.IfcModelInterface
        Overrides:
        dumpDebug in class org.bimserver.ifc.IfcModel
      • getPluginClassLoaderProvider

        public org.bimserver.shared.PluginClassLoaderProvider getPluginClassLoaderProvider()
      • setPluginClassLoaderProvider

        public void setPluginClassLoaderProvider​(org.bimserver.shared.PluginClassLoaderProvider pluginClassLoaderProvider)