public class

Sensitivity

extends ExtensionPoint
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.contacts.Sensitivity

Class Overview

Contact's sensitivity.

Summary

Nested Classes
enum Sensitivity.Rel Sensitivity type. 
Constants
String REL XML "rel" attribute name
String XML_NAME XML element name
Fields
private static final EnumToAttributeValue<Sensitivity.Rel> REL_ENUM_TO_ATTRIBUTE_VALUE
private Sensitivity.Rel rel Sensitivity type
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
Sensitivity()
Default mutable constructor.
Sensitivity(Sensitivity.Rel rel)
Immutable constructor.
Public Methods
boolean equals(Object obj)
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
Sensitivity.Rel getRel()
Returns the sensitivity type.
boolean hasRel()
Returns whether it has the sensitivity type.
int hashCode()
void setRel(Sensitivity.Rel rel)
Sets the sensitivity type.
String toString()
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

private static final String REL

XML "rel" attribute name

Constant Value: "rel"

static final String XML_NAME

XML element name

Constant Value: "sensitivity"

Fields

private static final EnumToAttributeValue<Sensitivity.Rel> REL_ENUM_TO_ATTRIBUTE_VALUE

private Sensitivity.Rel rel

Sensitivity type

Public Constructors

public Sensitivity ()

Default mutable constructor.

public Sensitivity (Sensitivity.Rel rel)

Immutable constructor.

Parameters
rel Sensitivity type.

Public Methods

public boolean equals (Object obj)

Parameters
obj

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

public Sensitivity.Rel getRel ()

Returns the sensitivity type.

Returns
  • sensitivity type

public boolean hasRel ()

Returns whether it has the sensitivity type.

Returns
  • whether it has the sensitivity type

public int hashCode ()

public void setRel (Sensitivity.Rel rel)

Sets the sensitivity type.

Parameters
rel Sensitivity type or null to reset

public String toString ()

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator

protected void validate ()

Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.