public interface IfcModelInterface extends Iterable<IdEObject>, ObjectFactory
| Modifier and Type | Method and Description |
|---|---|
void |
add(long oid,
IdEObject newObject)
Add an object to this model with an explicit OID, only use this method in BIMserver internal code
|
void |
addAllowMultiModel(long oid,
IdEObject newObject)
Add an object to this model with an explicit OID, allow the object to exist in multiple models, only use this method in BIMserver internal code
|
IfcModelInterface |
branch(long poid,
boolean recordChanges) |
void |
changeOid(IdEObject object) |
void |
checkDoubleOidsPlusReferences() |
void |
checkin(long poid,
String comment) |
void |
clear() |
long |
commit(String comment) |
boolean |
contains(IdEObject referencedObject)
Tests whether the given object is part of this model
|
boolean |
contains(long oid)
Tests whether this model has a certain OID
|
boolean |
containsGuid(String referredGuid)
Tests if this model has a certain GUID
|
boolean |
containsNoFetch(long oid) |
int |
count(org.eclipse.emf.ecore.EClass eClass)
Count the amount of objects of the given type
|
int |
countWithSubtypes(org.eclipse.emf.ecore.EClass eClass) |
<T extends IdEObject> |
create(Class<T> class1,
OidProvider oidProvider) |
<T extends IdEObject> |
create(org.eclipse.emf.ecore.EClass eClass,
long oid) |
<T extends IdEObject> |
create(org.eclipse.emf.ecore.EClass eClass,
OidProvider oidProvider) |
<T extends IdEObject> |
createAndAdd(Class<T> class1) |
<T extends IdEObject> |
createAndAdd(org.eclipse.emf.ecore.EClass eClass) |
<T extends IdEObject> |
createAndAdd(org.eclipse.emf.ecore.EClass eClass,
long oid) |
void |
fixInverseMismatches() |
void |
fixOidCounter() |
void |
fixOids() |
void |
fixOids(OidProvider oidProvider) |
void |
fixOidsFlat(OidProvider oidProvider) |
void |
generateMinimalExpressIds() |
IdEObject |
get(long oid)
Retrieve an object by its OID
|
<T extends IdEObject> |
getAll(Class<T> clazz) |
<T extends IdEObject> |
getAll(org.eclipse.emf.ecore.EClass clazz) |
<T extends IdEObject> |
getAllWithSubTypes(Class<T> clazz) |
<T extends IdEObject> |
getAllWithSubTypes(org.eclipse.emf.ecore.EClass eClass) |
IdEObject |
getByGuid(String guid)
Retrieve an object by its GUID
|
IdEObject |
getByName(org.eclipse.emf.ecore.EClass eClass,
String name)
Retrieve an object by its name
|
<T extends IdEObject> |
getFirst(Class<T> class1) |
Set<String> |
getGuids(org.eclipse.emf.ecore.EClass eClass)
Retrieve a set of all the GUIDs of the objects of a certain type
|
long |
getHighestOid() |
ModelMetaData |
getModelMetaData() |
Set<String> |
getNames(org.eclipse.emf.ecore.EClass eClass)
Retrieve a set of all the names of the objects of a certain type
|
IdEObject |
getNoFetch(long oid) |
com.google.common.collect.BiMap<Long,IdEObject> |
getObjects() |
PackageMetaData |
getPackageMetaData() |
Map<Integer,Long> |
getPidRoidMap() |
Collection<IdEObject> |
getUnidentifiedValues() |
Set<org.eclipse.emf.ecore.EClass> |
getUsedClasses() |
Collection<IdEObject> |
getValues() |
void |
indexGuids() |
boolean |
isUseDoubleStrings() |
boolean |
isValid() |
Set<Long> |
keySet() |
void |
load(IdEObject idEObject) |
void |
query(com.fasterxml.jackson.databind.node.ObjectNode query) |
void |
remove(IdEObject objectToRemove)
Remove an object
|
void |
resetExpressIds() |
void |
resetOids() |
void |
resetOidsFlat() |
void |
set(IdEObject idEObject,
org.eclipse.emf.ecore.EStructuralFeature eFeature,
Object newValue) |
void |
setObjectOids() |
void |
setUseDoubleStrings(boolean useDoubleStrings) |
long |
size()
Retrieve the size of the model
|
forEach, iterator, spliteratorcreate, createIdEObject getByGuid(String guid)
guid - IdEObject getByName(org.eclipse.emf.ecore.EClass eClass, String name)
eClass - The type of the objectname - The name of the objectIdEObject get(long oid)
oid - Set<String> getGuids(org.eclipse.emf.ecore.EClass eClass)
eClass - The type to look forSet<String> getNames(org.eclipse.emf.ecore.EClass eClass)
eClass - The type to look forlong size()
boolean containsGuid(String referredGuid)
referredGuid - boolean contains(long oid)
oid - int count(org.eclipse.emf.ecore.EClass eClass)
eClass - The type to queryCollection<IdEObject> getValues()
com.google.common.collect.BiMap<Long,IdEObject> getObjects()
<T extends IdEObject> List<T> getAll(Class<T> clazz)
clazz - The type to query for<T extends IdEObject> List<T> getAll(org.eclipse.emf.ecore.EClass clazz)
clazz - The type to query for<T extends IdEObject> List<T> getAllWithSubTypes(Class<T> clazz)
clazz - The type to query for<T extends IdEObject> List<T> getAllWithSubTypes(org.eclipse.emf.ecore.EClass eClass)
clazz - The type to query forboolean contains(IdEObject referencedObject)
referencedObject - void add(long oid,
IdEObject newObject)
throws IfcModelInterfaceException,
ObjectAlreadyExistsException
oid - The given OIDnewObject - The new object to add to this modelIfcModelInterfaceExceptionObjectAlreadyStoredExceptionObjectAlreadyExistsExceptionvoid addAllowMultiModel(long oid,
IdEObject newObject)
throws IfcModelInterfaceException,
ObjectAlreadyExistsException
oid - The given OIDnewObject - The new object to add to this modelIfcModelInterfaceExceptionObjectAlreadyStoredExceptionObjectAlreadyExistsExceptionvoid remove(IdEObject objectToRemove)
objectToRemove - The object to remove from this modelModelMetaData getModelMetaData()
void fixOids(OidProvider oidProvider)
void fixOidsFlat(OidProvider oidProvider)
void setObjectOids()
void indexGuids()
long getHighestOid()
void resetOids()
void resetOidsFlat()
boolean isValid()
void checkDoubleOidsPlusReferences()
void fixOidCounter()
void setUseDoubleStrings(boolean useDoubleStrings)
boolean isUseDoubleStrings()
void changeOid(IdEObject object)
void fixOids()
void generateMinimalExpressIds()
void fixInverseMismatches()
Collection<IdEObject> getUnidentifiedValues()
int countWithSubtypes(org.eclipse.emf.ecore.EClass eClass)
void clear()
void resetExpressIds()
IfcModelInterface branch(long poid, boolean recordChanges)
long commit(String comment) throws ServerException, UserException, PublicInterfaceNotFoundException
<T extends IdEObject> T create(Class<T> class1, OidProvider oidProvider) throws IfcModelInterfaceException, ObjectAlreadyExistsException
<T extends IdEObject> T create(org.eclipse.emf.ecore.EClass eClass, OidProvider oidProvider) throws IfcModelInterfaceException, ObjectAlreadyExistsException
PackageMetaData getPackageMetaData()
void set(IdEObject idEObject, org.eclipse.emf.ecore.EStructuralFeature eFeature, Object newValue)
void checkin(long poid,
String comment)
throws ServerException,
UserException,
PublicInterfaceNotFoundException
<T extends IdEObject> T create(org.eclipse.emf.ecore.EClass eClass, long oid) throws IfcModelInterfaceException
IfcModelInterfaceException<T extends IdEObject> T createAndAdd(Class<T> class1) throws IfcModelInterfaceException, ObjectAlreadyExistsException
boolean containsNoFetch(long oid)
IdEObject getNoFetch(long oid)
void load(IdEObject idEObject)
Set<org.eclipse.emf.ecore.EClass> getUsedClasses()
void query(com.fasterxml.jackson.databind.node.ObjectNode query)
<T extends IdEObject> T createAndAdd(org.eclipse.emf.ecore.EClass eClass, long oid) throws IfcModelInterfaceException, ObjectAlreadyExistsException
<T extends IdEObject> T createAndAdd(org.eclipse.emf.ecore.EClass eClass) throws IfcModelInterfaceException, ObjectAlreadyExistsException
Copyright © 2018 OpenSource BIM. All rights reserved.