com.softwareag.tamino.db.api.accessor
Class TMediaType

java.lang.Object
  extended by com.softwareag.tamino.db.api.accessor.TMediaType

public final class TMediaType
extends java.lang.Object

TMediaType represents the media-type parameter for a serialization specification. It provides type safe constant objects representing the possible settings for the media-type parameter.

Version:
$Revision: 1.2 $
Author:
Vikram.Shinde@softwareag.com

Field Summary
static TMediaType TEXTHTML
          Constant that represents media-type=text/html in serialization specification.
static TMediaType TEXTPLAIN
          Constant that represents media-type=text/plain in serialization specification.
 
Constructor Summary
protected TMediaType(java.lang.String description)
          Protected Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 int hashCode()
          Returns a hash code value for the object.
 java.lang.String toString()
          Returns the string representation of a TOutputMethod object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TEXTHTML

public static final TMediaType TEXTHTML
Constant that represents media-type=text/html in serialization specification.

e.g. {?serialization method="xml" media-type="text/html"?}


TEXTPLAIN

public static final TMediaType TEXTPLAIN
Constant that represents media-type=text/plain in serialization specification.

e.g. {?serialization method="xml" media-type="text/plain"?}

Constructor Detail

TMediaType

protected TMediaType(java.lang.String description)
Protected Constructor.

Parameters:
description - the description for the method parameter
Method Detail

toString

public java.lang.String toString()
Returns the string representation of a TOutputMethod object.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of the media-type parameter.

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. Overrides the Object.equals method.

Overrides:
equals in class java.lang.Object
Parameters:
obj - - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable. Overrides the Object.hashCode method.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.


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