|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.comm.language.XMLEncoder
Field Summary | |
static java.lang.String |
LANGUAGE
Language used to encode |
Constructor Summary | |
XMLEncoder()
Constructor for XMLEncoder |
Method Summary | |
void |
addElement(DataObject elt)
Method to add XML element |
java.lang.String |
beginTag(java.lang.String tag)
Method to start XML element - creates opening tag |
java.lang.String |
beginTag(java.lang.String tag,
java.lang.String attributes)
Method to start XML element - creates opening tag and sets attributes |
java.lang.String |
encodeData(DataObject data)
Method used to encode data |
java.lang.String |
endTag(java.lang.String tag)
Method to end XML element - creates closing tag |
java.lang.String |
getClassName()
Returns name of class used to encode XML |
java.lang.String |
getLanguage()
Returns language used to encode XML |
java.lang.String |
getXML()
Returns XML encoding as a string |
java.lang.String |
singleTag(java.lang.String tag)
Method to add single XML tag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LANGUAGE
Constructor Detail |
public XMLEncoder()
Method Detail |
public java.lang.String encodeData(DataObject data) throws EncodeException
encodeData
in interface EncoderInterface
data
- Data to be encoded
EncodeException
- if the data can't be encodedaddElement(context.arch.comm.DataObject)
,
getXML()
public java.lang.String beginTag(java.lang.String tag)
tag
- XML element being startedpublic java.lang.String beginTag(java.lang.String tag, java.lang.String attributes)
tag
- XML element being startedattributes
- attributes for XML elementpublic java.lang.String singleTag(java.lang.String tag)
tag
- single XML elementpublic java.lang.String endTag(java.lang.String tag)
tag
- XML element being closedpublic void addElement(DataObject elt) throws EncodeException
elt
- DataObject element being added
EncodeException
- if the element can't be addedpublic java.lang.String getXML()
public java.lang.String getLanguage()
getLanguage
in interface EncoderInterface
LANGUAGE
public java.lang.String getClassName()
getClassName
in interface EncoderInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |