| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (version 1.7.0_75) on Mon Jun 08 05:48:07 EDT 2015 --> |
| <title>ComparisonUtil (EMF Compare API Specification)</title> |
| <meta name="date" content="2015-06-08"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ComparisonUtil (EMF Compare API Specification)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ComparisonUtil.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><em><span style='font-size:small'><b>EMF Compare</b><br>3.2.0.201506080946</span></em></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li><a href="../../../../../../org/eclipse/emf/compare/internal/utils/DiffUtil.html" title="class in org.eclipse.emf.compare.internal.utils"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/eclipse/emf/compare/internal/utils/ComparisonUtil.html" target="_top">Frames</a></li> |
| <li><a href="ComparisonUtil.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.eclipse.emf.compare.internal.utils</div> |
| <h2 title="Class ComparisonUtil" class="title">Class ComparisonUtil</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.emf.compare.internal.utils.ComparisonUtil</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public final class <span class="strong">ComparisonUtil</span> |
| extends <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">This utility class provides common methods for navigation over and querying of the Comparison model.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../org/eclipse/emf/compare/internal/utils/ComparisonUtil.html#bothArePlatformResourcesAndOnlyOneExists(org.eclipse.emf.ecore.resource.Resource,%20org.eclipse.emf.ecore.resource.Resource)">bothArePlatformResourcesAndOnlyOneExists</a></strong>(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/resource/Resource.html?is-external=true" title="class or interface in org.eclipse.emf.ecore.resource">Resource</a> leftResource, |
| <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/resource/Resource.html?is-external=true" title="class or interface in org.eclipse.emf.ecore.resource">Resource</a> rightResource)</code> |
| <div class="block">Checks if both resources are platform resources and only one exists.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../org/eclipse/emf/compare/internal/utils/ComparisonUtil.html#bothResourceHaveResourceSet(org.eclipse.emf.ecore.resource.Resource,%20org.eclipse.emf.ecore.resource.Resource)">bothResourceHaveResourceSet</a></strong>(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/resource/Resource.html?is-external=true" title="class or interface in org.eclipse.emf.ecore.resource">Resource</a> leftResource, |
| <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/resource/Resource.html?is-external=true" title="class or interface in org.eclipse.emf.ecore.resource">Resource</a> rightResource)</code> |
| <div class="block">Checks if both resources have resource set.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../../org/eclipse/emf/compare/Comparison.html" title="interface in org.eclipse.emf.compare">Comparison</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../org/eclipse/emf/compare/internal/utils/ComparisonUtil.html#getComparison(org.eclipse.emf.ecore.EObject)">getComparison</a></strong>(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object)</code> |
| <div class="block">Returns the comparison associated with the given object.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../org/eclipse/emf/compare/internal/utils/ComparisonUtil.html#getExpectedSide(org.eclipse.emf.compare.Match,%20org.eclipse.emf.compare.DifferenceSource,%20boolean)">getExpectedSide</a></strong>(<a href="../../../../../../org/eclipse/emf/compare/Match.html" title="interface in org.eclipse.emf.compare">Match</a> match, |
| <a href="../../../../../../org/eclipse/emf/compare/DifferenceSource.html" title="enum in org.eclipse.emf.compare">DifferenceSource</a> source, |
| boolean mergeRightToLeft)</code> |
| <div class="block">Determines the side of the given <a href="../../../../../../org/eclipse/emf/compare/Match.html" title="interface in org.eclipse.emf.compare"><code>Match</code></a> which represents the model state the other side will be |
| changed to.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static com.google.common.base.Function<<a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare">Diff</a>,<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare">Diff</a>>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../org/eclipse/emf/compare/internal/utils/ComparisonUtil.html#getSubDiffs(boolean)">getSubDiffs</a></strong>(boolean leftToRight)</code> |
| <div class="block">When merging a <a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare"><code>Diff</code></a>, returns the sub diffs of this given diff, and all associated diffs (see |
| <code>DiffUtil#getAssociatedDiffs(Iterable, boolean, Diff)</code>) of these sub diffs.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../org/eclipse/emf/compare/internal/utils/ComparisonUtil.html#isAddOrSetDiff(org.eclipse.emf.compare.Diff)">isAddOrSetDiff</a></strong>(<a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare">Diff</a> difference)</code> |
| <div class="block">Checks if the given difference is either an addition or a "set" from the default value to a new |
| reference.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../org/eclipse/emf/compare/internal/utils/ComparisonUtil.html#isContainedInFeatureMap(org.eclipse.emf.ecore.EObject)">isContainedInFeatureMap</a></strong>(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object)</code> |
| <div class="block">Determines if the given <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore"><code>EObject</code></a> is contained directly within a FeatureMap by checking the |
| <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EAnnotation.html?is-external=true" title="class or interface in org.eclipse.emf.ecore"><code>EAnnotation</code></a>s.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../org/eclipse/emf/compare/internal/utils/ComparisonUtil.html#isDeleteOrUnsetDiff(org.eclipse.emf.compare.Diff)">isDeleteOrUnsetDiff</a></strong>(<a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare">Diff</a> difference)</code> |
| <div class="block">Checks if the given difference is either a deletion or a "unset" to the default value.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../org/eclipse/emf/compare/internal/utils/ComparisonUtil.html#isFeatureMapContainment(org.eclipse.emf.compare.Diff)">isFeatureMapContainment</a></strong>(<a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare">Diff</a> diff)</code> |
| <div class="block">Checks whether the given diff corresponds to a feature map containment change.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../org/eclipse/emf/compare/internal/utils/ComparisonUtil.html#moveElementGetExpectedContainer(org.eclipse.emf.compare.Comparison,%20org.eclipse.emf.compare.FeatureMapChange,%20boolean)">moveElementGetExpectedContainer</a></strong>(<a href="../../../../../../org/eclipse/emf/compare/Comparison.html" title="interface in org.eclipse.emf.compare">Comparison</a> comparison, |
| <a href="../../../../../../org/eclipse/emf/compare/FeatureMapChange.html" title="interface in org.eclipse.emf.compare">FeatureMapChange</a> diff, |
| boolean rightToLeft)</code> |
| <div class="block">Get the expected target container in case of a move.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getSubDiffs(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSubDiffs</h4> |
| <pre>public static com.google.common.base.Function<<a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare">Diff</a>,<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare">Diff</a>>> getSubDiffs(boolean leftToRight)</pre> |
| <div class="block">When merging a <a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare"><code>Diff</code></a>, returns the sub diffs of this given diff, and all associated diffs (see |
| <code>DiffUtil#getAssociatedDiffs(Iterable, boolean, Diff)</code>) of these sub diffs. |
| <p> |
| If the diff is an <a href="../../../../../../org/eclipse/emf/compare/AttributeChange.html" title="interface in org.eclipse.emf.compare"><code>AttributeChange</code></a>, a |
| <a href="../../../../../../org/eclipse/emf/compare/FeatureMapChange.html" title="interface in org.eclipse.emf.compare"><code>FeatureMapChange</code></a> or a |
| <a href="../../../../../../org/eclipse/emf/compare/ResourceAttachmentChange.html" title="interface in org.eclipse.emf.compare"><code>ResourceAttachmentChange</code></a> , this method will return an empty iterable. |
| </p> |
| <p> |
| If the diff is a <a href="../../../../../../org/eclipse/emf/compare/ReferenceChange.html" title="interface in org.eclipse.emf.compare"><code>ReferenceChange</code></a> this method will return all differences contained in the match |
| that contains the value of the reference change, and all associated diffs of these differences. |
| </p></div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>leftToRight</code> - the direction of merge.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>an iterable containing the sub diffs of this given diff, and all associated diffs of these sub |
| diffs.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>3.0</dd></dl> |
| </li> |
| </ul> |
| <a name="isAddOrSetDiff(org.eclipse.emf.compare.Diff)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isAddOrSetDiff</h4> |
| <pre>public static boolean isAddOrSetDiff(<a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare">Diff</a> difference)</pre> |
| <div class="block">Checks if the given difference is either an addition or a "set" from the default value to a new |
| reference.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>difference</code> - The given difference.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if this is an addition or "set" diff.</dd></dl> |
| </li> |
| </ul> |
| <a name="isDeleteOrUnsetDiff(org.eclipse.emf.compare.Diff)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isDeleteOrUnsetDiff</h4> |
| <pre>public static boolean isDeleteOrUnsetDiff(<a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare">Diff</a> difference)</pre> |
| <div class="block">Checks if the given difference is either a deletion or a "unset" to the default value.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>difference</code> - The given difference.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if this is a deletion or "unset" diff.</dd></dl> |
| </li> |
| </ul> |
| <a name="isFeatureMapContainment(org.eclipse.emf.compare.Diff)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isFeatureMapContainment</h4> |
| <pre>public static boolean isFeatureMapContainment(<a href="../../../../../../org/eclipse/emf/compare/Diff.html" title="interface in org.eclipse.emf.compare">Diff</a> diff)</pre> |
| <div class="block">Checks whether the given diff corresponds to a feature map containment change. This holds true for |
| differences on feature map containment references' values.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>diff</code> - The diff to consider.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the given <code>diff</code> is to be considered a containment change, |
| <code>false</code> otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="moveElementGetExpectedContainer(org.eclipse.emf.compare.Comparison, org.eclipse.emf.compare.FeatureMapChange, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>moveElementGetExpectedContainer</h4> |
| <pre>public static <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> moveElementGetExpectedContainer(<a href="../../../../../../org/eclipse/emf/compare/Comparison.html" title="interface in org.eclipse.emf.compare">Comparison</a> comparison, |
| <a href="../../../../../../org/eclipse/emf/compare/FeatureMapChange.html" title="interface in org.eclipse.emf.compare">FeatureMapChange</a> diff, |
| boolean rightToLeft)</pre> |
| <div class="block">Get the expected target container in case of a move.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>comparison</code> - The comparison object.</dd><dd><code>diff</code> - The diff we are currently merging.</dd><dd><code>rightToLeft</code> - Whether we should move the value in the left or right side.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>The expected target container if found, <code>null</code> otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="getComparison(org.eclipse.emf.ecore.EObject)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getComparison</h4> |
| <pre>public static <a href="../../../../../../org/eclipse/emf/compare/Comparison.html" title="interface in org.eclipse.emf.compare">Comparison</a> getComparison(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object)</pre> |
| <div class="block">Returns the comparison associated with the given object. The given object is expected to be an instance |
| of one of the Class from the ComparePackage model.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>object</code> - the object from which the comparison should be retrieved.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the comparison.</dd></dl> |
| </li> |
| </ul> |
| <a name="getExpectedSide(org.eclipse.emf.compare.Match, org.eclipse.emf.compare.DifferenceSource, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getExpectedSide</h4> |
| <pre>public static <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> getExpectedSide(<a href="../../../../../../org/eclipse/emf/compare/Match.html" title="interface in org.eclipse.emf.compare">Match</a> match, |
| <a href="../../../../../../org/eclipse/emf/compare/DifferenceSource.html" title="enum in org.eclipse.emf.compare">DifferenceSource</a> source, |
| boolean mergeRightToLeft)</pre> |
| <div class="block">Determines the side of the given <a href="../../../../../../org/eclipse/emf/compare/Match.html" title="interface in org.eclipse.emf.compare"><code>Match</code></a> which represents the model state the other side will be |
| changed to.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>match</code> - The match whose side is returned.</dd><dd><code>source</code> - The source from which side the differences are determined.</dd><dd><code>mergeRightToLeft</code> - The direction of the merge.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>The side of the given <code>match</code> which represents the desired model state in regards to the |
| given <a href="../../../../../../org/eclipse/emf/compare/DifferenceSource.html" title="enum in org.eclipse.emf.compare"><code>DifferenceSource</code></a> and <code>MergeDirection</code>.</dd></dl> |
| </li> |
| </ul> |
| <a name="isContainedInFeatureMap(org.eclipse.emf.ecore.EObject)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isContainedInFeatureMap</h4> |
| <pre>public static boolean isContainedInFeatureMap(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object)</pre> |
| <div class="block">Determines if the given <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore"><code>EObject</code></a> is contained directly within a FeatureMap by checking the |
| <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EAnnotation.html?is-external=true" title="class or interface in org.eclipse.emf.ecore"><code>EAnnotation</code></a>s.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>object</code> - The object to check.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd> if the <code>object</code> is directly contained within a FeatureMap.</dd></dl> |
| </li> |
| </ul> |
| <a name="bothArePlatformResourcesAndOnlyOneExists(org.eclipse.emf.ecore.resource.Resource, org.eclipse.emf.ecore.resource.Resource)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>bothArePlatformResourcesAndOnlyOneExists</h4> |
| <pre>public static boolean bothArePlatformResourcesAndOnlyOneExists(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/resource/Resource.html?is-external=true" title="class or interface in org.eclipse.emf.ecore.resource">Resource</a> leftResource, |
| <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/resource/Resource.html?is-external=true" title="class or interface in org.eclipse.emf.ecore.resource">Resource</a> rightResource)</pre> |
| <div class="block">Checks if both resources are platform resources and only one exists.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>leftResource</code> - the first resource to check.</dd><dd><code>rightResource</code> - the second resource to check.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>true if both resources are platform resources and only one exists, false otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="bothResourceHaveResourceSet(org.eclipse.emf.ecore.resource.Resource, org.eclipse.emf.ecore.resource.Resource)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>bothResourceHaveResourceSet</h4> |
| <pre>public static boolean bothResourceHaveResourceSet(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/resource/Resource.html?is-external=true" title="class or interface in org.eclipse.emf.ecore.resource">Resource</a> leftResource, |
| <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/resource/Resource.html?is-external=true" title="class or interface in org.eclipse.emf.ecore.resource">Resource</a> rightResource)</pre> |
| <div class="block">Checks if both resources have resource set.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>leftResource</code> - the first resource to check.</dd><dd><code>rightResource</code> - the second resource to check.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>true if both resources have resource set, false otherwise.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ComparisonUtil.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><em><span style='font-size:small'><b>EMF Compare</b><br>3.2.0.201506080946</span></em></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li><a href="../../../../../../org/eclipse/emf/compare/internal/utils/DiffUtil.html" title="class in org.eclipse.emf.compare.internal.utils"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/eclipse/emf/compare/internal/utils/ComparisonUtil.html" target="_top">Frames</a></li> |
| <li><a href="ComparisonUtil.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small><br><span style='font-size:small;float:right'>Copyright (c) 2006, 2014 Obeo and others. All rights reserved.</span></small></p> |
| </body> |
| </html> |