de.hedenus.mobilexml
Class XMLReader.Scope

java.lang.Object
  extended by de.hedenus.mobilexml.XMLReader.Scope
Enclosing class:
XMLReader

public static class XMLReader.Scope
extends java.lang.Object

The scope of an XML element.

Author:
Michael Hedenus

Field Summary
static int CONTENT_ELEMENTS
          The element contains only elements (or only whitespace if 'ignoreEmptyText' is set to true).
static int CONTENT_EMPTY
          The element is empty.
static int CONTENT_MIXED
          The element contains 'mixed content' i.e. text and child elements.
static int CONTENT_TEXT
          The element contains only text and no child elements.
static java.lang.String SPACE_DEFAULT
          "default".
static java.lang.String SPACE_PRESERVE
          "preserve".
 
Constructor Summary
protected XMLReader.Scope(XMLReader.Scope parent)
           
 
Method Summary
 Attribute[] getAttributes()
           
 java.lang.String getBase()
           
 int getContent()
          The content of the element.
 java.lang.String getDefaultNamespace()
           
 int getDepth()
           
 Element getElement()
           
 java.lang.String getId()
           
 java.lang.String getLang()
           
 java.lang.String getNamespace(java.lang.String prefix)
           
 java.util.HashMap getNamespaceMap()
           
 XMLReader.Scope getParent()
           
 java.lang.String getSpace()
           
protected  void reset()
           
 java.lang.String resolveURI(java.lang.String relURI)
          Resolves an URI against the current base.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SPACE_PRESERVE

public static final java.lang.String SPACE_PRESERVE
"preserve".

See Also:
Constant Field Values

SPACE_DEFAULT

public static final java.lang.String SPACE_DEFAULT
"default".

See Also:
Constant Field Values

CONTENT_EMPTY

public static final int CONTENT_EMPTY
The element is empty.

See Also:
Constant Field Values

CONTENT_ELEMENTS

public static final int CONTENT_ELEMENTS
The element contains only elements (or only whitespace if 'ignoreEmptyText' is set to true).

See Also:
Constant Field Values

CONTENT_TEXT

public static final int CONTENT_TEXT
The element contains only text and no child elements.

See Also:
Constant Field Values

CONTENT_MIXED

public static final int CONTENT_MIXED
The element contains 'mixed content' i.e. text and child elements.

See Also:
Constant Field Values
Constructor Detail

XMLReader.Scope

protected XMLReader.Scope(XMLReader.Scope parent)
Method Detail

reset

protected void reset()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getParent

public XMLReader.Scope getParent()

getDepth

public int getDepth()

getElement

public Element getElement()

getAttributes

public Attribute[] getAttributes()

resolveURI

public java.lang.String resolveURI(java.lang.String relURI)
Resolves an URI against the current base.

Parameters:
relURI -
Returns:
the resolved URI

getBase

public java.lang.String getBase()

getLang

public java.lang.String getLang()

getSpace

public java.lang.String getSpace()

getId

public java.lang.String getId()

getDefaultNamespace

public java.lang.String getDefaultNamespace()

getNamespaceMap

public java.util.HashMap getNamespaceMap()

getNamespace

public java.lang.String getNamespace(java.lang.String prefix)

getContent

public int getContent()
The content of the element. This property is only available at elementEnd().