A B C D E F G H I J L M N P R S T U V W

A

addMessage(ProblemMessage) - Method in class com.topcoder.shared.problem.ProblemComponent
Append a ProblemMessage to the list of messages.
ArrayValue - class com.topcoder.shared.problem.ArrayValue.
Implementation of DataValue that holds an array of values.
ArrayValue() - Constructor for class com.topcoder.shared.problem.ArrayValue
Empty constructor required by custom serialization.
ArrayValue(ArrayList) - Constructor for class com.topcoder.shared.problem.ArrayValue
Constructs the array from a list of values.
ArrayValue(DataValueReader, DataType) - Constructor for class com.topcoder.shared.problem.ArrayValue
Constructs the array from a reader using a specific datatype to parse.

B

BAD_XML_CHARS - Static variable in class com.topcoder.shared.problem.ProblemConstants
Characters used to identify bad XML characters.
BaseLanguage - class com.topcoder.shared.language.BaseLanguage.
The BaseLanguage class is the implementation of all the semantics associated with a supported programming language.
BaseLanguage() - Constructor for class com.topcoder.shared.language.BaseLanguage
Empty constructor
BaseLanguage(int, String) - Constructor for class com.topcoder.shared.language.BaseLanguage
Constructs a language with the specified id and descriptor.

C

CharacterValue - class com.topcoder.shared.problem.CharacterValue.
Implementation of DataValue that holds a single character value.
CharacterValue() - Constructor for class com.topcoder.shared.problem.CharacterValue
Empty constructor required by custom serialization.
CharacterValue(char) - Constructor for class com.topcoder.shared.problem.CharacterValue
Constructs the character value from the specified character.
clearMessages() - Method in class com.topcoder.shared.problem.ProblemComponent
Clears the list of problem messages.
clone() - Method in class com.topcoder.shared.problem.Problem
Clones the problem object (note: incomplete)
com.topcoder.shared.language - package com.topcoder.shared.language
 
com.topcoder.shared.problem - package com.topcoder.shared.problem
 
Constraint - class com.topcoder.shared.problem.Constraint.
The Constraint class is intended to be a generalization of input constraints in problem statements.
Constraint() - Constructor for class com.topcoder.shared.problem.Constraint
Empty constructor required by custom serialization.
Constraint(String) - Constructor for class com.topcoder.shared.problem.Constraint
Constructs the constraint with the passed free-form text information.
convertDataValuesToObjects(DataValue[], DataType[]) - Static method in class com.topcoder.shared.problem.DataValue
Converts the given datavalues to an object given the corresponding datatype (ie a datatype of "int" would be converted to an java.lang.Integer).
convertDataValueToObject(DataValue, DataType) - Static method in class com.topcoder.shared.problem.DataValue
Converts the given datavalue to an object given the datatype (ie a datatype of "int" would be converted to an java.lang.Integer).
convertObjectsToDataValues(Object[], DataType[]) - Static method in class com.topcoder.shared.problem.DataValue
Converts the given objects to a DataValue given the corresponding datatypes (ie a object of "Integer" would be converted to an IntegralValue).
convertObjectToDataValue(Object, DataType) - Static method in class com.topcoder.shared.problem.DataValue
Converts the given object to an DataValue given the corresponding datatype (ie a object of "Integer" would be converted to an IntegralValue).
CPP - Static variable in class com.topcoder.shared.problem.ProblemConstants
Representation for the C++ langauge (duplicate of CPPLanguage.ID).
CPP_LANGUAGE - Static variable in class com.topcoder.shared.language.CPPLanguage
Singleton instance for the C++ language.
CPPLanguage - class com.topcoder.shared.language.CPPLanguage.
Represents the C++ language implementation of the Language Interface.
CPPLanguage() - Constructor for class com.topcoder.shared.language.CPPLanguage
Constructor of the C++ language.
CSHARP - Static variable in class com.topcoder.shared.problem.ProblemConstants
Representation for the C# langauge (duplicate of CSharpLanguage.ID).
CSHARP_LANGUAGE - Static variable in class com.topcoder.shared.language.CSharpLanguage
Singleton instance for the C# language.
CSharpLanguage - class com.topcoder.shared.language.CSharpLanguage.
Represents the C# language implementation of the Language Interface.
CSharpLanguage() - Constructor for class com.topcoder.shared.language.CSharpLanguage
Constructor of the C# language.
CStyleLanguage - class com.topcoder.shared.language.CStyleLanguage.
A ``C-style'' language is one in which method signatures are specified as return-type method-name (params...).
CStyleLanguage() - Constructor for class com.topcoder.shared.language.CStyleLanguage
Empty constructor.
CStyleLanguage(int, String) - Constructor for class com.topcoder.shared.language.CStyleLanguage
Constructs a CSytleLanguage.
customReadObject(CSReader) - Method in interface com.topcoder.shared.language.Language
Custom serialization method.
customReadObject(CSReader) - Method in class com.topcoder.shared.language.BaseLanguage
Custom serialization.
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.WebService
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.Value
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.ValidValuesConstraint
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.UserConstraint
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.TextElement
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.TestCase
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.StringValue
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.SizeConstraint
Custom serializiation
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.SimpleComponent
 
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.Range
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.ProblemMessage
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.ProblemComponent
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.Problem
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.NodeElement
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.MinSizeConstraint
Custom serializiation
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.MaxSizeConstraint
Custom serializiation
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.IntegralValue
Custom serialization
customReadObject(CSReader) - Method in interface com.topcoder.shared.problem.Element
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.DecimalValue
Custom serialization.
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.DataType
Custom serialization
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.Constraint
Custom serialization.
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.CharacterValue
Custom serialization.
customReadObject(CSReader) - Method in class com.topcoder.shared.problem.ArrayValue
Custom Serialization
customWriteObject(CSWriter) - Method in interface com.topcoder.shared.language.Language
Custom serialization method.
customWriteObject(CSWriter) - Method in class com.topcoder.shared.language.BaseLanguage
Custom serialization.
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.WebService
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.Value
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.ValidValuesConstraint
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.UserConstraint
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.TextElement
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.TestCase
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.StringValue
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.SizeConstraint
Custom serializiation
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.SimpleComponent
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.Range
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.ProblemMessage
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.ProblemComponent
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.Problem
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.NodeElement
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.MinSizeConstraint
Custom serializiation
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.MaxSizeConstraint
Custom serializiation
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.IntegralValue
Custom serialization
customWriteObject(CSWriter) - Method in interface com.topcoder.shared.problem.Element
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.DecimalValue
Custom serialization.
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.DataType
Custom serialization
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.Constraint
Custom serialization.
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.CharacterValue
Custom serialization.
customWriteObject(CSWriter) - Method in class com.topcoder.shared.problem.ArrayValue
Custom Serialization

