|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.starteam.viewcomparemerge.AmbiguousMatchException
public class AmbiguousMatchException
In most VCM sessions, the VCM engine can unambiguously match the root folder of the source view to some folder in the target view, or the root folder of the target view to some folder in the source view. When at least one of the views is a non-derived view, the SDK usually cannot match either root folder, and therefore does not know how the items in the two views are related. In this case, Session.compare() will throw an AmbiguousMatchException. The client application may respond by calling Session.setMatch() to explicitly specify how the ambiguous folder should be matched, followed by a second call to compare().
| Method Summary | |
|---|---|
Item |
getItem()
Gets the item that could not be unambiguously matched, and, as a result, triggered this exception. |
boolean |
isItemFromSourceView()
Indicates whether the ambiguous item resides in the source view or the target view. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Item getItem()
Note that in practice, the item returned by getItem() is currently always a Folder.
AmbiguousMatchException.isItemFromSourceView()public boolean isItemFromSourceView()
AmbiguousMatchException.getItem()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||