com.google.gdata.model
Interface Metadata.VirtualValue

All Known Implementing Classes:
MetadataValueTransform
Enclosing interface:
Metadata<D>

public static interface Metadata.VirtualValue

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.


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

Method Detail

generate

java.lang.Object generate(Element element,
                          ElementMetadata<?,?> metadata)
Generate the value of either an attribute or text content based on the containing element and metadata.


parse

void parse(Element element,
           ElementMetadata<?,?> metadata,
           java.lang.Object value)
           throws ParseException
Parses the virtual value using the given metadata, storing it into the element or attribute as appropriate.

Throws:
ParseException - if parsing fails.