D

DataType - class com.topcoder.shared.problem.DataType.
A DataType represents a data type in a language-independent manner.
DataType() - Constructor for class com.topcoder.shared.problem.DataType
This is the default constructor, available for serialization.
DataType(int, String) - Constructor for class com.topcoder.shared.problem.DataType
A DataType consists of a numeric id a description, and a mapping between language ids and language-specific descriptors.
DataType(int, String, HashMap) - Constructor for class com.topcoder.shared.problem.DataType
A DataType consists of a numeric id a description, and a mapping between language ids and language-specific descriptors.
DataType(String) - Constructor for class com.topcoder.shared.problem.DataType
A DataType consists of a numeric id a description, and a mapping between language ids and language-specific descriptors.
DataTypeFactory - class com.topcoder.shared.problem.DataTypeFactory.
This class implements a global database of known data types.
DataTypeFactory() - Constructor for class com.topcoder.shared.problem.DataTypeFactory
 
DataValue - class com.topcoder.shared.problem.DataValue.
A DataValue is a particular parameter or test value; the instance can be used to generate a human-readable encoding, an encoding for a particular programming language, or an actual Java object containing the represented value.
DataValue() - Constructor for class com.topcoder.shared.problem.DataValue
 
DataValueParseException - exception com.topcoder.shared.problem.DataValueParseException.
Represents an exception that occurred while parsing a data value.
DataValueParseException(String) - Constructor for class com.topcoder.shared.problem.DataValueParseException
Constructs the exception with the given message (line is set to 0 and column is set to 0).
DataValueParseException(String, int, int) - Constructor for class com.topcoder.shared.problem.DataValueParseException
Constructs the exception with the given message, line and column.
DataValueReader - class com.topcoder.shared.problem.DataValueReader.
 
DataValueReader(Reader) - Constructor for class com.topcoder.shared.problem.DataValueReader
 
DataValueReader(Reader, int, int) - Constructor for class com.topcoder.shared.problem.DataValueReader
 
DataValueReader(String) - Constructor for class com.topcoder.shared.problem.DataValueReader
 
DataValueReader(String, int, int) - Constructor for class com.topcoder.shared.problem.DataValueReader
 
DecimalValue - class com.topcoder.shared.problem.DecimalValue.
Implementation of DataValue that holds a decimal value (double).
DecimalValue() - Constructor for class com.topcoder.shared.problem.DecimalValue
Empty constructor required by custom serialization.
DecimalValue(double) - Constructor for class com.topcoder.shared.problem.DecimalValue
Constructor for Decimal Value from a double.
decodeXML(String) - Static method in class com.topcoder.shared.problem.ProblemComponent
Undoes the encoding scheme in encodeXML.
DESCRIPTION - Static variable in class com.topcoder.shared.language.JavaLanguage
Descriptor for the java language.
DESCRIPTION - Static variable in class com.topcoder.shared.language.CSharpLanguage
Descriptor for the C# language.
DESCRIPTION - Static variable in class com.topcoder.shared.language.CPPLanguage
Descriptor for the C++ language.
dimension - Variable in class com.topcoder.shared.problem.ValidValuesConstraint
The name of the dimension this constraint refers to.
dimension - Variable in class com.topcoder.shared.problem.SizeConstraint
The dimension the size applies to.

E

Element - interface com.topcoder.shared.problem.Element.
The Element class is an abstraction of the notion of a problem statement 'element'.
ElementRenderer - interface com.topcoder.shared.problem.ElementRenderer.
Interface for all renderer objects.
encode() - Method in class com.topcoder.shared.problem.StringValue
Encode the decimal into a user readable string.
encode() - Method in class com.topcoder.shared.problem.IntegralValue
Encode the integral into a user readable string.
encode() - Method in class com.topcoder.shared.problem.DecimalValue
Encode the decimal into a user readable string.
encode() - Method in class com.topcoder.shared.problem.DataValue
Encodes the given data value.
encode() - Method in class com.topcoder.shared.problem.CharacterValue
Encode the character into a user readable string (ie adds quotes around the character and will escape back-slashes and quotes).
encode() - Method in class com.topcoder.shared.problem.ArrayValue
Encode the array into a user readable string.
encodeXML(String) - Static method in class com.topcoder.shared.problem.ProblemComponent
Utility function for encoding "special" xml characters, or characters not allowing xml to properly parse.
equals(Object) - Method in interface com.topcoder.shared.language.Language
Two languages are equal if they have the same id.
equals(Object) - Method in class com.topcoder.shared.language.BaseLanguage
Two languages are equal if they have the same identifier.
equals(Object) - Method in class com.topcoder.shared.problem.TestCase
Whether this test case equals another test case.
equals(Object) - Method in class com.topcoder.shared.problem.DataType
Returns true if o is a DataType with the same description as this.
ERROR - Static variable in class com.topcoder.shared.problem.TestCase
What the output will be equal to if an error occurred during generation of the output.
ERROR - Static variable in class com.topcoder.shared.problem.ProblemMessage
Specified that a message's level is 'error'.
exception(String) - Method in class com.topcoder.shared.problem.DataValueReader
 

F

FATAL_ERROR - Static variable in class com.topcoder.shared.problem.ProblemMessage
Specified that a message's level is 'fatal error'

G

getAnnotation() - Method in class com.topcoder.shared.problem.TestCase
Returns the annotation associated with this test case.
getArgs() - Method in class com.topcoder.shared.problem.ProblemComponent
Deprecated. for old stuff, just gets array list of java types.
getAttributes() - Method in class com.topcoder.shared.problem.NodeElement
Returns the attributes of the node (which may be empty).
getBaseName() - Method in class com.topcoder.shared.problem.DataType
The base name of a data type is the type of elements it ultimately contains (regardless of dimensionality).
getCacheKey() - Method in class com.topcoder.shared.problem.SimpleComponent
 
getCacheKey() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the cache key for this component
getCacheKey() - Method in class com.topcoder.shared.problem.Problem
Returns the cache key for this problem
getCacheKey(int) - Static method in class com.topcoder.shared.problem.SimpleComponent
 
getCacheKey(int) - Static method in class com.topcoder.shared.problem.ProblemComponent
Get's the cache key for supplied component id
getCacheKey(int) - Static method in class com.topcoder.shared.problem.Problem
Utility method to return the cache key given a problem id
getChar() - Method in class com.topcoder.shared.problem.CharacterValue
Gets the character value
getChildren() - Method in class com.topcoder.shared.problem.NodeElement
Returns the children of the node (which may be empty).
getClassName() - Method in class com.topcoder.shared.problem.SimpleComponent
 
getClassName() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the name of the class that should be defined in solutions to this problem.
getColumn() - Method in class com.topcoder.shared.problem.ProblemMessage
Returns the column in the problem statement XML to which the message corresponds (if known).
getColumn() - Method in class com.topcoder.shared.problem.DataValueParseException
Returns the column the exception occurred on.
getComponent(int) - Method in class com.topcoder.shared.problem.Problem
Gets the Problem Component at the given index
getComponentId() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the component id
getComponentID() - Method in class com.topcoder.shared.problem.SimpleComponent
 
getComponentTypeID() - Method in class com.topcoder.shared.problem.SimpleComponent
 
getComponentTypeID() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the component type id
getConstraints() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the list of constraints.
getDataType(int) - Static method in class com.topcoder.shared.problem.DataTypeFactory
 
getDataType(String) - Static method in class com.topcoder.shared.problem.DataTypeFactory
Obtain a DataType object with the given description.
getDataTypes() - Static method in class com.topcoder.shared.problem.DataTypeFactory
 
getDefaultSolution() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the default solution
getDescription() - Method in class com.topcoder.shared.problem.DataType
Returns the description of the datatype
getDescriptor(int) - Method in class com.topcoder.shared.problem.DataType
The getDescriptor method generates a type descriptor for this data type that is appropriate for the given language.
getDescriptor(Language) - Method in class com.topcoder.shared.problem.DataType
The getDescriptor method generates a type descriptor for this data type that is appropriate for the given language.
getDimension() - Method in class com.topcoder.shared.problem.ValidValuesConstraint
Returns the dimension this constraint refers to.
getDimension() - Method in class com.topcoder.shared.problem.SizeConstraint
Return the dimension the size applies to.
getDimension() - Method in class com.topcoder.shared.problem.DataType
The dimensionality of a data type refers to how many dimensions the type has.
getDouble() - Method in class com.topcoder.shared.problem.DecimalValue
Gets the double value.
getEditableText() - Method in class com.topcoder.shared.problem.TextElement
Get's the text within the element.
getId() - Method in interface com.topcoder.shared.language.Language
Returns the unique identifier of the language.
getId() - Method in class com.topcoder.shared.language.BaseLanguage
Returns the unique language identifier.
getID() - Method in class com.topcoder.shared.problem.DataType
Returns the unique identifier for the datatype
getInput() - Method in class com.topcoder.shared.problem.TestCase
Returns the string representations of the input values as an array.
getInteger() - Method in class com.topcoder.shared.problem.IntegralValue
Casts the value as an int and returns it.
getIntro() - Method in class com.topcoder.shared.problem.ProblemComponent
The 'intro' is the required introductory text for a problem statement (shown before the signature).
getJavaDocAddress() - Method in class com.topcoder.shared.problem.WebService
Returns the javadoc address.
getLanguage(int) - Static method in class com.topcoder.shared.language.BaseLanguage
Helper method to return a Language for the identifier.
getLine() - Method in class com.topcoder.shared.problem.ProblemMessage
Returns the line in the problem statement XML to which the message corresponds (if known).
getLine() - Method in class com.topcoder.shared.problem.DataValueParseException
Returns the line number the exception occurred on.
getLong() - Method in class com.topcoder.shared.problem.IntegralValue
Returns the value as a long.
getMax() - Method in class com.topcoder.shared.problem.Range
Returns the max of the range.
getMessage() - Method in class com.topcoder.shared.problem.ProblemMessage
Returns the content of the message.
getMessage() - Method in class com.topcoder.shared.problem.DataValueParseException
Returns the exception message.
getMessages() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the list of ProblemMessages generated by the parsing process.
getMethodName() - Method in class com.topcoder.shared.problem.SimpleComponent
 
getMethodName() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the name of the method that should be defined in solutions to this problem.
getMethodSignature(String, DataType, DataType[], String[]) - Method in interface com.topcoder.shared.language.Language
Creates a method signature for the given parameters specific to the language.
getMethodSignature(String, DataType, DataType[], String[]) - Method in class com.topcoder.shared.language.CStyleLanguage
Creates a C-style method signature for the given parameters specific to the language.
getMethodSignature(String, DataType, DataType[], String[]) - Method in class com.topcoder.shared.language.BaseLanguage
Dependents of this class should implement the getMethodSignature.
getMin() - Method in class com.topcoder.shared.problem.Range
Returns the min of the range.
getName() - Method in interface com.topcoder.shared.language.Language
Returns the textual name for the language such as "Java" or "C++".
getName() - Method in class com.topcoder.shared.language.BaseLanguage
Returns the language descriptor (or name) such as "Java" or "C++".
getName() - Method in class com.topcoder.shared.problem.WebService
Returns the name of the web service.
getName() - Method in class com.topcoder.shared.problem.Problem
Returns the problem name
getName() - Method in class com.topcoder.shared.problem.NodeElement
Returns the name of the node.
getNotes() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the list of notes.
getOutput() - Method in class com.topcoder.shared.problem.TestCase
Returns the string representation of the expected output for this test case.
getParamName() - Method in class com.topcoder.shared.problem.ValidValuesConstraint
Returns the parameter name.
getParamName() - Method in class com.topcoder.shared.problem.SizeConstraint
Returns the parameter name.
getParamNames() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the names of the arguments to the method that should be defined in solutions to this problem.
getParamTypes() - Method in class com.topcoder.shared.problem.SimpleComponent
 
getParamTypes() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the data type of all of the arguments to the method that should be defined in solutions to this problem.
getPrimaryComponent() - Method in class com.topcoder.shared.problem.Problem
Returns the problem component considered the main component.
getProblemComponents() - Method in class com.topcoder.shared.problem.Problem
Returns the components for this problem
getProblemId() - Method in class com.topcoder.shared.problem.WebService
Returns the problem identifier related to the web service.
getProblemId() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the problem id that this component is associated with
getProblemId() - Method in class com.topcoder.shared.problem.Problem
Returns the unique problem identifier
getProblemID() - Method in class com.topcoder.shared.problem.SimpleComponent
 
getProblemText() - Method in class com.topcoder.shared.problem.Problem
Returns the problem text
getProblemTypeID() - Method in class com.topcoder.shared.problem.Problem
Returns the problem type identity
getRenderer() - Method in interface com.topcoder.shared.problem.Element
Gets the renderer for the element.
getResultType() - Method in class com.topcoder.shared.problem.ProblemComponent
Deprecated.  
getReturnType() - Method in class com.topcoder.shared.problem.SimpleComponent
 
getReturnType() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the return type of the method that should be defined in solutions to this problem.
getReturnType(int) - Method in class com.topcoder.shared.problem.SimpleComponent
 
