com.notuvy.xml
Class SimpleJdom

java.lang.Object
  extended by com.notuvy.xml.SimpleJdom
Direct Known Subclasses:
CachedWebProxy, PersistentJdom, PodcastBase

public abstract class SimpleJdom
extends Object

A bean that has an XML representation. User: murali Date: Jan 29, 2008 Time: 6:17:08 AM


Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
protected SimpleJdom()
           
protected SimpleJdom(String pContent)
           
 
Method Summary
static org.jdom.Element addChildElement(org.jdom.Element pParent, String pTagName)
           
protected  org.jdom.output.Format createFormat()
           
 org.jdom.Element createRoot()
           
static Integer getChildInteger(org.jdom.Element pParent, String pChildTag)
           
static Long getChildLong(org.jdom.Element pParent, String pChildTag)
           
static List<org.jdom.Element> getChildren(org.jdom.Element pParent, String pChildTag)
           
static List<org.jdom.Element> getChildrenOfContainer(org.jdom.Element pParent, String pChildTag, String pContainerTag)
           
static String getChildText(org.jdom.Element pParent, String pChildTag)
           
protected  org.jdom.output.Format getFormat()
           
 XmlStorable getStorage()
           
protected  boolean isValidRoot(org.jdom.Element pRoot)
           
protected abstract  void parse(org.jdom.Element pRoot)
           
 XmlIOStatus<Void> readFrom(InputStream pInputStream)
           
 XmlIOStatus<Void> readFrom(Reader pReader)
           
 XmlIOStatus<Void> readFromContent(String pString)
           
protected  void reportXmlParseError(org.jdom.JDOMException jdome)
           
 String rootName()
           
 XmlIOStatus<Void> saveTo(Writer pWriter)
           
 void setStorage(XmlStorable pStorage)
           
 org.jdom.Document toDocument()
           
 String toString()
           
abstract  org.jdom.Element toXml()
          Return this object as a sub-element to be inserted within another object.
 String toXmlString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG
Constructor Detail

SimpleJdom

protected SimpleJdom()

SimpleJdom

protected SimpleJdom(String pContent)
Method Detail

addChildElement

public static org.jdom.Element addChildElement(org.jdom.Element pParent,
                                               String pTagName)

getChildren

public static List<org.jdom.Element> getChildren(org.jdom.Element pParent,
                                                 String pChildTag)

getChildrenOfContainer

public static List<org.jdom.Element> getChildrenOfContainer(org.jdom.Element pParent,
                                                            String pChildTag,
                                                            String pContainerTag)

getChildText

public static String getChildText(org.jdom.Element pParent,
                                  String pChildTag)

getChildLong

public static Long getChildLong(org.jdom.Element pParent,
                                String pChildTag)

getChildInteger

public static Integer getChildInteger(org.jdom.Element pParent,
                                      String pChildTag)

getFormat

protected org.jdom.output.Format getFormat()

getStorage

public XmlStorable getStorage()

setStorage

public void setStorage(XmlStorable pStorage)

isValidRoot

protected boolean isValidRoot(org.jdom.Element pRoot)

saveTo

public XmlIOStatus<Void> saveTo(Writer pWriter)

readFrom

public XmlIOStatus<Void> readFrom(InputStream pInputStream)

readFrom

public XmlIOStatus<Void> readFrom(Reader pReader)

readFromContent

public XmlIOStatus<Void> readFromContent(String pString)

toXmlString

public String toXmlString()

createRoot

public org.jdom.Element createRoot()

toDocument

public org.jdom.Document toDocument()

toXml

public abstract org.jdom.Element toXml()
Return this object as a sub-element to be inserted within another object. This does NOT return a Document representation.

Returns:
Element representation suitable for insertion into another object.

parse

protected abstract void parse(org.jdom.Element pRoot)

rootName

public String rootName()

createFormat

protected org.jdom.output.Format createFormat()

toString

public String toString()
Overrides:
toString in class Object

reportXmlParseError

protected void reportXmlParseError(org.jdom.JDOMException jdome)


Copyright © 2013. All Rights Reserved.