org.rddl
Interface Container

All Superinterfaces:
Namespace
All Known Implementing Classes:
AbstractContainer

public interface Container
extends Namespace

A Container extends the Namespace interface adding methods to contain URIs and to add resources to the collection.


Method Summary
 void addResource(Resource r)
          Add a resource to the collection
 Resource getResourceFromURI(java.lang.String uri)
          Lookup resource given URI.
 java.util.SortedMap getResourcesFromURIRange(java.lang.String uri0, java.lang.String uri1)
          Resources in a collection are ordered.
 
Methods inherited from interface org.rddl.Namespace
getResourceFromId, getResources, getResourcesFromHref, getResourcesFromIdRange, getResourcesFromLang, getResourcesFromNature, getResourcesFromPurpose, getResourcesFromTitle, getURI
 

Method Detail

getResourceFromURI

public Resource getResourceFromURI(java.lang.String uri)
Lookup resource given URI.
Parameters:
uri - The URI reference associated with a resource in the collection.
Returns:
A resource.

getResourcesFromURIRange

public java.util.SortedMap getResourcesFromURIRange(java.lang.String uri0,
                                                    java.lang.String uri1)
Resources in a collection are ordered. This method selects a set of resources associated with a given range of URI references.
Parameters:
uri0 - The starting URI of the range
uri1 - The ending URI of the range
Returns:
A collection of resources

addResource

public void addResource(Resource r)
Add a resource to the collection
Parameters:
r - The resource to add