getReturnType(int) - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the string representation of the return type for the required method for this component for the specified language
getSize() - Method in class com.topcoder.shared.problem.SizeConstraint
Return the size.
getSpec() - Method in class com.topcoder.shared.problem.ProblemComponent
The 'spec' is the optional text following the signature, typically giving more technical information about the problem.
getString() - Method in class com.topcoder.shared.problem.StringValue
Gets the string value.
getTestCases() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's the list of test cases.
getText() - Method in class com.topcoder.shared.problem.UserConstraint
Returns the text of the constraint
getText() - Method in class com.topcoder.shared.problem.NodeElement
Returns the text for the node.
getType() - Method in class com.topcoder.shared.problem.ProblemMessage
The type of a message is one of WARNING, ERROR, or FATAL_ERROR.
getTypeMapping() - Method in class com.topcoder.shared.problem.DataType
Get's the type mappings for the data type
getUserConstraint() - Method in class com.topcoder.shared.problem.UserConstraint
Returns the element for the constraint
getValidValues() - Method in class com.topcoder.shared.problem.ValidValuesConstraint
Returns an ArrayList where each element is an instance of Value or Range, and the valid elements are those elements in any one of the Ranges or Values.
getValue() - Method in class com.topcoder.shared.problem.Value
Returns the value.
getValue() - Method in class com.topcoder.shared.problem.StringValue
Gets the value as an object.
getValue() - Method in class com.topcoder.shared.problem.IntegralValue
Gets the integral as an Object.
getValue() - Method in class com.topcoder.shared.problem.DecimalValue
Gets the double as an Object.
getValue() - Method in class com.topcoder.shared.problem.DataValue
Returns the value as an object.
getValue() - Method in class com.topcoder.shared.problem.CharacterValue
Gets the character as an Object
getValue() - Method in class com.topcoder.shared.problem.ArrayValue
Returns the array (essentially values.toArray()).
getWebServiceDependencies() - Method in class com.topcoder.shared.problem.SimpleComponent
 
getWebServiceId() - Method in class com.topcoder.shared.problem.WebService
Returns the unique identifier of the web service.
getWebServices() - Method in class com.topcoder.shared.problem.Problem
Returns the web services for the problem

H

handleTextElement(String, Element) - Static method in class com.topcoder.shared.problem.ProblemComponent
Helper method to format an element between an opening/closing html tag
hasWebServiceDependencies() - Method in class com.topcoder.shared.problem.SimpleComponent
 

I

ID - Static variable in class com.topcoder.shared.language.JavaLanguage
Identifier for the Java language.
ID - Static variable in class com.topcoder.shared.language.CSharpLanguage
Identifier for the C# language.
ID - Static variable in class com.topcoder.shared.language.CPPLanguage
Unique identifier for the C++ language.
IntegralValue - class com.topcoder.shared.problem.IntegralValue.
Implementation of DataValue that holds a integral number (integer or long).
IntegralValue() - Constructor for class com.topcoder.shared.problem.IntegralValue
Empty constructor required by custom serialization.
IntegralValue(long) - Constructor for class com.topcoder.shared.problem.IntegralValue
Constructor for Decimal Value from a integral.
InvalidTypeException - exception com.topcoder.shared.problem.InvalidTypeException.
Invalid type exception.
InvalidTypeException(String) - Constructor for class com.topcoder.shared.problem.InvalidTypeException
Constructs the invalid type from the given message.
isExample() - Method in class com.topcoder.shared.problem.TestCase
True if this test case is an example test case.
isUnsafe() - Method in class com.topcoder.shared.problem.ProblemComponent
If a problem component is unsafe, then it should not have all the system test cases, only those that are marked as examples.
isValid() - Method in class com.topcoder.shared.problem.ProblemComponent
A problem statement is valid if it was successfully parsed without errors.
isValid() - Method in class com.topcoder.shared.problem.Problem
Returns whether the problem is valid or not.

J

JAVA - Static variable in class com.topcoder.shared.problem.ProblemConstants
Representation for the JAVA langauge (duplicate of JavaLanguage.ID).
JAVA_LANGUAGE - Static variable in class com.topcoder.shared.language.JavaLanguage
Singleton instance for the java language.
JavaLanguage - class com.topcoder.shared.language.JavaLanguage.
Represents the java language implementation of the Language Interface.
JavaLanguage() - Constructor for class com.topcoder.shared.language.JavaLanguage
Constructor for the Java Language.

L

Language - interface com.topcoder.shared.language.Language.
The interface for the implementation of all the semantics associated with a supported programming language.
log(Category) - Method in class com.topcoder.shared.problem.ProblemMessage
Sends the message in an appropriate format to the appropriate log.

M

MAIN_COMPONENT - Static variable in class com.topcoder.shared.problem.ProblemConstants
Component Type ID for the main component.
main(String[]) - Static method in class com.topcoder.shared.problem.ProblemComponent
Main method to test out the encodeXML/decodeXML function
MaxSizeConstraint - class com.topcoder.shared.problem.MaxSizeConstraint.
The MaxSizeConstraint class is for constraints related to the maximum size (length) of a parameter.
MaxSizeConstraint() - Constructor for class com.topcoder.shared.problem.MaxSizeConstraint
Empty constructor required by custom serialization.
MaxSizeConstraint(int, int, String) - Constructor for class com.topcoder.shared.problem.MaxSizeConstraint
Constructs the Max Size constraint from the given parms.
MinSizeConstraint - class com.topcoder.shared.problem.MinSizeConstraint.
The MinSizeConstraint class is for constraints related to the minimum size (length) of a parameter.
MinSizeConstraint() - Constructor for class com.topcoder.shared.problem.MinSizeConstraint
Empty constructor required by custom serialization.
MinSizeConstraint(int, int, String) - Constructor for class com.topcoder.shared.problem.MinSizeConstraint
Constructs the Min Size constraint from the given parms.

N

