com.notuvy.xml
Class SimpleJdom
java.lang.Object
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
|
LOG
protected static final org.apache.log4j.Logger LOG
SimpleJdom
protected SimpleJdom()
SimpleJdom
protected SimpleJdom(String pContent)
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.