com.googlecode.jinahya.xml
Class ELElement

java.lang.Object
  extended by com.googlecode.jinahya.xml.ELNode
      extended by com.googlecode.jinahya.xml.ELElement

public class ELElement
extends ELNode

Element.

Author:
Jin Kwon

Constructor Summary
ELElement(String namesapceURI, String localName)
          Creates a new instance.
 
Method Summary
 Map getAttributes()
           
 List getElements()
           
 Set getNamespaceURIs()
          Returns all namespace URIs.
 Set getNamespaceURIs(Set namespaceURIs)
          Gets all namespace URIs.
 String getText()
           
 void setText(String text)
           
 String toJSON()
          Returns a JSON representation.
 
Methods inherited from class com.googlecode.jinahya.xml.ELNode
getLocalName, getNamespaceURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ELElement

public ELElement(String namesapceURI,
                 String localName)
Creates a new instance.

Parameters:
namesapceURI - namespace URI
localName - local name
Method Detail

getNamespaceURIs

public Set getNamespaceURIs()
Returns all namespace URIs.

Returns:
a set which contains all namespace URIs.

getNamespaceURIs

public Set getNamespaceURIs(Set namespaceURIs)
Gets all namespace URIs.

Parameters:
namespaceURIs - the set to which all namesapce URIs are added
Returns:
given namespaceURIs

toJSON

public String toJSON()
Description copied from class: ELNode
Returns a JSON representation.

Specified by:
toJSON in class ELNode
Returns:
a JSON string

getText

public String getText()

setText

public void setText(String text)

getAttributes

public Map getAttributes()

getElements

public List getElements()


Copyright © 2010-2011. All Rights Reserved.