|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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
data
- Data to 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 addedpublic java.lang.String getXML()
public java.lang.String getLanguage()
LANGUAGE
public java.lang.String getClassName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |