Package com._1c.g5.v8.bm.integration
Class BmEcoreUtil
- java.lang.Object
-
- org.eclipse.emf.ecore.util.EcoreUtil
-
- com._1c.g5.v8.bm.integration.BmEcoreUtil
-
public class BmEcoreUtil extends org.eclipse.emf.ecore.util.EcoreUtil
This class contains convenient static methods for working with EMF and BM objects
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.EcoreUtil
org.eclipse.emf.ecore.util.EcoreUtil.AbstractFilteredSettingsIterator<E extends Object>, org.eclipse.emf.ecore.util.EcoreUtil.ContentTreeIterator<E extends Object>, org.eclipse.emf.ecore.util.EcoreUtil.CrossReferencer, org.eclipse.emf.ecore.util.EcoreUtil.EGenericTypeConverter, org.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper, org.eclipse.emf.ecore.util.EcoreUtil.ExternalCrossReferencer, org.eclipse.emf.ecore.util.EcoreUtil.FilteredSettingsIterator, org.eclipse.emf.ecore.util.EcoreUtil.ProperContentIterator<E extends Object>, org.eclipse.emf.ecore.util.EcoreUtil.ProxyCrossReferencer, org.eclipse.emf.ecore.util.EcoreUtil.UnresolvedProxyCrossReferencer, org.eclipse.emf.ecore.util.EcoreUtil.UsageCrossReferencer
-
-
Constructor Summary
Constructors Constructor Description BmEcoreUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends org.eclipse.emf.ecore.EObject>
TcloneWithProxies(T original)
Clones the given EObject without resolving any proxies.static <T extends IBmObject>
TcloneWithProxies(T original, boolean copyProperties)
Clones the given IBmObject without resolving any proxies.static org.eclipse.emf.ecore.EObject
getBmElement(org.eclipse.emf.ecore.EObject source)
Deprecated.The method is useless, because if the object itself is not attached to a BM, none of its container can be attached to a BM.-
Methods inherited from class org.eclipse.emf.ecore.util.EcoreUtil
computeDiagnostic, convertToString, copy, copyAll, create, createFromString, delete, delete, deleteAll, equals, equals, filterDescendants, freeze, generateUUID, generateUUID, getAdapter, getAdapterFactory, getAllContents, getAllContents, getAllContents, getAllContents, getAllContents, getAllProperContents, getAllProperContents, getAllProperContents, getAllProperContents, getAnnotation, getConstraints, getConversionDelegateFactory, getConversionDelegates, getDocumentation, getEObject, getExistingAdapter, getID, getIdentification, getInvocationDelegateFactory, getInvocationDelegates, getObjectByType, getObjectsByType, getRegisteredAdapter, getRegisteredAdapter, getReifiedType, getRelativeURIFragmentPath, getRoot, getRootContainer, getRootContainer, getSettingDelegateFactory, getSettingDelegates, getURI, getValidationDelegates, indexOf, isAncestor, isAncestor, isAncestor, isAncestor, isInvariant, isSuppressedVisibility, isSuppressedVisibility, remove, remove, remove, removeAll, removeAll, removeAll, replace, replace, replace, resolve, resolve, resolve, resolveAll, resolveAll, resolveAll, setAnnotation, setConstraints, setConversionDelegates, setDocumentation, setEList, setEList, setID, setInvocationDelegates, setSettingDelegates, setSuppressedVisibility, setSuppressedVisibility, setValidationDelegates, toJavaInstanceTypeName, wrapperClassFor
-
-
-
-
Method Detail
-
cloneWithProxies
public static <T extends org.eclipse.emf.ecore.EObject> T cloneWithProxies(T original)
Clones the given EObject without resolving any proxies.- Parameters:
original
- object to clone (notnull
)- Returns:
- returns copy of given object without resolving any proxies
or null if
original
was null.
-
cloneWithProxies
public static <T extends IBmObject> T cloneWithProxies(T original, boolean copyProperties)
Clones the given IBmObject without resolving any proxies.- Parameters:
original
- object to clone (notnull
)copyProperties
- if true copies properties oforiginal
- Returns:
- returns copy of given object without resolving any proxies
or null if
original
was null. IfcopyProperties
is true this implementation also copies object properties.
-
getBmElement
@Deprecated public static org.eclipse.emf.ecore.EObject getBmElement(org.eclipse.emf.ecore.EObject source)
Deprecated.The method is useless, because if the object itself is not attached to a BM, none of its container can be attached to a BM.- Returns:
- object itself in case it is attached to BM model, otherwise return first parent attached to BM model.
-
-