public static interface

Metadata.VirtualValue

com.google.gdata.model.Metadata.VirtualValue
Known Indirect Subclasses

Class Overview

Defines a virtual value. A virtual value exists only as metadata, and handles both parsing and generation between the DOM and the content of the property.

Summary

Public Methods
abstract Object generate(Element element, ElementMetadata<?, ?> metadata)
Generate the value of either an attribute or text content based on the containing element and metadata.
abstract void parse(Element element, ElementMetadata<?, ?> metadata, Object value)
Parses the virtual value using the given metadata, storing it into the element or attribute as appropriate.

Public Methods

public abstract Object generate (Element element, ElementMetadata<?, ?> metadata)

Generate the value of either an attribute or text content based on the containing element and metadata.

Parameters
element
metadata

public abstract void parse (Element element, ElementMetadata<?, ?> metadata, Object value)

Parses the virtual value using the given metadata, storing it into the element or attribute as appropriate.

Parameters
element
metadata
value
Throws
ParseException if parsing fails.