edu.mit.jverbnet.util.parse
Class TaggedBlockTaskHandlerAdapter

java.lang.Object
  extended by edu.mit.jverbnet.util.parse.TaggedBlockTaskHandlerAdapter
All Implemented Interfaces:
ITaggedBlockTaskHandler

public class TaggedBlockTaskHandlerAdapter
extends java.lang.Object
implements ITaggedBlockTaskHandler

A default implementation of the ITaggedBlockTaskHandler interface, that does nothing.

Since:
JVerbnet 1.0.0
Version:
1.2.0
Author:
Mark A. Finlayson

Constructor Summary
protected TaggedBlockTaskHandlerAdapter()
          The constructor is marked protected so that this class may be subclassed, but not directly instantiated.
 
Method Summary
 void endTaggedBlock(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          This method is used to run when exiting a tagged block.
static TaggedBlockTaskHandlerAdapter getInstance()
          Returns the singleton instance of this object, creating it if necessary.
 void startTaggedBlock(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)
          This method is used to run code when entering a tagged block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaggedBlockTaskHandlerAdapter

protected TaggedBlockTaskHandlerAdapter()
The constructor is marked protected so that this class may be subclassed, but not directly instantiated.

Since:
JVerbnet 1.0.0
Method Detail

getInstance

public static TaggedBlockTaskHandlerAdapter getInstance()
Returns the singleton instance of this object, creating it if necessary.

Returns:
the singleton instance
Since:
JVerbnet 1.0.0

startTaggedBlock

public void startTaggedBlock(java.lang.String uri,
                             java.lang.String localName,
                             java.lang.String qName,
                             org.xml.sax.Attributes attrs)
                      throws org.xml.sax.SAXException
Description copied from interface: ITaggedBlockTaskHandler
This method is used to run code when entering a tagged block.

Specified by:
startTaggedBlock in interface ITaggedBlockTaskHandler
Parameters:
uri - the Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed
localName - the local name (without prefix), or the empty string if Namespace processing is not being performed
qName - the qualified name (with prefix), or the empty string if qualified names are not available
attrs - the attributes attached to the element. If there are no attributes, it shall be an empty Attributes object. The value of this object after startElement returns is undefined
Throws:
org.xml.sax.SAXException - any SAX exception, possibly wrapping another exception

endTaggedBlock

public void endTaggedBlock(java.lang.String uri,
                           java.lang.String localName,
                           java.lang.String qName)
                    throws org.xml.sax.SAXException
Description copied from interface: ITaggedBlockTaskHandler
This method is used to run when exiting a tagged block.

Specified by:
endTaggedBlock in interface ITaggedBlockTaskHandler
Parameters:
uri - the Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed
localName - the local name (without prefix), or the empty string if Namespace processing is not being performed
qName - the qualified XML name (with prefix), or the empty string if qualified names are not available
Throws:
org.xml.sax.SAXException - any SAX exception, possibly wrapping another exception


Copyright © 2012 ${project.organization.name}. All Rights Reserved.