NodeElement - class com.topcoder.shared.problem.NodeElement.
A NodeElement represents an XML element.
NodeElement() - Constructor for class com.topcoder.shared.problem.NodeElement
Empty constructor required by custom serialization.
NodeElement(String, HashMap, ArrayList, String) - Constructor for class com.topcoder.shared.problem.NodeElement
Creates the node from the given information.

P

paramName - Variable in class com.topcoder.shared.problem.ValidValuesConstraint
The name of the parameter.
paramName - Variable in class com.topcoder.shared.problem.SizeConstraint
The parameter name.
parse(DataValueReader, DataType) - Method in class com.topcoder.shared.problem.StringValue
Parses the information in the DataValueReader using the a specified DataType to parse each value.
parse(DataValueReader, DataType) - Method in class com.topcoder.shared.problem.IntegralValue
Parses the information in the DataValueReader using the a specified DataType to parse each value.
parse(DataValueReader, DataType) - Method in class com.topcoder.shared.problem.DecimalValue
Parses the information in the DataValueReader using the a specified DataType to parse each value.
parse(DataValueReader, DataType) - Method in class com.topcoder.shared.problem.DataValue
Parses a data from a reader given the specific datatype.
parse(DataValueReader, DataType) - Method in class com.topcoder.shared.problem.CharacterValue
Parses the information in the DataValueReader for a character.
parse(DataValueReader, DataType) - Method in class com.topcoder.shared.problem.ArrayValue
Parses the information in the DataValueReader using the a specified DataType to parse each value.
parseSequence(DataValueReader, DataType[]) - Static method in class com.topcoder.shared.problem.DataValue
Parses data from a reader using the corresponding DataTypes into it's object representation (ie Integer, String, int[], etc).
parseSequence(String, DataType[]) - Static method in class com.topcoder.shared.problem.DataValue
Parses the text (which has multiple values embedded) using the corresponding DataType into it's object representation (ie Integer, String, int[], etc).
parseValue(DataValueReader, DataType) - Static method in class com.topcoder.shared.problem.DataValue
Parses data from a reader given the specific datatype.
parseValue(String, DataType) - Static method in class com.topcoder.shared.problem.DataValue
Parses data from the text given the specific datatype.
parseValues(String[], DataType[]) - Static method in class com.topcoder.shared.problem.DataValue
Parses values from an array of strings given the corresponding array of types.
parseValuesToObjects(String[], DataType[]) - Static method in class com.topcoder.shared.problem.DataValue
Parses the specified array of values using the corresponding DataType into it's object.
parseValueToObject(String, DataType) - Static method in class com.topcoder.shared.problem.DataValue
Parses the specified text using the specified DataType into it's object.
Problem - class com.topcoder.shared.problem.Problem.
This class contains data for a problem.
Problem() - Constructor for class com.topcoder.shared.problem.Problem
Empty constructor required by custom serialization
ProblemComponent - class com.topcoder.shared.problem.ProblemComponent.
This class fully represents a problem statement.
ProblemComponent() - Constructor for class com.topcoder.shared.problem.ProblemComponent
Empty constructor required by custom serialization
ProblemComponent(boolean) - Constructor for class com.topcoder.shared.problem.ProblemComponent
A problem statement must be constructed with a set of known data types, the XML it was originally parsed from, and a flag specifying whether this instance is an 'unsafe' version.
ProblemConstants - class com.topcoder.shared.problem.ProblemConstants.
Constants for use by problem package.
ProblemConstants() - Constructor for class com.topcoder.shared.problem.ProblemConstants
 
ProblemMessage - class com.topcoder.shared.problem.ProblemMessage.
This is a utility class for representing messages generate during problem statement parsing and construction.
ProblemMessage() - Constructor for class com.topcoder.shared.problem.ProblemMessage
Empty constructor required by custom serialization.
ProblemMessage(int, String) - Constructor for class com.topcoder.shared.problem.ProblemMessage
Constructs a message with an unknown location.
ProblemMessage(int, String, int, int) - Constructor for class com.topcoder.shared.problem.ProblemMessage
Constructs a message with a known location.

R

