net.sf.freecol.common.resources
Class Resource

java.lang.Object
  extended by net.sf.freecol.common.resources.Resource
Direct Known Subclasses:
ColorResource, ImageResource, SZAResource, VideoResource

public abstract class Resource
extends java.lang.Object

Represents a resource that either has been or can be loaded using a URI. There can only be one instance of Resource having the same (as in URI's equals, not the identity) URI. Instances are created using ResourceManager#createResource(URI).


Method Summary
 java.net.URI getResourceLocator()
          Returns the URI used for loading the resource.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResourceLocator

public java.net.URI getResourceLocator()
Returns the URI used for loading the resource.

Returns:
The URI.