com.softwareag.ino.sxs
Class Result

java.lang.Object
  extended by com.softwareag.ino.sxs.Result

public class Result
extends java.lang.Object

Result class for operations. Was added for SxsXMLXQuery but may be used for other possible future operations.


Constructor Summary
Result()
          Initialize an empty but valid result set.
 
Method Summary
 byte[] getBinaryValue()
          Get the result value as a binary (byte array).
 java.lang.String getMediaType()
          Get the media type of the result.
 java.lang.String getStringValue()
          Get the result value as a string.
 void initialize()
          Initialize an empty but valid result set.
 boolean isBinary()
          Is this a binary value?
 boolean isString()
          Is this a string value?
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Result

public Result()
Initialize an empty but valid result set.

Method Detail

initialize

public void initialize()
Initialize an empty but valid result set.


getMediaType

public java.lang.String getMediaType()
Get the media type of the result.

Returns:
media type or an empty string

isString

public boolean isString()
Is this a string value?

Returns:
true if string, false otherwise

getStringValue

public java.lang.String getStringValue()
Get the result value as a string.

Returns:
the string value or an empty string

isBinary

public boolean isBinary()
Is this a binary value?

Returns:
true if binary, false otherwise

getBinaryValue

public byte[] getBinaryValue()
Get the result value as a binary (byte array).

Returns:
the binary value or a zero length byte array