|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ComparePairType>
org.openstreetmap.josm.gui.conflict.pair.ComparePairType
public enum ComparePairType
Enumeration of the possible comparison pairs
Enum Constant Summary | |
---|---|
MY_WITH_MERGED
compare my version of an OsmPrimitive with the merged version |
|
MY_WITH_THEIR
compare my version of an OsmPrimitive with their version |
|
THEIR_WITH_MERGED
compare their version of an OsmPrimitive with the merged veresion |
Field Summary | |
---|---|
private java.lang.String |
displayName
the localized display name |
private ListRole[] |
participatingRoles
|
Method Summary | |
---|---|
java.lang.String |
getDisplayName()
replies the display name |
ListRole |
getOppositeRole(ListRole role)
replies the opposite role of role participating in this comparison
pair |
ListRole[] |
getParticipatingRoles()
replies the pair of ListRole s participating in this comparison
pair |
boolean |
isParticipatingIn(ListRole role)
replies true, if role is participating in this comparison
pair |
static ComparePairType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ComparePairType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ComparePairType MY_WITH_THEIR
OsmPrimitive
with their version
public static final ComparePairType MY_WITH_MERGED
OsmPrimitive
with the merged version
public static final ComparePairType THEIR_WITH_MERGED
OsmPrimitive
with the merged veresion
Field Detail |
---|
private final java.lang.String displayName
private ListRole[] participatingRoles
Method Detail |
---|
public static ComparePairType[] values()
for (ComparePairType c : ComparePairType.values()) System.out.println(c);
public static ComparePairType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDisplayName()
public boolean isParticipatingIn(ListRole role)
role
is participating in this comparison
pair
role
- the list role
role
is participating in this comparison
pair; false, otherwisepublic ListRole[] getParticipatingRoles()
ListRole
s participating in this comparison
pair
public ListRole getOppositeRole(ListRole role)
role
participating in this comparison
pair
role
- one of the two roles in this pair
java.lang.IllegalStateException
- if role is not participating in this pair
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |