com.google.api.client.xml
Class GenericXml

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.xml.GenericXml
All Implemented Interfaces:
Cloneable, Map<String,Object>

public class GenericXml
extends GenericData
implements Cloneable

Generic XML data that stores all unknown key name/value pairs.

Each data key name maps into the name of the XPath expression value for the XML element, attribute, or text content (using "text()"). Subclasses can declare fields for known XML content using the Key annotation. Each field can be of any visibility (private, package private, protected, or public) and must not be static. null unknown data key names are not allowed, but null data values are allowed.

Implementation is not thread-safe. For a thread-safe choice instead use an implementation of ConcurrentMap.

Since:
1.0
Author:
Yaniv Inbar

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 String name
          Optional XML element local name prefixed by its namespace alias -- for example "atom:entry" -- or null if not set.
 XmlNamespaceDictionary namespaceDictionary
          Optional namespace dictionary or null if not set.
 
Fields inherited from class com.google.api.client.util.GenericData
unknownFields
 
Constructor Summary
GenericXml()
           
 
Method Summary
 GenericXml clone()
          Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.
 String toString()
           
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public String name
Optional XML element local name prefixed by its namespace alias -- for example "atom:entry" -- or null if not set.


namespaceDictionary

public XmlNamespaceDictionary namespaceDictionary
Optional namespace dictionary or null if not set.

Constructor Detail

GenericXml

public GenericXml()
Method Detail

clone

public GenericXml clone()
Description copied from class: GenericData
Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.

Overrides:
clone in class GenericData

toString

public String toString()
Overrides:
toString in class AbstractMap<String,Object>


Copyright © 2011 Google. All Rights Reserved.