Range - class com.topcoder.shared.problem.Range.
A class to represent a range of values.
Range() - Constructor for class com.topcoder.shared.problem.Range
Empty constructor required by custom serialization.
Range(String, String) - Constructor for class com.topcoder.shared.problem.Range
Constructs the range (TODO shouldn't these be ints?).
read() - Method in class com.topcoder.shared.problem.DataValueReader
 
read(boolean) - Method in class com.topcoder.shared.problem.DataValueReader
 
reduceDimension() - Method in class com.topcoder.shared.problem.DataType
Constructs and returns a new type, similar to this type, but with its dimension reduced.
Renderer - interface com.topcoder.shared.problem.Renderer.
Interface for rendering an element (like a problem component) to HTML or plain text.

S

SECONDARY_COMPONENT - Static variable in class com.topcoder.shared.problem.ProblemConstants
Component Type ID for all secondary components.
setClassName(String) - Method in class com.topcoder.shared.problem.SimpleComponent
 
setClassName(String) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the name of the class that should be defined in solutions to this problem.
setComponentId(int) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the component id
setComponentID(int) - Method in class com.topcoder.shared.problem.SimpleComponent
 
setComponentTypeID(int) - Method in class com.topcoder.shared.problem.SimpleComponent
 
setComponentTypeID(int) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the component type id
setConstraints(Constraint[]) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the list of constraints.
setDefaultSolution(String) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the default solution
setEditableText(String) - Method in class com.topcoder.shared.problem.TextElement
Set's the text within the element.
setElement(Element) - Method in interface com.topcoder.shared.problem.ElementRenderer
Set the element for this renderer.
setExample(boolean) - Method in class com.topcoder.shared.problem.TestCase
Set's whether the test case is an example or system test case.
setIntro(Element) - Method in class com.topcoder.shared.problem.ProblemComponent
Updates the 'intro' element.
setJavaDocAddress(String) - Method in class com.topcoder.shared.problem.WebService
Sets the javadoc address.
setMessages(ArrayList) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the list of ProblemMessages generated by the parsing process.
setMethodName(String) - Method in class com.topcoder.shared.problem.SimpleComponent
 
setMethodName(String) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the name of the method that should be defined in solutions to this problem.
setName(String) - Method in class com.topcoder.shared.problem.WebService
Sets the name of the web service.
setName(String) - Method in class com.topcoder.shared.problem.Problem
Sets the name of the problem
setNotes(Element[]) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the list of notes.
setOutput(String) - Method in class com.topcoder.shared.problem.TestCase
Set's the string representation of the expected output for this test case.
setParamNames(String[]) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the names of the arguments to the method that should be defined in solutions to this problem.
setParamTypes(DataType[]) - Method in class com.topcoder.shared.problem.SimpleComponent
 
setParamTypes(DataType[]) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the data type of all of the arguments to the method that should be defined in solutions to this problem.
setProblemComponents(ProblemComponent[]) - Method in class com.topcoder.shared.problem.Problem
Sets the components for this problem
setProblemId(int) - Method in class com.topcoder.shared.problem.WebService
Sets the identifier of the problem related to the web service.
setProblemId(int) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the problem id that this component is associated with
setProblemId(int) - Method in class com.topcoder.shared.problem.Problem
Sets the unique problem identifier
setProblemID(int) - Method in class com.topcoder.shared.problem.SimpleComponent
 
setProblemText(String) - Method in class com.topcoder.shared.problem.Problem
Sets the problem text
setProblemTypeID(int) - Method in class com.topcoder.shared.problem.Problem
Sets the problem type identity
setRenderer(ElementRenderer) - Method in interface com.topcoder.shared.problem.Element
Sets the renderer for the element.
setReturnType(DataType) - Method in class com.topcoder.shared.problem.SimpleComponent
 
setReturnType(DataType) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the return type of the method that should be defined in solutions to this problem.
setSpec(Element) - Method in class com.topcoder.shared.problem.ProblemComponent
Updates the 'spec' element.
setTestCases(TestCase[]) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the list of test cases.
setTypeMapping(HashMap) - Method in class com.topcoder.shared.problem.DataType
Sets the type mapping for the data type
setUnsafe(boolean) - Method in class com.topcoder.shared.problem.ProblemComponent
If a problem component is unsafe, then it should not have all the system test cases, only those that are marked as examples.
setValid(boolean) - Method in class com.topcoder.shared.problem.ProblemComponent
Set's the validity of the problem statement
setWebServiceDependencies(Long[]) - Method in class com.topcoder.shared.problem.SimpleComponent
 
setWebServiceId(int) - Method in class com.topcoder.shared.problem.WebService
Sets the unique identifier for the web service.
setWebServices(WebService[]) - Method in class com.topcoder.shared.problem.Problem
Sets the web services for the problem
SimpleComponent - class com.topcoder.shared.problem.SimpleComponent.
 
SimpleComponent() - Constructor for class com.topcoder.shared.problem.SimpleComponent
 
SINGLE_PROBLEM - Static variable in class com.topcoder.shared.problem.ProblemConstants
Problem Type ID for a non-team problem.
size - Variable in class com.topcoder.shared.problem.SizeConstraint
The size.
SizeConstraint - class com.topcoder.shared.problem.SizeConstraint.
The SizeConstraint class is for constraints related to the size (length) of a parameter.
SizeConstraint() - Constructor for class com.topcoder.shared.problem.SizeConstraint
Empty constructor required by custom serialization.
SizeConstraint(int, int, String) - Constructor for class com.topcoder.shared.problem.SizeConstraint
Constructs the Size constraint from the given parms.
skipWhitespace() - Method in class com.topcoder.shared.problem.DataValueReader
 
StringValue - class com.topcoder.shared.problem.StringValue.
Implementation of DataValue that holds a String value.
StringValue() - Constructor for class com.topcoder.shared.problem.StringValue
Empty constructor required by custom serialization.
StringValue(String) - Constructor for class com.topcoder.shared.problem.StringValue
Constructs the DataValue from the given string.

T

TEAM_PROBLEM - Static variable in class com.topcoder.shared.problem.ProblemConstants
Problem Type ID for a team problem.
TestCase - class com.topcoder.shared.problem.TestCase.
This class represents a test case.
TestCase() - Constructor for class com.topcoder.shared.problem.TestCase
Empty constructor required by custom serialization.
TestCase(String[], Element, boolean) - Constructor for class com.topcoder.shared.problem.TestCase
Constructs a TestCase whos output is yet unknown.
TestCase(String[], String, boolean) - Constructor for class com.topcoder.shared.problem.TestCase
Constructs an unannotated test case.
TestCase(String[], String, Element, boolean) - Constructor for class com.topcoder.shared.problem.TestCase
 
TextElement - class com.topcoder.shared.problem.TextElement.
The simplest element is a TextElement, which corresponds to CDATA (plain, unstructured text).
TextElement() - Constructor for class com.topcoder.shared.problem.TextElement
Empty constructor required by custom serialization.
TextElement(String) - Constructor for class com.topcoder.shared.problem.TextElement
Constructs the text element with the given text.
toHTML(Language) - Method in interface com.topcoder.shared.problem.Renderer
A Renderer capable of transforming the information in its corresponding problem component into a language-specific HTML fragment.
toPlainText(Language) - Method in interface com.topcoder.shared.problem.Renderer
Deprecated.  
toString() - Method in class com.topcoder.shared.problem.TextElement
Returns the string represenetation of this object.
toString() - Method in class com.topcoder.shared.problem.SimpleComponent
 
toString() - Method in class com.topcoder.shared.problem.ProblemMessage
Converts the message and all information associated with it to a human-readable string.
toString() - Method in class com.topcoder.shared.problem.ProblemComponent
Returns the string representation of this object
toString() - Method in class com.topcoder.shared.problem.Problem
Returns a user readable version of the problem
toString() - Method in class com.topcoder.shared.problem.DataValueParseException
Returns the exception text (message, line and columnn).
toXML() - Method in class com.topcoder.shared.problem.WebService
Returns an XML representation of the web service.
toXML() - Method in class com.topcoder.shared.problem.Value
Returns the value as XML.
toXML() - Method in class com.topcoder.shared.problem.ValidValuesConstraint
Returns the constraint as XML.
toXML() - Method in class com.topcoder.shared.problem.UserConstraint
Returns the XML representation of this element.
toXML() - Method in class com.topcoder.shared.problem.TextElement
Returns the XML representation of this element.
toXML() - Method in class com.topcoder.shared.problem.TestCase
Returns the XML representation of this element.
toXML() - Method in class com.topcoder.shared.problem.Range
Returns the XML representation of the object.
toXML() - Method in class com.topcoder.shared.problem.ProblemComponent
Get's an XML representation for this component
toXML() - Method in class com.topcoder.shared.problem.Problem
Returns an XML representation of the problem TODO: does anyone care this doesn't do anything?
toXML() - Method in class com.topcoder.shared.problem.NodeElement
Returns the node represented in XML format.
toXML() - Method in class com.topcoder.shared.problem.MinSizeConstraint
Returns the constraint as XML.
toXML() - Method in class com.topcoder.shared.problem.MaxSizeConstraint
Returns the constraint as XML.
toXML() - Method in interface com.topcoder.shared.problem.Element
An Element must be cable of transforming the information it represents into well-formed, valid XML (validated against the problem statement schema).
toXML() - Method in class com.topcoder.shared.problem.DataValue
Returns the XML representation of the value.
toXML() - Method in class com.topcoder.shared.problem.DataType
Returns the datatype described in XML

U

UNKNOWN_OUTPUT - Static variable in class com.topcoder.shared.problem.TestCase
What the output will be equal to if the output is unknown.
unread(int) - Method in class com.topcoder.shared.problem.DataValueReader
 
UserConstraint - class com.topcoder.shared.problem.UserConstraint.
A user constraint is where the problem writer writes arbitrary text to specify a constraint.
UserConstraint() - Constructor for class com.topcoder.shared.problem.UserConstraint
Empty constructor required by custom serialization.
UserConstraint(Element) - Constructor for class com.topcoder.shared.problem.UserConstraint
Constructs the constraint from another element.
UserConstraint(String) - Constructor for class com.topcoder.shared.problem.UserConstraint
Constructs the constraint from text.

V

validValues - Variable in class com.topcoder.shared.problem.ValidValuesConstraint
An ArrayList where each element is an instance of Value or Range, and the valid elements are those elements in any one of the Ranges or Values.
ValidValuesConstraint - class com.topcoder.shared.problem.ValidValuesConstraint.
The ValidValuesConstraint is a constraint containing information as to the valid values of a parameter.
ValidValuesConstraint() - Constructor for class com.topcoder.shared.problem.ValidValuesConstraint
Empty constructor required by custom serialization.
ValidValuesConstraint(ArrayList, int, String) - Constructor for class com.topcoder.shared.problem.ValidValuesConstraint
 
Value - class com.topcoder.shared.problem.Value.
A class to represent a value (held in a string field).
Value(String) - Constructor for class com.topcoder.shared.problem.Value
Constructs the value from the given value.

W

WARNING - Static variable in class com.topcoder.shared.problem.ProblemMessage
Specified that a message's level is 'warning'.
WebService - class com.topcoder.shared.problem.WebService.
An element to hold information about a Web Service.
WebService() - Constructor for class com.topcoder.shared.problem.WebService
Empty constructor required by custom serialization.

A B C D E F G H I J L M N P R S T U V W