@Beta public class GenericXml extends GenericData implements Cloneable
Beta
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.
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
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. |
| Constructor and Description |
|---|
GenericXml() |
| Modifier and Type | Method and Description |
|---|---|
GenericXml |
clone() |
GenericXml |
set(String fieldName,
Object value) |
String |
toString() |
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String name
"atom:entry" -- or null if not set.public XmlNamespaceDictionary namespaceDictionary
null if not set.public GenericXml clone()
clone in class GenericDatapublic String toString()
toString in class AbstractMap<String,Object>public GenericXml set(String fieldName, Object value)
set in class GenericDataCopyright © 2011-2015 Google. All Rights Reserved.