|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.topcoder.shared.problem.BaseElement
|
+--com.topcoder.shared.problem.Constraint
|
+--com.topcoder.shared.problem.UserConstraint
A user constraint is where the problem writer writes arbitrary text to specify
a constraint. This class is basically just a container for some Element.
This class is not in use but reserved for future use.
Element,
Serialized Form| Constructor Summary | |
UserConstraint()
Empty constructor required by custom serialization. |
|
UserConstraint(Element elem)
Constructs the constraint from another element. |
|
UserConstraint(java.lang.String text)
Constructs the constraint from text. |
|
| Method Summary | |
void |
customReadObject(com.topcoder.shared.netCommon.CSReader reader)
Custom serialization |
void |
customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
Custom serialization |
java.lang.String |
getText()
Returns the text of the constraint |
Element |
getUserConstraint()
Returns the element for the constraint |
java.lang.String |
toXML()
Returns the XML representation of this element. |
| Methods inherited from class com.topcoder.shared.problem.Constraint |
encodeHTML, getRenderer, setRenderer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.topcoder.shared.problem.Element |
getRenderer, setRenderer |
| Constructor Detail |
public UserConstraint()
public UserConstraint(java.lang.String text)
text - the text of the constraint.public UserConstraint(Element elem)
elem - the element holding the constraint.| Method Detail |
public void customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
throws java.io.IOException
customWriteObject in interface ElementcustomWriteObject in class Constraintwriter - 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 ElementcustomReadObject in class Constraintreader - 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()
<user-constraint>text</user-constraint>.
public Element getUserConstraint()
public java.lang.String getText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||