PenProfile 2.x

com.livescribe.i18n
Class Resource

java.lang.Object
  extended by com.livescribe.i18n.Resource
Direct Known Subclasses:
AudibleResource, DisplayableResource

public abstract class Resource
extends Object

This class defines a resource that has been localized for a particular Locale.

Since:
0.4
See Also:
Locale

Field Summary
protected  String id
          The resource ID.
 
Constructor Summary
protected Resource(String id)
          Creates a new resource having the specified ID.
 
Method Summary
 String getId()
          Gets resource ID.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected String id
The resource ID.

Constructor Detail

Resource

protected Resource(String id)
Creates a new resource having the specified ID.

Parameters:
id - the resource ID
Method Detail

getId

public String getId()
Gets resource ID. This serves as an handle to the encapsulated localized content.

Returns:
the resource ID.

toString

public String toString()
Returns a string representation of this object. This implementation returns the resource ID.

Overrides:
toString in class Object
Returns:
the resource ID.

PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.