com.google.gdata.data.analytics
Class Engagement

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.ExtensionPoint
          extended by com.google.gdata.data.analytics.Engagement
All Implemented Interfaces:
Extension

public class Engagement
extends ExtensionPoint

Engagement goal.


Nested Class Summary
static class Engagement.Comparison
          Engagement goal's comparison operation.
static class Engagement.Type
          Goal's threshold type.
 
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
 
Constructor Summary
Engagement()
          Default mutable constructor.
Engagement(java.lang.String comparison, java.lang.Long thresholdValue, java.lang.String type)
          Immutable constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getComparison()
          Returns the engagement goal's comparison operation.
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
          Returns the extension description, specifying whether it is required, and whether it is repeatable.
 java.lang.Long getThresholdValue()
          Returns the threshold value.
 java.lang.String getType()
          Returns the goal's threshold type.
 boolean hasComparison()
          Returns whether it has the engagement goal's comparison operation.
 int hashCode()
           
 boolean hasThresholdValue()
          Returns whether it has the threshold value.
 boolean hasType()
          Returns whether it has the goal's threshold type.
 void setComparison(java.lang.String comparison)
          Sets the engagement goal's comparison operation.
 void setThresholdValue(java.lang.Long thresholdValue)
          Sets the threshold value.
 void setType(java.lang.String type)
          Sets the goal's threshold type.
 java.lang.String toString()
           
 
Methods inherited from class com.google.gdata.data.ExtensionPoint
addExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getHandler, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
 
Methods inherited from class com.google.gdata.data.AbstractExtension
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Engagement

public Engagement()
Default mutable constructor.


Engagement

public Engagement(java.lang.String comparison,
                  java.lang.Long thresholdValue,
                  java.lang.String type)
Immutable constructor.

Parameters:
comparison - engagement goal's comparison operation.
thresholdValue - threshold value.
type - goal's threshold type.
Method Detail

getComparison

public java.lang.String getComparison()
Returns the engagement goal's comparison operation.

Returns:
engagement goal's comparison operation

setComparison

public void setComparison(java.lang.String comparison)
Sets the engagement goal's comparison operation.

Parameters:
comparison - engagement goal's comparison operation or null to reset

hasComparison

public boolean hasComparison()
Returns whether it has the engagement goal's comparison operation.

Returns:
whether it has the engagement goal's comparison operation

getThresholdValue

public java.lang.Long getThresholdValue()
Returns the threshold value.

Returns:
threshold value

setThresholdValue

public void setThresholdValue(java.lang.Long thresholdValue)
Sets the threshold value.

Parameters:
thresholdValue - threshold value or null to reset

hasThresholdValue

public boolean hasThresholdValue()
Returns whether it has the threshold value.

Returns:
whether it has the threshold value

getType

public java.lang.String getType()
Returns the goal's threshold type.

Returns:
goal's threshold type

setType

public void setType(java.lang.String type)
Sets the goal's threshold type.

Parameters:
type - goal's threshold type or null to reset

hasType

public boolean hasType()
Returns whether it has the goal's threshold type.

Returns:
whether it has the goal's threshold type

getDefaultDescription

public static ExtensionDescription getDefaultDescription(boolean required,
                                                         boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.

Parameters:
required - whether it is required
repeatable - whether it is repeatable
Returns:
extension description

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object