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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return whether this state description is equal the to given object.int
Return the portion of the state flags that represent the direction associated with the element for which this description was generated.int
getKind()
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.int
Return the synchronization state flags for the element for which this state description was generated.void
setProperty
(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:ITeamStateDescription
Return the synchronization state flags for the element for which this state description was generated. Only the portion of the synchronization state covered bystateMask
used when obtaining this description is returned.- Specified by:
getStateFlags
in interfaceITeamStateDescription
- Returns:
- the synchronization state of the given element
- See Also:
-
getKind
public int getKind()Description copied from interface:ITeamStateDescription
Return 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:
getKind
in interfaceITeamStateDescription
- Returns:
- the kind associated with the element for which this description was generated
-
getDirection
public int getDirection()Description copied from interface:ITeamStateDescription
Return 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:
getDirection
in interfaceITeamStateDescription
- Returns:
- the direction associated with the element for which this description was generated
-
getPropertyNames
Description copied from interface:ITeamStateDescription
Return the properties names for all decorated properties associated with the element for which this description was generated.- Specified by:
getPropertyNames
in interfaceITeamStateDescription
- Returns:
- the properties names for all decorated properties
-
getProperty
Description copied from interface:ITeamStateDescription
Return the value associated with the given property. Anull
is returned if the property has no value.- Specified by:
getProperty
in 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:ITeamStateDescription
Return 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:
equals
in interfaceITeamStateDescription
- Overrides:
equals
in classObject
- Parameters:
obj
- the object- Returns:
- whether this state description is equal the to given object
-