com.google.api.client.xml
Class Xml.CustomizeParser

java.lang.Object
  extended by com.google.api.client.xml.Xml.CustomizeParser
Enclosing class:
Xml

public static class Xml.CustomizeParser
extends Object

Customizes the behavior of XML parsing. Subclasses may override any methods they need to customize behavior.

Implementation has no fields and therefore thread-safe, but sub-classes are not necessarily thread-safe.


Constructor Summary
Xml.CustomizeParser()
           
 
Method Summary
 boolean stopAfterEndTag(String namespace, String localName)
          Returns whether to stop parsing when reaching the end tag of an XML element after it has been processed.
 boolean stopBeforeStartTag(String namespace, String localName)
          Returns whether to stop parsing when reaching the start tag of an XML element before it has been processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xml.CustomizeParser

public Xml.CustomizeParser()
Method Detail

stopBeforeStartTag

public boolean stopBeforeStartTag(String namespace,
                                  String localName)
Returns whether to stop parsing when reaching the start tag of an XML element before it has been processed. Only called if the element is actually being processed. By default, returns false, but subclasses may override.

Parameters:
namespace - XML element's namespace URI
localName - XML element's local name

stopAfterEndTag

public boolean stopAfterEndTag(String namespace,
                               String localName)
Returns whether to stop parsing when reaching the end tag of an XML element after it has been processed. Only called if the element is actually being processed. By default, returns false, but subclasses may override.

Parameters:
namespace - XML element's namespace URI
localName - XML element's local name


Copyright © 2011 Google. All Rights Reserved.