Class BmObject

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl

        org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
      • Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

        org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
      • Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

        org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
      • Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject

        org.eclipse.emf.ecore.InternalEObject.EStore
    • Field Summary

      • Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

        EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
      • Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder

        NIL
      • Fields inherited from interface org.eclipse.emf.ecore.InternalEObject

        EOPPOSITE_FEATURE_BASE
    • Constructor Summary

      Constructors 
      Constructor Description
      BmObject()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IBmEngine bmGetEngine()
      Gets the engine the object is managed by.
      String bmGetFqn()
      Gets FQN of this object.
      long bmGetId()
      Gets the object's ID.
      Map<String,​String> bmGetProperties()
      Gets map containing all the object's properties.
      String bmGetProperty​(String property)
      Gets the specified property value.
      Collection<IBmCrossReference> bmGetReferences()
      Gets the references pointing to this object.
      int bmGetResourceId()
      Gets resource ID this object belongs to.
      BmObject bmGetTopObject()
      Gets the corresponding top-level object.
      com._1c.g5.v8.bm.core.internal.IBmInternalTransaction bmGetTransaction()
      Gets the transaction this object is associated with.
      org.eclipse.emf.common.util.URI bmGetUri()
      Gets URI of this object.
      String bmGetUriAsString()
      Gets URI of this object in the form of a string.
      This method could be used as an optimization to not overload the (URI pool.
      boolean bmIsTop()
      Checks if the object is top-level.
      boolean bmIsTransient()
      Checks whether the object is transient (not attached to BM).
      List<String> bmListBinaryData()
      Gets the list of binary data streams.
      InputStream bmReadBinaryData​(String streamId)
      Gets a stream for read access to the binary data.
      void bmRemoveBinaryData​(String streamId)
      Removes binary data.
      void bmSetProperty​(String property, String value)
      Sets the specified property value.
      OutputStream bmWriteBinaryData​(String streamId)
      Gets a stream for write access to the binary data.
      protected org.eclipse.emf.ecore.util.FeatureMap createFeatureMap​(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)  
      protected org.eclipse.emf.common.util.EList<?> createList​(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)  
      Object dynamicGet​(int dynamicFeatureID)  
      void dynamicSet​(int dynamicFeatureID, Object value)  
      void dynamicUnset​(int dynamicFeatureID)  
      protected void eBasicSetContainer​(org.eclipse.emf.ecore.InternalEObject newContainer, int newContainerFeatureID)  
      org.eclipse.emf.common.notify.NotificationChain eBasicSetContainer​(org.eclipse.emf.ecore.InternalEObject newContainer, int newContainerFeatureID, org.eclipse.emf.common.notify.NotificationChain msgs)  
      protected void eBasicSetSettings​(Object[] settings)  
      protected Object[] eBasicSettings()  
      org.eclipse.emf.ecore.EClass eClass()  
      int eContainerFeatureID()  
      org.eclipse.emf.ecore.resource.Resource.Internal eDirectResource()  
      Object eGet​(int featureId, boolean resolve, boolean coreType)  
      protected boolean eHasSettings()  
      org.eclipse.emf.ecore.InternalEObject eInternalContainer()  
      org.eclipse.emf.ecore.resource.Resource.Internal eInternalResource()  
      org.eclipse.emf.common.notify.NotificationChain eInverseAdd​(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, Class<?> baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)  
      boolean eNotificationRequired()  
      void eNotify​(org.eclipse.emf.common.notify.Notification notification)  
      boolean equals​(Object obj)  
      org.eclipse.emf.ecore.EObject eResolveProxy​(org.eclipse.emf.ecore.InternalEObject proxy)  
      protected void eSetDirectResource​(org.eclipse.emf.ecore.resource.Resource.Internal resource)  
      void eSetStore​(org.eclipse.emf.ecore.InternalEObject.EStore store)  
      protected org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder eSettings()  
      org.eclipse.emf.ecore.InternalEObject.EStore eStore()  
      int hashCode()  
      • Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl

        eBasicContainerFeatureID, eBasicInternalContainer, eDerivedStructuralFeatureID, eDynamicIsSet, eIsCaching, eStaticFeatureCount
      • Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl

        eAdapters, eBasicAdapterArray, eBasicAdapterListeners, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainerFeatureID, eContents, eCrossReferences, eDeliver, eDynamicClass, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetProxyURI
      • Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

        eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInverseAdd, eInverseRemove, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResource, eSet, eSet, eSetResource, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticClass, eStaticOperationCount, eUnset, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, toString
      • Methods inherited from interface org.eclipse.emf.ecore.EObject

        eAllContents, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
      • Methods inherited from interface org.eclipse.emf.common.notify.Notifier

        eAdapters, eDeliver, eSetDeliver
    • Constructor Detail

      • BmObject

        public BmObject()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • bmGetId

        public long bmGetId()
        Description copied from interface: IBmObject
        Gets the object's ID.
        Specified by:
        bmGetId in interface IBmObject
        Returns:
        the object's ID or -1L if the object has never been attached to BM.
      • bmIsTop

        public boolean bmIsTop()
        Description copied from interface: IBmObject
        Checks if the object is top-level.
        Specified by:
        bmIsTop in interface IBmObject
        Returns:
        true if the object is top-level, otherwise false.
      • bmGetEngine

        public IBmEngine bmGetEngine()
        Description copied from interface: IBmObject
        Gets the engine the object is managed by.
        Specified by:
        bmGetEngine in interface IBmObject
        Returns:
        the engine or null if the object is not attached to BM.
      • bmGetTransaction

        public com._1c.g5.v8.bm.core.internal.IBmInternalTransaction bmGetTransaction()
        Description copied from interface: IBmObject
        Gets the transaction this object is associated with.
        Specified by:
        bmGetTransaction in interface IBmObject
        Returns:
        the transaction or null if the object is not associated with a transaction.
      • eSetStore

        public void eSetStore​(org.eclipse.emf.ecore.InternalEObject.EStore store)
        Specified by:
        eSetStore in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eSetStore in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eStore

        public org.eclipse.emf.ecore.InternalEObject.EStore eStore()
        Specified by:
        eStore in interface org.eclipse.emf.ecore.InternalEObject
        Specified by:
        eStore in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
      • eClass

        public org.eclipse.emf.ecore.EClass eClass()
        Specified by:
        eClass in interface org.eclipse.emf.ecore.EObject
        Overrides:
        eClass in class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
      • bmGetResourceId

        public int bmGetResourceId()
        Description copied from interface: IBmObject
        Gets resource ID this object belongs to. If the object is not attached to BM an exception is thrown.
        Specified by:
        bmGetResourceId in interface IBmObject
        Returns:
        the resource ID.
      • bmSetProperty

        public void bmSetProperty​(String property,
                                  String value)
        Description copied from interface: IBmObject
        Sets the specified property value.
        Specified by:
        bmSetProperty in interface IBmObject
        Parameters:
        property - The property to set value. May not be null.
        value - The value to set. May be null.
      • bmGetProperties

        public Map<String,​String> bmGetProperties()
        Description copied from interface: IBmObject
        Gets map containing all the object's properties.
        Specified by:
        bmGetProperties in interface IBmObject
        Returns:
        a map containing all the object's properties, never null.
      • bmGetProperty

        public String bmGetProperty​(String property)
        Description copied from interface: IBmObject
        Gets the specified property value.
        Specified by:
        bmGetProperty in interface IBmObject
        Parameters:
        property - The property to get value. May not be null.
        Returns:
        the property value if set, null otherwise.
      • bmReadBinaryData

        public InputStream bmReadBinaryData​(String streamId)
        Description copied from interface: IBmObject
        Gets a stream for read access to the binary data.
        Specified by:
        bmReadBinaryData in interface IBmObject
        Parameters:
        streamId - stream ID to gain read access for.
        Returns:
        InputStream stream associated with this object.
      • bmListBinaryData

        public List<String> bmListBinaryData()
        Description copied from interface: IBmObject
        Gets the list of binary data streams. If the object is not attached to BM this method throws an exception.
        Specified by:
        bmListBinaryData in interface IBmObject
        Returns:
        the list of the binary data streams, never null.
      • bmWriteBinaryData

        public OutputStream bmWriteBinaryData​(String streamId)
        Description copied from interface: IBmObject
        Gets a stream for write access to the binary data. If the object is not attached to BM this method throws an exception.
        Specified by:
        bmWriteBinaryData in interface IBmObject
        Parameters:
        streamId - The stream ID to gain write access to. May not be null.
        Returns:
        OutputStream stream associated with this object
        See Also:
        #bmWriteBinaryData(String, boolean)
      • bmRemoveBinaryData

        public void bmRemoveBinaryData​(String streamId)
        Description copied from interface: IBmObject
        Removes binary data. If the object is not attached to BM this method throws an exception.
        Specified by:
        bmRemoveBinaryData in interface IBmObject
        Parameters:
        streamId - The ID of the data stream to remove. May not be null.
      • eGet

        public Object eGet​(int featureId,
                           boolean resolve,
                           boolean coreType)
        Specified by:
        eGet in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • dynamicGet

        public final Object dynamicGet​(int dynamicFeatureID)
        Specified by:
        dynamicGet in interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
        Overrides:
        dynamicGet in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
      • dynamicSet

        public final void dynamicSet​(int dynamicFeatureID,
                                     Object value)
        Specified by:
        dynamicSet in interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
        Overrides:
        dynamicSet in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
      • dynamicUnset

        public final void dynamicUnset​(int dynamicFeatureID)
        Specified by:
        dynamicUnset in interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
        Overrides:
        dynamicUnset in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
      • eContainerFeatureID

        public final int eContainerFeatureID()
        Specified by:
        eContainerFeatureID in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eContainerFeatureID in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
      • eNotificationRequired

        public boolean eNotificationRequired()
        Specified by:
        eNotificationRequired in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eNotificationRequired in class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      • eNotify

        public void eNotify​(org.eclipse.emf.common.notify.Notification notification)
        Specified by:
        eNotify in interface org.eclipse.emf.common.notify.Notifier
        Overrides:
        eNotify in class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      • eInverseAdd

        public org.eclipse.emf.common.notify.NotificationChain eInverseAdd​(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                           int featureID,
                                                                           Class<?> baseClass,
                                                                           org.eclipse.emf.common.notify.NotificationChain msgs)
        Specified by:
        eInverseAdd in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eInverseAdd in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • bmIsTransient

        public boolean bmIsTransient()
        Description copied from interface: IBmObject
        Checks whether the object is transient (not attached to BM).
        Specified by:
        bmIsTransient in interface IBmObject
        Returns:
        true if the object is transient, false otherwise.
      • bmGetFqn

        public String bmGetFqn()
        Description copied from interface: IBmObject
        Gets FQN of this object. If this object is not attached to BM or not a top object, an exception is thrown.
        Specified by:
        bmGetFqn in interface IBmObject
        Returns:
        the FQN, not null.
      • bmGetTopObject

        public BmObject bmGetTopObject()
        Description copied from interface: IBmObject
        Gets the corresponding top-level object. If the object is not attached to BM an exception is thrown.
        Specified by:
        bmGetTopObject in interface IBmObject
        Returns:
        the corresponding top-level object, not null.
      • bmGetUri

        public org.eclipse.emf.common.util.URI bmGetUri()
        Description copied from interface: IBmObject
        Gets URI of this object.
        Specified by:
        bmGetUri in interface IBmObject
        Returns:
        the URI or null.
      • bmGetUriAsString

        public String bmGetUriAsString()
        Description copied from interface: IBmObject
        Gets URI of this object in the form of a string.
        This method could be used as an optimization to not overload the (URI pool.
        Specified by:
        bmGetUriAsString in interface IBmObject
        Returns:
        the URI or null.
      • eInternalContainer

        public final org.eclipse.emf.ecore.InternalEObject eInternalContainer()
        Specified by:
        eInternalContainer in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eInternalContainer in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
      • eBasicSetContainer

        public org.eclipse.emf.common.notify.NotificationChain eBasicSetContainer​(org.eclipse.emf.ecore.InternalEObject newContainer,
                                                                                  int newContainerFeatureID,
                                                                                  org.eclipse.emf.common.notify.NotificationChain msgs)
        Specified by:
        eBasicSetContainer in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eBasicSetContainer in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eDirectResource

        public org.eclipse.emf.ecore.resource.Resource.Internal eDirectResource()
        Specified by:
        eDirectResource in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eDirectResource in class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
      • eResolveProxy

        public org.eclipse.emf.ecore.EObject eResolveProxy​(org.eclipse.emf.ecore.InternalEObject proxy)
        Specified by:
        eResolveProxy in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eResolveProxy in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eInternalResource

        public org.eclipse.emf.ecore.resource.Resource.Internal eInternalResource()
        Specified by:
        eInternalResource in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eInternalResource in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eSetDirectResource

        protected void eSetDirectResource​(org.eclipse.emf.ecore.resource.Resource.Internal resource)
        Overrides:
        eSetDirectResource in class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
      • eSettings

        protected final org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder eSettings()
        Overrides:
        eSettings in class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
      • eHasSettings

        protected boolean eHasSettings()
        Overrides:
        eHasSettings in class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
      • eBasicSettings

        protected Object[] eBasicSettings()
        Overrides:
        eBasicSettings in class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
      • eBasicSetSettings

        protected void eBasicSetSettings​(Object[] settings)
        Overrides:
        eBasicSetSettings in class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
      • eBasicSetContainer

        protected void eBasicSetContainer​(org.eclipse.emf.ecore.InternalEObject newContainer,
                                          int newContainerFeatureID)
        Overrides:
        eBasicSetContainer in class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
      • createFeatureMap

        protected org.eclipse.emf.ecore.util.FeatureMap createFeatureMap​(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
        Overrides:
        createFeatureMap in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
      • createList

        protected org.eclipse.emf.common.util.EList<?> createList​(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
        Overrides:
        createList in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl