TPTP 4.4.0 Testing Tools Project
Internal API Specification

org.eclipse.tptp.test.auto.gui.internal.core
Class WidgetIdentifier

java.lang.Object
  extended byorg.eclipse.tptp.test.auto.gui.internal.core.WidgetIdentifier

public class WidgetIdentifier
extends java.lang.Object

Used as an identifier for widgets. At a minimum, a context id and a widget id is required as part of a widget identifier.


Field Summary
static WidgetIdentifier NULL_IDENTIFIER
          A null identifier
 
Constructor Summary
WidgetIdentifier(org.eclipse.core.runtime.IPath contextId, org.eclipse.core.runtime.IPath widgetId, java.lang.String resolverId)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object object)
          An object in question is equalled to this object iff the object is of the same type and the context and the widget ids are the same.
 org.eclipse.core.runtime.IPath getContextId()
          Returns the context id of this identifier
 java.lang.String getFullyQualifiedId()
          Equivalent to getFullyQualifiedPath().toString().
 org.eclipse.core.runtime.IPath getFullyQualifiedPath()
          Returns the fully qualified path of this widget id.
 org.eclipse.core.runtime.IPath getObjectId()
          Returns the widget id of this identifier
 java.lang.String getReferenceId()
           
 java.lang.String getResolverId()
           
 void setContextId(org.eclipse.core.runtime.IPath contextId)
           
 void setObjectId(org.eclipse.core.runtime.IPath objectId)
           
 void setReferenceId(java.lang.String referenceId)
           
 void setResolverId(java.lang.String resolverId)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_IDENTIFIER

public static final WidgetIdentifier NULL_IDENTIFIER
A null identifier

Constructor Detail

WidgetIdentifier

public WidgetIdentifier(org.eclipse.core.runtime.IPath contextId,
                        org.eclipse.core.runtime.IPath widgetId,
                        java.lang.String resolverId)
Constructor

Parameters:
contextId - The context id
widgetId - The widget id
Method Detail

getFullyQualifiedPath

public org.eclipse.core.runtime.IPath getFullyQualifiedPath()
Returns the fully qualified path of this widget id. The fully qualified path is the context id/path appended with the widget path/id.

Returns:
The fully qualified path of this identifier.

getFullyQualifiedId

public java.lang.String getFullyQualifiedId()
Equivalent to getFullyQualifiedPath().toString().

Returns:
The fully qualified id

equals

public boolean equals(java.lang.Object object)
An object in question is equalled to this object iff the object is of the same type and the context and the widget ids are the same.

Parameters:
object - The object in question
Returns:
A boolean indicating whether object is equalled to this object or not.

getContextId

public org.eclipse.core.runtime.IPath getContextId()
Returns the context id of this identifier

Returns:
The context id

setContextId

public void setContextId(org.eclipse.core.runtime.IPath contextId)
Parameters:
contextId - the contextId to set

getObjectId

public org.eclipse.core.runtime.IPath getObjectId()
Returns the widget id of this identifier

Returns:
The widget id

setObjectId

public void setObjectId(org.eclipse.core.runtime.IPath objectId)
Parameters:
objectId - the objectId to set

getReferenceId

public java.lang.String getReferenceId()
Returns:
the referenceId

setReferenceId

public void setReferenceId(java.lang.String referenceId)
Parameters:
referenceId - the referenceId to set

getResolverId

public java.lang.String getResolverId()
Returns:
the resolverId

setResolverId

public void setResolverId(java.lang.String resolverId)
Parameters:
resolverId - the resolverId to set

TPTP 4.4.0 Testing Tools Project
Internal API Specification