org.apache.myfaces.trinidadinternal.agent.parse
Class CapabilityDataDocumentParser

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

public class CapabilityDataDocumentParser
extends BaseNodeParser

CapabilitiesData document parser


Field Summary
static java.lang.String ATTRIBUTE_AGENTS
           
static java.lang.String ATTRIBUTE_DEFAULT
           
static java.lang.String ATTRIBUTE_EXTENDS
           
static java.lang.String ATTRIBUTE_ID
           
static java.lang.String ATTRIBUTE_MODEL
           
static java.lang.String ATTRIBUTE_NAME
           
static java.lang.String ATTRIBUTE_PLATFORMS
           
static java.lang.String ATTRIBUTE_REFID
           
static java.lang.String ATTRIBUTE_SRC
           
static java.lang.String ATTRIBUTE_TYPE
           
static java.lang.String ATTRIBUTE_VALUE
           
static java.lang.String ELEMENT_AGENT_CAPABILITIES
           
static java.lang.String ELEMENT_CAPABILITIES
           
static java.lang.String ELEMENT_CAPABILITY
           
static java.lang.String ELEMENT_CAPABILITY_DATA
           
static java.lang.String ELEMENT_COMPONENT
           
static java.lang.String ELEMENT_DEVICE
           
static java.lang.String ELEMENT_DEVICES
           
static java.lang.String ELEMENT_INCLUDE
           
static java.lang.String ELEMENT_ROOT
           
static java.lang.String NS_URI
           
 
Method Summary
 java.lang.Object endElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName)
          Receives notification of the end of the element.
static java.lang.Object[] parse(java.net.URL srcUrl)
           
 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
addCompletedChild, 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
 

Field Detail

NS_URI

public static final java.lang.String NS_URI
See Also:
Constant Field Values

ELEMENT_ROOT

public static final java.lang.String ELEMENT_ROOT
See Also:
Constant Field Values

ELEMENT_AGENT_CAPABILITIES

public static final java.lang.String ELEMENT_AGENT_CAPABILITIES
See Also:
Constant Field Values

ELEMENT_CAPABILITIES

public static final java.lang.String ELEMENT_CAPABILITIES
See Also:
Constant Field Values

ELEMENT_INCLUDE

public static final java.lang.String ELEMENT_INCLUDE
See Also:
Constant Field Values

ELEMENT_DEVICES

public static final java.lang.String ELEMENT_DEVICES
See Also:
Constant Field Values

ELEMENT_DEVICE

public static final java.lang.String ELEMENT_DEVICE
See Also:
Constant Field Values

ELEMENT_COMPONENT

public static final java.lang.String ELEMENT_COMPONENT
See Also:
Constant Field Values

ATTRIBUTE_ID

public static final java.lang.String ATTRIBUTE_ID
See Also:
Constant Field Values

ATTRIBUTE_REFID

public static final java.lang.String ATTRIBUTE_REFID
See Also:
Constant Field Values

ATTRIBUTE_SRC

public static final java.lang.String ATTRIBUTE_SRC
See Also:
Constant Field Values

ATTRIBUTE_AGENTS

public static final java.lang.String ATTRIBUTE_AGENTS
See Also:
Constant Field Values

ATTRIBUTE_PLATFORMS

public static final java.lang.String ATTRIBUTE_PLATFORMS
See Also:
Constant Field Values

ATTRIBUTE_DEFAULT

public static final java.lang.String ATTRIBUTE_DEFAULT
See Also:
Constant Field Values

ATTRIBUTE_MODEL

public static final java.lang.String ATTRIBUTE_MODEL
See Also:
Constant Field Values

ATTRIBUTE_EXTENDS

public static final java.lang.String ATTRIBUTE_EXTENDS
See Also:
Constant Field Values

ATTRIBUTE_TYPE

public static final java.lang.String ATTRIBUTE_TYPE
See Also:
Constant Field Values

ELEMENT_CAPABILITY_DATA

public static final java.lang.String ELEMENT_CAPABILITY_DATA
See Also:
Constant Field Values

ELEMENT_CAPABILITY

public static final java.lang.String ELEMENT_CAPABILITY
See Also:
Constant Field Values

ATTRIBUTE_NAME

public static final java.lang.String ATTRIBUTE_NAME
See Also:
Constant Field Values

ATTRIBUTE_VALUE

public static final java.lang.String ATTRIBUTE_VALUE
See Also:
Constant Field Values
Method Detail

parse

public static java.lang.Object[] parse(java.net.URL srcUrl)

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)

endElement

public java.lang.Object endElement(ParseContext context,
                                   java.lang.String namespaceURI,
                                   java.lang.String localName)
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


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