Package org.eclipse.team.ui.synchronize
Class TeamStateDescription
java.lang.Object
org.eclipse.team.ui.synchronize.TeamStateDescription
- All Implemented Interfaces:
ITeamStateDescription
An implementation of
ITeamStateDescription.
This class may be subclassed by clients.
- Since:
- 3.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn whether this state description is equal the to given object.intReturn the portion of the state flags that represent the direction associated with the element for which this description was generated.intgetKind()Return the portion of the state flags that represent the kind associated with the element for which this description was generated.getProperty(String property) Return the value associated with the given property.String[]Return the properties names for all decorated properties associated with the element for which this description was generated.intReturn the synchronization state flags for the element for which this state description was generated.voidsetProperty(String property, Object value) Set the given property to the given value
-
Constructor Details
-
TeamStateDescription
public TeamStateDescription(int state) Create a description with the given state.- Parameters:
state- the state
-
-
Method Details
-
getStateFlags
public int getStateFlags()Description copied from interface:ITeamStateDescriptionReturn the synchronization state flags for the element for which this state description was generated. Only the portion of the synchronization state covered bystateMaskused when obtaining this description is returned.- Specified by:
getStateFlagsin interfaceITeamStateDescription- Returns:
- the synchronization state of the given element
- See Also:
-
getKind
public int getKind()Description copied from interface:ITeamStateDescriptionReturn the portion of the state flags that represent the kind associated with the element for which this description was generated. SeeIDiff.getKind()for a description of what this value represents.- Specified by:
getKindin interfaceITeamStateDescription- Returns:
- the kind associated with the element for which this description was generated
-
getDirection
public int getDirection()Description copied from interface:ITeamStateDescriptionReturn the portion of the state flags that represent the direction associated with the element for which this description was generated. SeeIThreeWayDiff.getDirection()for a description of what this value represents.- Specified by:
getDirectionin interfaceITeamStateDescription- Returns:
- the direction associated with the element for which this description was generated
-
getPropertyNames
Description copied from interface:ITeamStateDescriptionReturn the properties names for all decorated properties associated with the element for which this description was generated.- Specified by:
getPropertyNamesin interfaceITeamStateDescription- Returns:
- the properties names for all decorated properties
-
getProperty
Description copied from interface:ITeamStateDescriptionReturn the value associated with the given property. Anullis returned if the property has no value.- Specified by:
getPropertyin interfaceITeamStateDescription- Parameters:
property- the property- Returns:
- the value associated with the given property or
null
-
setProperty
Set the given property to the given value- Parameters:
property- the propertyvalue- the value
-
equals
Description copied from interface:ITeamStateDescriptionReturn whether this state description is equal the to given object. Clients should use this method to test whether two state descriptions are equal.- Specified by:
equalsin interfaceITeamStateDescription- Overrides:
equalsin classObject- Parameters:
obj- the object- Returns:
- whether this state description is equal the to given object
-