|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.rddl.helpers.AbstractContainer
Field Summary | |
protected java.util.TreeMap |
arcroleMap
|
protected java.lang.String |
baseURI
|
protected java.util.TreeMap |
hrefMap
|
protected java.util.TreeMap |
langMap
|
protected java.util.TreeMap |
roleMap
|
protected java.util.TreeMap |
titleMap
|
protected java.util.TreeMap |
uriMap
|
Constructor Summary | |
AbstractContainer(java.lang.String baseURI)
|
Method Summary | |
void |
addResource(Resource r)
Add a resource to the collection |
Resource |
getResourceFromId(java.lang.String id)
Selects a resource given a particular id . |
Resource |
getResourceFromURI(java.lang.String uri)
Lookup resource given URI. |
java.util.Iterator |
getResources()
Obtain an Iterator over all the resources contained in the namespace. |
java.util.SortedMap |
getResourcesFromHref(java.lang.String href)
Select a set of resources given the destination xlink:href |
java.util.SortedMap |
getResourcesFromIdRange(java.lang.String id0,
java.lang.String id1)
Select a set of resources given a range of ids . |
java.util.SortedMap |
getResourcesFromLang(java.lang.String lang)
Select a set of resources having a specified xml:lang |
java.util.SortedMap |
getResourcesFromNature(java.lang.String role)
A resource is qualified by its Nature. |
java.util.SortedMap |
getResourcesFromPurpose(java.lang.String arcrole)
A resource is qualified by its Purpose. |
java.util.SortedMap |
getResourcesFromTitle(java.lang.String title)
Select a set of resources having a specified xlink:title |
java.util.SortedMap |
getResourcesFromURIRange(java.lang.String uri0,
java.lang.String uri1)
Resources in a collection are ordered. |
java.lang.String |
getURI()
The namespace URI for the namespace. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String baseURI
protected java.util.TreeMap arcroleMap
protected java.util.TreeMap hrefMap
protected java.util.TreeMap roleMap
protected java.util.TreeMap titleMap
protected java.util.TreeMap langMap
protected java.util.TreeMap uriMap
Constructor Detail |
public AbstractContainer(java.lang.String baseURI)
Method Detail |
public java.util.SortedMap getResourcesFromPurpose(java.lang.String arcrole)
Namespace
getResourcesFromPurpose
in interface Namespace
org.rddl.Namespace
purpose
- The purpose
of a RDDL resource is specified by an xlink:arcrole
public java.util.SortedMap getResourcesFromHref(java.lang.String href)
Namespace
xlink:href
getResourcesFromHref
in interface Namespace
org.rddl.Namespace
href
- The xlink:href
URIxlink:href
public java.util.SortedMap getResourcesFromNature(java.lang.String role)
Namespace
getResourcesFromNature
in interface Namespace
org.rddl.Namespace
role
- The RDDL nature
is specified by the xlink:rolejava.util.SortedMap
the resources having the specified role
public java.util.SortedMap getResourcesFromTitle(java.lang.String title)
Namespace
xlink:title
getResourcesFromTitle
in interface Namespace
org.rddl.Namespace
title
- The xlink:title
public java.util.SortedMap getResourcesFromLang(java.lang.String lang)
Namespace
xml:lang
getResourcesFromLang
in interface Namespace
org.rddl.Namespace
lang
- The xml:lang
public Resource getResourceFromId(java.lang.String id)
Namespace
id
.getResourceFromId
in interface Namespace
org.rddl.Namespace
id
- The id
public Resource getResourceFromURI(java.lang.String uri)
Container
getResourceFromURI
in interface Container
org.rddl.Container
uri
- The URI reference associated with a resource in the collection.public java.util.SortedMap getResourcesFromIdRange(java.lang.String id0, java.lang.String id1)
Namespace
Select a set of resources given a range of ids
.
The ids
are specified in alphanumeric order.
The idiom: "foo","foo/0" is inclusive.
getResourcesFromIdRange
in interface Namespace
org.rddl.Namespace
id0
- The start of the rangeid1
- The end of the rangepublic java.util.SortedMap getResourcesFromURIRange(java.lang.String uri0, java.lang.String uri1)
Container
getResourcesFromURIRange
in interface Container
org.rddl.Container
uri0
- The starting URI of the rangeuri1
- The ending URI of the rangepublic java.util.Iterator getResources()
Namespace
Iterator
over all the resources contained in the namespace.getResources
in interface Namespace
org.rddl.Namespace
public void addResource(Resource r)
Container
addResource
in interface Container
org.rddl.Container
r
- The resource to addpublic java.lang.String getURI()
Namespace
getURI
in interface Namespace
org.rddl.Namespace
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |