literals
Class PSString

java.lang.Object
  extended byliterals.PSString
All Implemented Interfaces:
PSLiteral, PSObject

public class PSString
extends java.lang.Object
implements PSLiteral


Constructor Summary
PSString()
          Creates a new instance of PSString.
PSString(java.lang.String str)
          Creates a new instance of PSString.
 
Method Summary
 java.lang.String getValue()
          A copy of a String object is returned.
 java.lang.String toString()
          A String representation of a String(!) is returned.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PSString

public PSString()
Creates a new instance of PSString.

Precondition : -
Postcondition : A new instance of PSString will be created.


PSString

public PSString(java.lang.String str)
Creates a new instance of PSString.

Precondition : -
Postcondition : A new instance of PSString will be created.

Parameters:
str - The initialization value of PSString.
Method Detail

getValue

public java.lang.String getValue()
A copy of a String object is returned.

Precondition : A proper instance of PSString must have been created.
Postcondition : A copy of the encapsulated value will be returned.

Returns:
A copy of the encapsulated value.

toString

public java.lang.String toString()
A String representation of a String(!) is returned.

Precondition : A proper instance of PSString must have been created.
Postcondition : A copy of the encapsulated value will be returned.

Specified by:
toString in interface PSLiteral
Returns:
A copy of the encapsulated value.