kawigi.language
Class LanguageContainer

java.lang.Object
  |
  +--kawigi.language.LanguageContainer
All Implemented Interfaces:
java.lang.Cloneable, com.topcoder.shared.netCommon.CustomSerializable, ExtendedLanguage, com.topcoder.shared.language.Language, java.io.Serializable
Direct Known Subclasses:
ExtendedCPPLanguage, ExtendedCSharpLanguage, ExtendedJavaLanguage, ExtendedVBLanguage

public abstract class LanguageContainer
extends java.lang.Object
implements ExtendedLanguage, java.io.Serializable

This is a default implementation of ExtendedLanguage that contains a Language and routes all TC language features to it.

See Also:
Serialized Form

Field Summary
protected  com.topcoder.shared.language.Language baselang
          The TC language related to this Object.
 
Constructor Summary
LanguageContainer(com.topcoder.shared.language.Language lang)
          Constructs a new LanguageContainer that forwards several method calls to lang.
 
Method Summary
 void customReadObject(com.topcoder.shared.netCommon.CSReader reader)
          TopCoder-related custom serialization dealy.
 void customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
          Another TopCoder-related custom serialization dealy.
 boolean equals(java.lang.Object o)
          Determines if o is an equivalent language to this object.
 com.topcoder.shared.language.Language getBaseLanguage()
          Returns the TopCoder Language object that this one is built on top of.
 int getId()
          Returns the integer ID of the language represented by this object.
 java.lang.String getMethodSignature(java.lang.String methodName, com.topcoder.shared.problem.DataType returnType, com.topcoder.shared.problem.DataType[] paramTypes, java.lang.String[] paramNames)
          Returns the method signature for this language from the TC Language object.
 java.lang.String getName()
          Returns the name of this language from the TC Language object.
 java.lang.String getPropertyClass()
          Returns the property subclass that settings for this language will be stored in.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface kawigi.language.ExtendedLanguage
getCompileCommand, getFileName, getRunCommand, getSkeleton, getViewClass
 

Field Detail

baselang

protected com.topcoder.shared.language.Language baselang
The TC language related to this Object.

Constructor Detail

LanguageContainer

public LanguageContainer(com.topcoder.shared.language.Language lang)
Constructs a new LanguageContainer that forwards several method calls to lang.

Method Detail

getBaseLanguage

public com.topcoder.shared.language.Language getBaseLanguage()
Returns the TopCoder Language object that this one is built on top of.


customReadObject

public void customReadObject(com.topcoder.shared.netCommon.CSReader reader)
                      throws java.io.IOException
TopCoder-related custom serialization dealy.

Specified by:
customReadObject in interface com.topcoder.shared.language.Language
java.io.IOException

customWriteObject

public void customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
                       throws java.io.IOException
Another TopCoder-related custom serialization dealy.

Specified by:
customWriteObject in interface com.topcoder.shared.language.Language
java.io.IOException

equals

public boolean equals(java.lang.Object o)
Determines if o is an equivalent language to this object.

Specified by:
equals in interface com.topcoder.shared.language.Language
Overrides:
equals in class java.lang.Object

getId

public int getId()
Returns the integer ID of the language represented by this object.

Specified by:
getId in interface com.topcoder.shared.language.Language

getMethodSignature

public java.lang.String getMethodSignature(java.lang.String methodName,
                                           com.topcoder.shared.problem.DataType returnType,
                                           com.topcoder.shared.problem.DataType[] paramTypes,
                                           java.lang.String[] paramNames)
Returns the method signature for this language from the TC Language object.

Specified by:
getMethodSignature in interface com.topcoder.shared.language.Language

getName

public java.lang.String getName()
Returns the name of this language from the TC Language object.

Specified by:
getName in interface com.topcoder.shared.language.Language

getPropertyClass

public java.lang.String getPropertyClass()
Returns the property subclass that settings for this language will be stored in. By default, this is the name of the language in lower case.

Specified by:
getPropertyClass in interface ExtendedLanguage