de.unidu.is.expressions
Class StringExpression

java.lang.Object
  extended byde.unidu.is.expressions.AbstractExpression
      extended byde.unidu.is.expressions.StringExpression
All Implemented Interfaces:
Expression
Direct Known Subclasses:
Constant

public class StringExpression
extends AbstractExpression

An expression for a string, enclosed in single quotes.

Since:
2003-10-21
Version:
$Revision: 1.5 $, $Date: 2005/03/14 17:33:14 $
Author:
Henrik Nottelmann

Field Summary
protected  java.lang.String content
          The content of this expression.
 
Constructor Summary
StringExpression(java.lang.String content)
          Creates a new expression object.
 
Method Summary
 boolean equals(java.lang.Object o)
          Tests whether this expressions equals the specified StringExpression.
 java.lang.String get()
          Returns the content of this expression.
 int hashCode()
          Returns the hashcode of this expression object.
 void set(java.lang.String content)
          Sets the content of this expression.
 java.lang.String toString()
          Returns the content of this expression, enclosed in single quotes.
 
Methods inherited from class de.unidu.is.expressions.AbstractExpression
getSQLTemplate, substitute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

content

protected java.lang.String content
The content of this expression.

Constructor Detail

StringExpression

public StringExpression(java.lang.String content)
Creates a new expression object.

Parameters:
content - expression content
Method Detail

get

public java.lang.String get()
Returns the content of this expression.

Returns:
expression content

set

public void set(java.lang.String content)
Sets the content of this expression.

Parameters:
content - expression content

toString

public java.lang.String toString()
Returns the content of this expression, enclosed in single quotes.

Returns:
content of this expression

equals

public boolean equals(java.lang.Object o)
Tests whether this expressions equals the specified StringExpression.

Parameters:
o - expression to test
Returns:
true iff both expressions are equal

hashCode

public int hashCode()
Returns the hashcode of this expression object.

Returns:
hashcode of this expression object