|
|||||||||
| 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)
NamespacegetResourcesFromPurpose in interface Namespaceorg.rddl.Namespacepurpose - The purpose of a RDDL resource is specified by an xlink:arcrolepublic java.util.SortedMap getResourcesFromHref(java.lang.String href)
Namespacexlink:hrefgetResourcesFromHref in interface Namespaceorg.rddl.Namespacehref - The xlink:href URIxlink:hrefpublic java.util.SortedMap getResourcesFromNature(java.lang.String role)
NamespacegetResourcesFromNature in interface Namespaceorg.rddl.Namespacerole - The RDDL nature is specified by the xlink:rolejava.util.SortedMap the resources having the specified rolepublic java.util.SortedMap getResourcesFromTitle(java.lang.String title)
Namespacexlink:titlegetResourcesFromTitle in interface Namespaceorg.rddl.Namespacetitle - The xlink:titlepublic java.util.SortedMap getResourcesFromLang(java.lang.String lang)
Namespacexml:langgetResourcesFromLang in interface Namespaceorg.rddl.Namespacelang - The xml:langpublic Resource getResourceFromId(java.lang.String id)
Namespaceid.getResourceFromId in interface Namespaceorg.rddl.Namespaceid - The idpublic Resource getResourceFromURI(java.lang.String uri)
ContainergetResourceFromURI in interface Containerorg.rddl.Containeruri - The URI reference associated with a resource in the collection.
public java.util.SortedMap getResourcesFromIdRange(java.lang.String id0,
java.lang.String id1)
NamespaceSelect 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 Namespaceorg.rddl.Namespaceid0 - The start of the rangeid1 - The end of the range
public java.util.SortedMap getResourcesFromURIRange(java.lang.String uri0,
java.lang.String uri1)
ContainergetResourcesFromURIRange in interface Containerorg.rddl.Containeruri0 - The starting URI of the rangeuri1 - The ending URI of the rangepublic java.util.Iterator getResources()
NamespaceIterator over all the resources contained in the namespace.getResources in interface Namespaceorg.rddl.Namespacepublic void addResource(Resource r)
ContaineraddResource in interface Containerorg.rddl.Containerr - The resource to addpublic java.lang.String getURI()
NamespacegetURI in interface Namespaceorg.rddl.Namespace
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||