com.metamatrix.connector.xml.base
Class StringBackedValueReference

java.lang.Object
  extended by com.metamatrix.connector.xml.base.StringBackedValueReference
All Implemented Interfaces:
LargeTextValueReference

public class StringBackedValueReference
extends java.lang.Object
implements LargeTextValueReference


Constructor Summary
protected StringBackedValueReference(java.lang.String str)
           
 
Method Summary
 java.lang.String getContentAsString()
          Obtain the content held in the reference as a string.
 long getSize()
          Get total size of the object.
 java.lang.Object getValue()
          Obtain the actual original value that is held by the reference.
 boolean isBinary()
          Determine whether this is a blob or clob type object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBackedValueReference

protected StringBackedValueReference(java.lang.String str)
Method Detail

getValue

public java.lang.Object getValue()
Description copied from interface: LargeTextValueReference
Obtain the actual original value that is held by the reference.

Specified by:
getValue in interface LargeTextValueReference
Returns:
The original large object from the source

getSize

public long getSize()
Description copied from interface: LargeTextValueReference
Get total size of the object. This is expected to potentially take a long time if the entire object must be scanned to determine the size.

Specified by:
getSize in interface LargeTextValueReference
Returns:
Size of the object in either bytes or characters, as appropriate

getContentAsString

public java.lang.String getContentAsString()
Description copied from interface: LargeTextValueReference
Obtain the content held in the reference as a string.

Specified by:
getContentAsString in interface LargeTextValueReference
Returns:
String representation of reference content.

isBinary

public boolean isBinary()
Description copied from interface: LargeTextValueReference
Determine whether this is a blob or clob type object.

Specified by:
isBinary in interface LargeTextValueReference
Returns:
True if binary, false if character data


Copyright © 2009. All Rights Reserved.