org.apache.myfaces.trinidadinternal.ui.laf.xml.parse
Class RendererNodeParser

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.share.xml.BaseNodeParser
      extended by org.apache.myfaces.trinidadinternal.ui.laf.xml.parse.RendererNodeParser
All Implemented Interfaces:
NodeParser, XMLConstants

public class RendererNodeParser
extends BaseNodeParser
implements XMLConstants

NodeParser for elements

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/xml/parse/RendererNodeParser.java#0 $) $Date: 10-nov-2005.18:50:41 $
Author:
The Oracle ADF Faces Team

Field Summary
 
Fields inherited from interface org.apache.myfaces.trinidadinternal.ui.laf.xml.XMLConstants
CLASS_NAME, CONFIG_IMAGE_NAME, CONTEXT_IMAGE_NAME, EXTENDS_ATTR, FACETS_ATTR, FAMILY_ATTR, HEIGHT_ATTR, ICONS_NAME, ID_ATTR, INLINE_STYLE_NAME, INSTANCE_NAME, NAME_ATTR, NAMESPACE_ATTR, NULL_NAME, PROPERTIES_NAME, REFERENCE_NAME, RENDER_KIT_ID_ATTR, RENDERERS_NAME, RESOURCE_IMAGE_NAME, RTL_TEXT_ATTR, RTL_URI_ATTR, SKIN_NAMESPACE, STYLE_CLASS_ATTR, STYLE_SHEET_NAME_ATTR, TEMPLATE_NAME, TEXT_ATTR, TEXT_NAME, URI_ATTR, URI_IMAGE_NAME, WIDTH_ATTR
 
Constructor Summary
RendererNodeParser()
           
 
Method Summary
 void addCompletedChild(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, java.lang.Object child)
          Receives notification of the end of a delegated child element.
 java.lang.Object endElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName)
          Receives notification of the end of the element.
 NodeParser startChildElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
          Receives notification of the start of a child element.
 void startElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
          Receives notification of the start of an element.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.share.xml.BaseNodeParser
addText, addWhitespace, 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

RendererNodeParser

public RendererNodeParser()
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
Description copied from interface: NodeParser
Receives notification of the start of an element.

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

startChildElement

public NodeParser startChildElement(ParseContext context,
                                    java.lang.String namespaceURI,
                                    java.lang.String localName,
                                    org.xml.sax.Attributes attrs)
                             throws org.xml.sax.SAXParseException
Description copied from interface: NodeParser
Receives notification of the start of a child element. If this method returns "this", further processing of that child element will be continue with this same parser. If it returns "null", the element will be ignored, and a warning logged. Otherwise, handling will be delegated to the new parser, and the next call made to this interface will be addCompletedChild()

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
Throws:
org.xml.sax.SAXParseException
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)

addCompletedChild

public void addCompletedChild(ParseContext context,
                              java.lang.String namespaceURI,
                              java.lang.String localName,
                              java.lang.Object child)
                       throws org.xml.sax.SAXParseException
Description copied from interface: NodeParser
Receives notification of the end of a delegated child element. Called only if startChildElement returns a value other than "null" or "this".

Specified by:
addCompletedChild in interface NodeParser
Overrides:
addCompletedChild in class BaseNodeParser
Parameters:
context - the parsing context
namespaceURI - the namespace of the child element
localName - the local name of the child element
child - the Java object produced for that child by its NodeParser's endElement() method.
Throws:
org.xml.sax.SAXParseException
See Also:
NodeParser.endElement(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String)

endElement

public java.lang.Object endElement(ParseContext context,
                                   java.lang.String namespaceURI,
                                   java.lang.String localName)
                            throws org.xml.sax.SAXParseException
Description copied from interface: NodeParser
Receives notification of the end of the element.

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
Throws:
org.xml.sax.SAXParseException


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