| java.lang.Object | ||
| ↳ | com.google.gdata.model.MetadataKey<D> | |
| ↳ | com.google.gdata.model.ElementKey<D, E extends com.google.gdata.model.Element> | |
A key referring to a particular element. Holds the ID of the element and the expected datatype and element type. Element keys support value-based equality, natural ordering, and matching.
equals(Object) to another element key if their
IDs are equivalent or both null, and their datatypes, and element
types are the same.matches(MetadataKey) another element key if the
ID is a match for the ID of the other key, and the datatype and element type
are both assignable from the other key's datatype and element type.| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| elementType | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.MetadataKey
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Compares first on ID, then on element type, then on datatype.
| |||||||||||
Returns the element type of the element.
| |||||||||||
Returns
true if this key is a match for the given key. | |||||||||||
Construct an element key with the given id, datatype, and element type.
| |||||||||||
Construct an element key with the given id and element type, but with
a Void datatype.
| |||||||||||
Return a default element key using a string datatype and
Element as the element type. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.MetadataKey
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
| |||||||||||
Compares first on ID, then on element type, then on datatype.
| other |
|---|
| obj |
|---|
Returns the element type of the element.
Returns true if this key is a match for the given key. This key is
a match for the other key if the other key is also an element key and if
the ID, datatype, and element types all match.
| other |
|---|
Construct an element key with the given id, datatype, and element type. This is used for elements that contain text content.
The elementType must not be null. A null id is only
valid for element types that are a subclass of Element, and are
used as a key referring to all instances of that element type.
| id | |
|---|---|
| datatype | |
| elementType |
Construct an element key with the given id and element type, but with a Void datatype. This is used for elements without text content.
The elementType must not be null. A null id is only
valid for element types that are a subclass of Element, and are
used as a key referring to all instances of that element type.
| id | |
|---|---|
| elementType |
Return a default element key using a string datatype and
Element as the element type. The id must not be null.
| id |
|---|