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.
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier | Constructor and Description |
---|---|
protected |
TMediaType(java.lang.String description)
Protected Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final TMediaType TEXTHTML
e.g. {?serialization method="xml" media-type="text/html"?}
public static final TMediaType TEXTPLAIN
e.g. {?serialization method="xml" media-type="text/plain"?}
protected TMediaType(java.lang.String description)
description
- the description for the method parameterpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- - the reference object with which to compare.public int hashCode()
hashCode
in class java.lang.Object
Copyright (c) 2017 Software AG. All Rights Reserved.