com.notuvy.sgml
Class SgmlTag
java.lang.Object
com.notuvy.sgml.SgmlTag
- All Implemented Interfaces:
- Writable
- Direct Known Subclasses:
- SgmlTag.A, SgmlTag.Html, SgmlTag.Timestamp
public class SgmlTag
- extends Object
- implements Writable
A utility to build a single tag for an SGML document, or to recurively
build the entire document. Some HTML shortcuts are provided by the
inner classes.
User: murali
Date: Aug 12, 2008
Time: 2:31:20 PM
SgmlTag
public SgmlTag(String pTag)
addSubTree
public SgmlTag addSubTree(SgmlTag pTag)
addText
public SgmlTag addText(Object pObject)
attribute
public SgmlTag attribute(String pKey,
Object pVal)
parent
public SgmlTag parent(SgmlTag pParent)
newChild
public SgmlTag newChild(String pTag)
writeTo
public SgmlTag writeTo(StringBuilder pBuilder)
writeTo
public SgmlTag writeTo(Writer pWriter)
throws IOException
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
write
public void write(StringBuilder pBuilder)
- Specified by:
write
in interface Writable
write
public void write(Writer pWriter)
throws IOException
- Specified by:
write
in interface Writable
- Throws:
IOException
Copyright © 2013. All Rights Reserved.