net.sf.swan.xml.output
Class  ElementResult
java.lang.Object
  |
  +--net.sf.swan.xml.output.Result
        |
        +--net.sf.swan.xml.output.ContainerResult
              |
              +--net.sf.swan.xml.output.ElementResult
- public class ElementResult
- extends ContainerResult
  
 
 
 
| 
Constructor Summary | 
protected  | 
ElementResult(ContainerResult parent,
              java.lang.String namespaceUri,
              java.lang.String localName,
              java.lang.String qName,
              org.xml.sax.Attributes atts)
 
            | 
 
| 
Method Summary | 
protected  AttributesResult | 
addAttribute(java.lang.String namespaceUri,
             java.lang.String localName,
             java.lang.String qName,
             java.lang.String value)
 
            | 
 AttributesResult | 
attribute(java.lang.String qName,
          java.lang.String value)
 
          Create an attribute for this element. | 
 AttributesResult | 
attribute(java.lang.String namespaceUri,
          java.lang.String localName,
          java.lang.String value)
 
          Create an attribute for this element. | 
protected  void | 
createQName()
 
            | 
protected  void | 
createQName(org.xml.sax.helpers.AttributesImpl atts,
            int index)
 
            | 
protected  void | 
emitStartTag(org.xml.sax.ContentHandler handler,
             boolean emitNamespaceAttrs)
 
            | 
protected  org.xml.sax.Attributes | 
getAttributes()
 
            | 
protected  void | 
getLocationString(java.lang.StringBuffer buffer)
 
            | 
protected  java.lang.String | 
getPrefix(java.lang.String qName)
 
            | 
protected  void | 
output(org.xml.sax.ContentHandler handler,
       org.xml.sax.ext.LexicalHandler lexicalHandler,
       boolean emitNamespaceAttrs)
 
            | 
protected  void | 
resolveQName()
 
            | 
protected  void | 
resolveQName(org.xml.sax.helpers.AttributesImpl atts,
             int index)
 
            | 
protected  void | 
startOutput(org.xml.sax.ContentHandler handler,
            org.xml.sax.ext.LexicalHandler lexicalHandler,
            boolean emitNamespaceAttrs)
 
            | 
 AttributesResult | 
xmlns(java.lang.String prefix,
      java.lang.String namespaceUri)
 
          Create a namespace declaration in the current context. | 
 
| Methods inherited from class net.sf.swan.xml.output.ContainerResult | 
cdata, comment, element, element, element, element, element, flush, getLocationString, getNamespacePrefix, namespace, output, outputChildren, processingInstruction, resolveNamespacePrefix, startOutput, text, verifyAllowChild | 
 
| Methods inherited from class net.sf.swan.xml.output.Result | 
end | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ElementResult
protected ElementResult(ContainerResult parent,
                        java.lang.String namespaceUri,
                        java.lang.String localName,
                        java.lang.String qName,
                        org.xml.sax.Attributes atts)
attribute
public AttributesResult attribute(java.lang.String qName,
                                  java.lang.String value)
                           throws org.xml.sax.SAXException
- Create an attribute for this element. The result returned
 represents the set of attributes and namespace declarations on this
 element and may be used to create additional ones.
- Parameters:
 qName - the qualified name of the new attributevalue - the value of the new attribute- Returns:
 - a result representing this element's attributes
 		and namespace declarations
 
 
 
attribute
public AttributesResult attribute(java.lang.String namespaceUri,
                                  java.lang.String localName,
                                  java.lang.String value)
                           throws org.xml.sax.SAXException
- Create an attribute for this element. The result returned
 represents the set of attributes and namespace declarations on this
 element and may be used to create additional ones.
- Parameters:
 namespaceUri - the namespace URI of the new attributelocalName - the local name of the new attributevalue - the value of the new attribute- Returns:
 - a result representing this element's attributes
 		and namespace declarations
 
 
 
xmlns
public AttributesResult xmlns(java.lang.String prefix,
                              java.lang.String namespaceUri)
                       throws ResultException
- Create a namespace declaration in the current context. If this
 element's parent has not yet emitted it's start tag, then
 this might push the namespace declaration further up
 the result tree.
- Parameters:
 prefix - the namespace prefixnamespaceUri - the namespace URI- Returns:
 - a result representing this element's attributes
 		and namespace declarations
 
 
 
addAttribute
protected AttributesResult addAttribute(java.lang.String namespaceUri,
                                        java.lang.String localName,
                                        java.lang.String qName,
                                        java.lang.String value)
output
protected void output(org.xml.sax.ContentHandler handler,
                      org.xml.sax.ext.LexicalHandler lexicalHandler,
                      boolean emitNamespaceAttrs)
               throws java.io.IOException,
                      org.xml.sax.SAXException
- Overrides:
 output in class ContainerResult
 
startOutput
protected void startOutput(org.xml.sax.ContentHandler handler,
                           org.xml.sax.ext.LexicalHandler lexicalHandler,
                           boolean emitNamespaceAttrs)
                    throws java.io.IOException,
                           org.xml.sax.SAXException
- Overrides:
 startOutput in class ContainerResult
 
emitStartTag
protected void emitStartTag(org.xml.sax.ContentHandler handler,
                            boolean emitNamespaceAttrs)
                     throws java.io.IOException,
                            org.xml.sax.SAXException
resolveQName
protected void resolveQName()
                     throws ResultException
resolveQName
protected void resolveQName(org.xml.sax.helpers.AttributesImpl atts,
                            int index)
                     throws ResultException
createQName
protected void createQName()
                    throws ResultException
createQName
protected void createQName(org.xml.sax.helpers.AttributesImpl atts,
                           int index)
                    throws ResultException
getPrefix
protected java.lang.String getPrefix(java.lang.String qName)
getAttributes
protected org.xml.sax.Attributes getAttributes()
                                        throws org.xml.sax.SAXException
getLocationString
protected void getLocationString(java.lang.StringBuffer buffer)
- Overrides:
 getLocationString in class ContainerResult