Package com.google.api.client.xml
Class Xml.CustomizeParser
- java.lang.Object
-
- com.google.api.client.xml.Xml.CustomizeParser
-
- Direct Known Subclasses:
Atom.StopAtAtomEntry
- Enclosing class:
- Xml
public static class Xml.CustomizeParser extends java.lang.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
Constructors Constructor Description CustomizeParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
stopAfterEndTag(java.lang.String namespace, java.lang.String localName)
Returns whether to stop parsing when reaching the end tag of an XML element after it has been processed.boolean
stopBeforeStartTag(java.lang.String namespace, java.lang.String localName)
Returns whether to stop parsing when reaching the start tag of an XML element before it has been processed.
-
-
-
Method Detail
-
stopBeforeStartTag
public boolean stopBeforeStartTag(java.lang.String namespace, java.lang.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, returnsfalse
, but subclasses may override.- Parameters:
namespace
- XML element's namespace URIlocalName
- XML element's local name
-
stopAfterEndTag
public boolean stopAfterEndTag(java.lang.String namespace, java.lang.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, returnsfalse
, but subclasses may override.- Parameters:
namespace
- XML element's namespace URIlocalName
- XML element's local name
-
-