Devsphere.com


com.devsphere.xml.taglib.process.event
Class StartElement

java.lang.Object
  |
  +--com.devsphere.xml.taglib.process.event.EventSupport
        |
        +--com.devsphere.xml.taglib.process.event.StartElement

public class StartElement
extends EventSupport

This class wraps the parameters of the startElement() SAX event.


Constructor Summary
StartElement(int indentLevel, java.lang.String namespaceURI, java.lang.String localName, java.lang.String qualifiedName, org.xml.sax.Attributes attributes)
          Initializes the event.
 
Method Summary
 java.util.Map getAttr()
          Returns the element's attributes
 java.lang.String getName()
          Returns the element's local name
 java.lang.String getQname()
          Returns the element's qualified name
 java.lang.String getUri()
          Returns the element's namespace URI
 boolean getWantDOM()
          Returns the wantDOM flag used by the SAXDOMIX controller.
 void setWantDOM(boolean wantDOM)
          Sets the wantDOM flag used by the SAXDOMIX controller.
 java.lang.String toString()
          Returns a text containing the values of some of the properties of this event, including its type.
 
Methods inherited from class com.devsphere.xml.taglib.process.event.EventSupport
getIndentLevel, isConsumed, setConsumed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StartElement

public StartElement(int indentLevel,
                    java.lang.String namespaceURI,
                    java.lang.String localName,
                    java.lang.String qualifiedName,
                    org.xml.sax.Attributes attributes)
Initializes the event.

Parameters:
indentLevel - the indent level of the element
namespaceURI - the element's namespace URI
localName - the element's local name
qualifiedName - the element's qualified name
attributes - the element's attributes
Method Detail

getUri

public java.lang.String getUri()
Returns the element's namespace URI

Returns:
the element's namespace URI

getName

public java.lang.String getName()
Returns the element's local name

Returns:
the element's local name

getQname

public java.lang.String getQname()
Returns the element's qualified name

Returns:
the element's qualified name

getAttr

public java.util.Map getAttr()
Returns the element's attributes

Returns:
the element's attributes

getWantDOM

public boolean getWantDOM()
Returns the wantDOM flag used by the SAXDOMIX controller.

Returns:
the flag that indicates whether the parsing should continue in SAX mode or a DOM sub-tree should be built by SAXDOMIX.

setWantDOM

public void setWantDOM(boolean wantDOM)
Sets the wantDOM flag used by the SAXDOMIX controller.

Parameters:
wantDOM - the flag that indicates whether the parsing should continue in SAX mode or a DOM sub-tree should be built by SAXDOMIX.

toString

public java.lang.String toString()
Returns a text containing the values of some of the properties of this event, including its type. It is primarily intended for debugging.

Overrides:
toString in class EventSupport
Returns:
a string representation of this event

 Devsphere.com