Package org.eclipse.team.ui.synchronize
Class TeamStateDescription
- java.lang.Object
-
- org.eclipse.team.ui.synchronize.TeamStateDescription
-
- All Implemented Interfaces:
ITeamStateDescription
public class TeamStateDescription extends Object implements ITeamStateDescription
An implementation ofITeamStateDescription.This class may be subclassed by clients.
- Since:
- 3.2
-
-
Constructor Summary
Constructors Constructor Description TeamStateDescription(int state)Create a description with the given state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Return whether this state description is equal the to given object.intgetDirection()Return 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.ObjectgetProperty(String property)Return the value associated with the given property.String[]getPropertyNames()Return the properties names for all decorated properties associated with the element for which this description was generated.intgetStateFlags()Return 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
-
-
-
Method Detail
-
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:
IDiff,IThreeWayDiff,IResourceDiff
-
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
public String[] 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
public Object getProperty(String property)
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
public void setProperty(String property, Object value)
Set the given property to the given value- Parameters:
property- the propertyvalue- the value
-
equals
public boolean equals(Object obj)
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
-
-