public class ScriptType extends java.lang.Object implements StringRepresentation
| Constructor and Description |
|---|
ScriptType(java.lang.String typeName,
java.lang.String typeSign)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Returns the (unique) id of the type.
|
java.lang.String |
getName()
Returns the name of the type.
|
java.lang.String |
getSign()
Returns the abbreviation of the name.
|
java.lang.String |
getStringRepresentation()
Returns a user-readable string representation of the object.
|
boolean |
isComplex()
Tells whether or not this type is complex.
|
void |
setId(int id)
Sets the id of the type.
|
java.lang.String |
toString() |
public ScriptType(java.lang.String typeName,
java.lang.String typeSign)
typeName - the name of the type. This is also the key.typeSign - an abbreviation of the type name.public java.lang.String getName()
public java.lang.String getSign()
public void setId(int id)
id - the id of the type.public int getId()
public boolean isComplex()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getStringRepresentation()
StringRepresentationgetStringRepresentation in interface StringRepresentation