public abstract class

MetadataKey

extends Object
implements Comparable<T>
java.lang.Object
   ↳ com.google.gdata.model.MetadataKey<D>
Known Direct Subclasses

Class Overview

A key representing a particular metadata instance. All metadata keys have at least an ID and a datatype. Metadata keys have a natural ordering based first on key type, then on the natural ordering within that key type. Metadata keys also support equivalence and matching, both of which are defined by subtypes. See AttributeKey and ElementKey for the details.

Summary

Fields
final Class<? extends D> datatype
final QName id
Public Methods
Class<? extends D> getDatatype()
Returns the datatype of the property.
QName getId()
Returns the id of the property.
abstract boolean matches(MetadataKey<?> other)
Returns true if this key matches the given key.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Comparable

Fields

final Class<? extends D> datatype

final QName id

Public Methods

public Class<? extends D> getDatatype ()

Returns the datatype of the property. This the type of the attribute value or the text content of an element.

Returns
  • the datatype of the property

public QName getId ()

Returns the id of the property. This is the canonical name of the property, and will stay the same across transforms and contexts. It is based on the XML schema for the atom representation.

Returns
  • the unique identifier of the property.

public abstract boolean matches (MetadataKey<?> other)

Returns true if this key matches the given key.

Parameters
other

public String toString ()