| java.lang.Object |
| ↳ |
com.google.gdata.model.MetadataValueTransform |
Class Overview
This class represents a transformation of a value based on a list of keys
to use as the value for the element. During generation this will check each
of the source keys for a value, using the first value found. During parsing
it will place the incoming value into the first key in the list.
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.google.gdata.model.Metadata.VirtualValue
|
Fields
Public Constructors
public
MetadataValueTransform
(MetadataKey...<?> inputSources)
Constructs a simple value transform using the given sources.
Parameters
| inputSources
| The source keys to pull the values from.
|
Public Methods
public
Object
generate
(Element element, ElementMetadata<?, ?> metadata)
Runs this transformation on the given element.
Parameters
| element
| The element to transform. |
| metadata
| The metadata of the element being transformed. |
Returns
- the String representation of the property value.
public
void
parse
(Element element, ElementMetadata<?, ?> metadata, Object value)
For parsing, we always parse directly into the first source.