com.starteam.viewcomparemerge
Class VCMFolder.PreviewState

java.lang.Object
  extended by com.starteam.viewcomparemerge.VCMFolder.PreviewState
Enclosing class:
VCMFolder

public static final class VCMFolder.PreviewState
extends java.lang.Object

The preview state represents a highest precedence summary of all contained items and sub-folders and their contents. "has conflicts" is higher than "has changes" which is higher than "has compared items" which is higher than "has no compared items". A folder, for example, may contain items (directly or via sub-folders) in each of the four states, but the current value represents the highest precedence.


Field Summary
static VCMFolder.PreviewState[] ALL
           
static VCMFolder.PreviewState HAS_CHANGES
          Has Changes.
static VCMFolder.PreviewState HAS_COMPARED_ITEMS
          Has Compared Items.
static VCMFolder.PreviewState HAS_CONFLICTS
          Has Conflicts.
static VCMFolder.PreviewState HAS_NO_COMPARED_ITEMS
          Has No Compared Items.
 
Method Summary
 boolean equals(java.lang.Object previewState)
          returns true if the specified mergeType instance is the same as this one
 java.lang.String getName()
          Returns a string representation of the preview state.
 int hashCode()
           
 int toInt()
          Returns an Integer representation of this preview state
 java.lang.String toString()
          Returns a String representation of this preview state
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

HAS_CONFLICTS

public static final VCMFolder.PreviewState HAS_CONFLICTS
Has Conflicts.


HAS_CHANGES

public static final VCMFolder.PreviewState HAS_CHANGES
Has Changes.


HAS_COMPARED_ITEMS

public static final VCMFolder.PreviewState HAS_COMPARED_ITEMS
Has Compared Items.


HAS_NO_COMPARED_ITEMS

public static final VCMFolder.PreviewState HAS_NO_COMPARED_ITEMS
Has No Compared Items.


ALL

public static final VCMFolder.PreviewState[] ALL
Method Detail

getName

public java.lang.String getName()
Returns a string representation of the preview state.

Returns:
a string representation of the preview state.

toString

public java.lang.String toString()
Returns a String representation of this preview state

Overrides:
toString in class java.lang.Object
Returns:
String a String representation of this preview state

equals

public boolean equals(java.lang.Object previewState)
returns true if the specified mergeType instance is the same as this one

Overrides:
equals in class java.lang.Object
Parameters:
previewState -
Returns:
boolean true if the specified mergeType instance is the same as this one

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toInt

public int toInt()
Returns an Integer representation of this preview state

Returns:
int an Integer representation of this preview state


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.