org.apache.myfaces.trinidadinternal.image.xml.parse
Class TextParser

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.share.xml.BaseNodeParser
      extended by org.apache.myfaces.trinidadinternal.image.xml.parse.TextParser
All Implemented Interfaces:
NodeParser

public class TextParser
extends BaseNodeParser

NodeParser for text and translatedText elements

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/image/xml/parse/TextParser.java#0 $) $Date: 10-nov-2005.19:04:43 $
Author:
The Oracle ADF Faces Team

Constructor Summary
TextParser()
           
 
Method Summary
 void addText(ParseContext context, char[] text, int start, int length)
          Implementation of NodeParser.addText().
 void addWhitespace(ParseContext context, char[] text, int start, int length)
          Implemenation of NodeParser.addWhitespace().
 java.lang.Object endElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName)
          Implementation of NodeParser.endElement()
 NodeParser startChildElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
          Implementation of NodeParser.startChildElement()
 void startElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
          Implementation of NodeParser.startElement()
 
Methods inherited from class org.apache.myfaces.trinidadinternal.share.xml.BaseNodeParser
addCompletedChild, endChildElement, getIgnoreParser, getRequiredAttribute, logError, logUnexpectedAttribute, logUnexpectedElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextParser

public TextParser()
Method Detail

startElement

public void startElement(ParseContext context,
                         java.lang.String namespaceURI,
                         java.lang.String localName,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXParseException
Implementation of NodeParser.startElement()

Specified by:
startElement in interface NodeParser
Overrides:
startElement in class BaseNodeParser
Parameters:
context - the parsing context
namespaceURI - the namespace of the element
localName - the local name of the element
attrs - the attributes attached to the element
Throws:
org.xml.sax.SAXParseException

endElement

public java.lang.Object endElement(ParseContext context,
                                   java.lang.String namespaceURI,
                                   java.lang.String localName)
Implementation of NodeParser.endElement()

Specified by:
endElement in interface NodeParser
Overrides:
endElement in class BaseNodeParser
Parameters:
context - the parsing context
namespaceURI - the namespace of the element
localName - the local name of the element
Returns:
the fully-initialized Java object corresponding to this release

startChildElement

public NodeParser startChildElement(ParseContext context,
                                    java.lang.String namespaceURI,
                                    java.lang.String localName,
                                    org.xml.sax.Attributes attrs)
Implementation of NodeParser.startChildElement()

Specified by:
startChildElement in interface NodeParser
Overrides:
startChildElement in class BaseNodeParser
Parameters:
context - the parsing context
namespaceURI - the namespace of the child element
localName - the local name of the child element
attrs - the attributes attached to the element
Returns:
the node parser that should be used for this child element, or null if processing should continue with this NodeParser
See Also:
NodeParser.endChildElement(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String), NodeParser.addCompletedChild(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String, java.lang.Object)

addText

public void addText(ParseContext context,
                    char[] text,
                    int start,
                    int length)
             throws org.xml.sax.SAXParseException
Implementation of NodeParser.addText().

Specified by:
addText in interface NodeParser
Overrides:
addText in class BaseNodeParser
Parameters:
context - the parsing context
text - an array of characters
start - the start position in the array
length - the number of characters to read from the array
Throws:
org.xml.sax.SAXParseException

addWhitespace

public void addWhitespace(ParseContext context,
                          char[] text,
                          int start,
                          int length)
                   throws org.xml.sax.SAXParseException
Implemenation of NodeParser.addWhitespace().

Specified by:
addWhitespace in interface NodeParser
Overrides:
addWhitespace in class BaseNodeParser
Parameters:
context - the parsing context
text - an array of characters
start - the start position in the array
length - the number of characters to read from the array
Throws:
org.xml.sax.SAXParseException


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.