com.softwareag.tamino.db.api.command
Class TCommandItem

java.lang.Object
  extended by com.softwareag.tamino.db.api.command.TCommandItem
Direct Known Subclasses:
TCommand, TCommandParameter, TCommandParameterValue, TCommandValue

public abstract class TCommandItem
extends java.lang.Object

TCommandItem is the abstraction for either a key or value item within a Tamino command statement. Such a statement consists of a number of key/value separated by ampersands. A TCommandItem can either be such a key or value parameter.

Version:
$Revision: 1.8 $
Author:
Marcus Schreyer

Constructor Summary
protected TCommandItem(java.lang.Object value)
          Initializes the TCommandItem with the specified value as an Object instance.
protected TCommandItem(java.lang.String value)
          Initializes the TCommandItem with the specified value as a String instance.
 
Method Summary
protected  java.lang.Object getValue()
          Gets the internal value.
abstract  void takeVisitor(TCommandItemVisitor visitor)
          Takes a TCommandItemVisitor and tells it that it wants to be visited.
 java.lang.String toString()
          Returns the command items string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TCommandItem

protected TCommandItem(java.lang.String value)
Initializes the TCommandItem with the specified value as a String instance.


TCommandItem

protected TCommandItem(java.lang.Object value)
Initializes the TCommandItem with the specified value as an Object instance.

Method Detail

takeVisitor

public abstract void takeVisitor(TCommandItemVisitor visitor)
Takes a TCommandItemVisitor and tells it that it wants to be visited.

Parameters:
the - TCommandItemVisitor that shall visit this instance.

toString

public java.lang.String toString()
Returns the command items string representation.

Overrides:
toString in class java.lang.Object

getValue

protected final java.lang.Object getValue()
Gets the internal value.

Returns:
internal value


Copyright (c) 2013 Software AG. All Rights Reserved.