com.topcoder.shared.problem
Class SimpleComponent

java.lang.Object
  |
  +--com.topcoder.shared.problem.SimpleComponent
All Implemented Interfaces:
com.topcoder.shared.netCommon.CustomSerializable, java.io.Serializable

public class SimpleComponent
extends java.lang.Object
implements java.io.Serializable, com.topcoder.shared.netCommon.CustomSerializable

See Also:
Serialized Form

Constructor Summary
SimpleComponent()
           
 
Method Summary
 void customReadObject(com.topcoder.shared.netCommon.CSReader reader)
          Restores the state of the object from the reader.
 void customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
          Custom serialization
 java.lang.String getCacheKey()
           
static java.lang.String getCacheKey(int componentID)
           
 java.lang.String getClassName()
           
 int getComponentID()
           
 int getComponentTypeID()
           
 java.lang.String getMethodName()
           
 DataType[] getParamTypes()
           
 int getProblemID()
           
 DataType getReturnType()
           
 java.lang.String getReturnType(int language)
           
 java.lang.Long[] getWebServiceDependencies()
           
 boolean hasWebServiceDependencies()
           
 void setClassName(java.lang.String className)
           
 void setComponentID(int componentID)
           
 void setComponentTypeID(int componentTypeID)
           
 void setMethodName(java.lang.String methodName)
           
 void setParamTypes(DataType[] paramTypes)
           
 void setProblemID(int problemID)
           
 void setReturnType(DataType returnType)
           
 void setWebServiceDependencies(java.lang.Long[] webServiceIDs)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleComponent

public SimpleComponent()
Method Detail

customWriteObject

public void customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
                       throws java.io.IOException
Custom serialization

Specified by:
customWriteObject in interface com.topcoder.shared.netCommon.CustomSerializable
Parameters:
writer - the writer to write to.
Throws:
java.io.IOException - if an I/O error has occurred in the stream that backs the writer.

customReadObject

public void customReadObject(com.topcoder.shared.netCommon.CSReader reader)
                      throws java.io.IOException
Description copied from interface: com.topcoder.shared.netCommon.CustomSerializable
Restores the state of the object from the reader. The state of the object was previously written by the customWriteObject method.

Specified by:
customReadObject in interface com.topcoder.shared.netCommon.CustomSerializable
Parameters:
reader - the reader to read from.
Throws:
java.io.IOException - if an I/O error has occurred in the stream that backs the reader.

getProblemID

public int getProblemID()

setProblemID

public void setProblemID(int problemID)

getComponentID

public int getComponentID()

setComponentID

public void setComponentID(int componentID)

getComponentTypeID

public int getComponentTypeID()

setComponentTypeID

public void setComponentTypeID(int componentTypeID)

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String className)

getMethodName

public java.lang.String getMethodName()

setMethodName

public void setMethodName(java.lang.String methodName)

getParamTypes

public DataType[] getParamTypes()

setParamTypes

public void setParamTypes(DataType[] paramTypes)

getReturnType

public DataType getReturnType()

setReturnType

public void setReturnType(DataType returnType)

getCacheKey

public static java.lang.String getCacheKey(int componentID)

getCacheKey

public java.lang.String getCacheKey()

getReturnType

public java.lang.String getReturnType(int language)
Parameters:
language - the languageID
Returns:
the return type for the languageID

hasWebServiceDependencies

public boolean hasWebServiceDependencies()

getWebServiceDependencies

public java.lang.Long[] getWebServiceDependencies()

setWebServiceDependencies

public void setWebServiceDependencies(java.lang.Long[] webServiceIDs)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object