edu.wisc.trace.urcsdk.client.resources
Class TextResource

java.lang.Object
  extended by edu.wisc.trace.urcsdk.client.resources.AbstractResource
      extended by edu.wisc.trace.urcsdk.client.resources.TextResource
All Implemented Interfaces:
IResource

public class TextResource
extends AbstractResource

TextResource is the IResource implementation for representing Text-based resources in any language.

Version:
$Revision: 1.21 $
Author:
Andrew Martin, Trace R&D Center Created on: Sep 8, 2004

Field Summary
 
Fields inherited from class edu.wisc.trace.urcsdk.client.resources.AbstractResource
elementRef, operationRef, properties, value, valueRef
 
Fields inherited from interface edu.wisc.trace.urcsdk.client.resources.IResource
EMPTY_RESOURCE
 
Constructor Summary
TextResource(java.lang.String text, ElementRef elementRef, java.lang.String valueRef, java.lang.String operationRef, Constants.ResourceRole role, java.util.List<java.lang.String> langs)
          Creates a new TextResource instance.
 
Method Summary
 java.lang.String toString()
          toString returns the string representation of this TextResource.
 
Methods inherited from class edu.wisc.trace.urcsdk.client.resources.AbstractResource
addProperty, addProperty, equals, getElementRef, getFormat, getLangs, getOperationRef, getPropertiesMap, getProperty, getRole, getType, getValue, getValueRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextResource

public TextResource(java.lang.String text,
                    ElementRef elementRef,
                    java.lang.String valueRef,
                    java.lang.String operationRef,
                    Constants.ResourceRole role,
                    java.util.List<java.lang.String> langs)
Creates a new TextResource instance.

Parameters:
text - a String value; the actual text this TextResource represents.
elementRef - a ElementRef object; the element this TextResource describes.
valueRef - a String value; the valueRef of this TextResource.
operationRef - a String value; the operationRef of this TextResource.
role - a String value; the role this resource describes.
langs - a list of all languages this resource supports.
Method Detail

toString

public java.lang.String toString()
toString returns the string representation of this TextResource. In the case of the TextResource, it returns the value of the text.

Specified by:
toString in interface IResource
Specified by:
toString in class AbstractResource
Returns:
a String value


Copyright © 2006 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.