com.hcarralero.toljava
Class TOLText

java.lang.Object
  extended by com.hcarralero.toljava.TOLLObject
      extended by com.hcarralero.toljava.TOLText
All Implemented Interfaces:
TOLObject

public class TOLText
extends TOLLObject

Representa a un objeto TOL de tipo Text


Constructor Summary
TOLText(java.lang.String text)
          Construye un objeto de tipo TOLText
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compara a este objeto con otro
 java.lang.String getText()
          Retorna el texto almacenado
 int hashCode()
          Calcula el código hash asignado al objeto
 boolean isText()
          Determina si el objeto corresponde al tipo Text de TOL
 void setText(java.lang.String text)
          Cambia el texto almacenado por el nuevo texto
 java.lang.String toString()
          Obtiene una representación como cadena de texto del objeto
 
Methods inherited from class com.hcarralero.toljava.TOLLObject
isCode, isComplex, isDate, isMatrix, isPolyn, isRatio, isReal, isReference, isSerie, isSet, isTimeSet, isVMatrix
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TOLText

public TOLText(java.lang.String text)
Construye un objeto de tipo TOLText

Parameters:
text - Texto que almacena el objeto
Method Detail

getText

public java.lang.String getText()
Retorna el texto almacenado

Returns:
el texto almacenado

setText

public void setText(java.lang.String text)
Cambia el texto almacenado por el nuevo texto

Parameters:
text - el nuevo texto

isText

public boolean isText()
Determina si el objeto corresponde al tipo Text de TOL

Specified by:
isText in interface TOLObject
Overrides:
isText in class TOLLObject
Returns:
true ya que el objeto corresponde al tipo Text de TOL

equals

public boolean equals(java.lang.Object obj)
Compara a este objeto con otro

Overrides:
equals in class java.lang.Object
Parameters:
obj - el objeto con el que se comparará
Returns:
true si el objeto pasado como parámetro es de tipo TOLText y contiene un texto similar

hashCode

public int hashCode()
Calcula el código hash asignado al objeto

Overrides:
hashCode in class java.lang.Object
Returns:
el código hash asignado al objeto

toString

public java.lang.String toString()
Obtiene una representación como cadena de texto del objeto

Overrides:
toString in class java.lang.Object
Returns:
la representación como cadena de texto del objeto