public class ScriptType extends java.lang.Object implements StringRepresentation
Modifier and Type | Field and Description |
---|---|
protected int |
id |
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 int getId()
public void setId(int id)
id
- the id of the type.public boolean isComplex()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getStringRepresentation()
StringRepresentation
getStringRepresentation
in interface StringRepresentation