public class

Priority

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

Class Overview

Contact's priority.

Summary

Nested Classes
enum Priority.Rel Priority category. 
Constants
String REL XML "rel" attribute name
String XML_NAME XML element name
Fields
private static final EnumToAttributeValue<Priority.Rel> REL_ENUM_TO_ATTRIBUTE_VALUE
private Priority.Rel rel Priority category
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
Priority()
Default mutable constructor.
Priority(Priority.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.
Priority.Rel getRel()
Returns the priority category.
boolean hasRel()
Returns whether it has the priority category.
int hashCode()
void setRel(Priority.Rel rel)
Sets the priority category.
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: "priority"

Fields

private static final EnumToAttributeValue<Priority.Rel> REL_ENUM_TO_ATTRIBUTE_VALUE

private Priority.Rel rel

Priority category

Public Constructors

public Priority ()

Default mutable constructor.

public Priority (Priority.Rel rel)

Immutable constructor.

Parameters
rel Priority category.

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 Priority.Rel getRel ()

Returns the priority category.

Returns
  • priority category

public boolean hasRel ()

Returns whether it has the priority category.

Returns
  • whether it has the priority category

public int hashCode ()

public void setRel (Priority.Rel rel)

Sets the priority category.

Parameters
rel Priority category 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.