com.google.gdata.wireformats
Class GeneratorUtils

java.lang.Object
  extended by com.google.gdata.wireformats.GeneratorUtils

public class GeneratorUtils
extends java.lang.Object

Utility functions shared across generators.


Constructor Summary
GeneratorUtils()
           
 
Method Summary
static java.util.Map<java.lang.String,XmlNamespace> calculateNamespaces(Element root, ElementMetadata<?,?> metadata)
          Calculate the set of namespaces on an element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorUtils

public GeneratorUtils()
Method Detail

calculateNamespaces

public static java.util.Map<java.lang.String,XmlNamespace> calculateNamespaces(Element root,
                                                                               ElementMetadata<?,?> metadata)
Calculate the set of namespaces on an element. This will find all namespaces declared on the element or child elements, ordered in depth-first order.