|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Element class is an abstraction of the notion of a problem statement 'element'.
An element is an entity that has the following properties:
| Method Summary | |
void |
customReadObject(com.topcoder.shared.netCommon.CSReader reader)
Custom serialization |
void |
customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
Custom serialization |
ElementRenderer |
getRenderer()
Gets the renderer for the element. |
void |
setRenderer(ElementRenderer renderer)
Sets the renderer for the element. |
java.lang.String |
toXML()
An Element must be cable of transforming the information it represents
into well-formed, valid XML (validated against the problem statement schema). |
| Method Detail |
public void customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
throws java.io.IOException
customWriteObject in interface com.topcoder.shared.netCommon.CustomSerializablewriter - the writer to write to.
java.io.IOException - if an I/O error has occurred in the stream that backs the writer.
public void customReadObject(com.topcoder.shared.netCommon.CSReader reader)
throws java.io.IOException,
java.io.ObjectStreamException
customReadObject in interface com.topcoder.shared.netCommon.CustomSerializablereader - the reader to read from.
java.io.ObjectStreamException - if the information that is read is inconsistent (stream corrupted
or incompatibility between writers and readers)
java.io.IOException - if an I/O error has occurred in the stream that backs the reader.public java.lang.String toXML()
Element must be cable of transforming the information it represents
into well-formed, valid XML (validated against the problem statement schema).
public void setRenderer(ElementRenderer renderer)
renderer - the element's renderer.ElementRendererpublic ElementRenderer getRenderer()
ElementRenderer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||