org.geotools.directory
Interface Reference<Member extends Reference>

All Known Subinterfaces:
CoverageReference, CoverageStoreReference, DatastoreReference, FeatureTypeReference, NullReference, StyleReference

public interface Reference<Member extends Reference>

All meta-data must be cached so that obtaining meta-data is non-blocking. If meta-data is incorrect then meta-data can be modified by the program. All changes to meta-data is persisted and will over-ride the information obtained by automatic generation of meta-data.

Author:
Jesse

Method Summary
 void addKeyword(java.lang.String keyword)
           
 java.lang.String[] clearKeywords()
           
 void dispose()
           
 org.geotools.geometry.jts.ReferencedEnvelope getBounds()
           
 java.lang.String getDescription()
           
 java.net.URI getID()
           
 java.util.Collection<Member> getMembers()
           
 java.lang.String getName()
           
 Reference getParent()
           
 Status getStatus()
           
 java.lang.String getTitle()
           
 java.net.URI getType()
          There is debate as to what this is.
 java.util.Collection<org.opengis.util.InternationalString> getWarningMessages()
          We need to determine if we want this.
<T> boolean
hasResource(java.lang.Class<T> desiredResourceType)
           
 java.lang.String[] keywords()
           
<T> T
obtainResource(java.lang.Class<T> desiredResourceType, org.geoapi.util.ProgressListener progressListener)
           
 boolean removeKeyword(java.lang.String keyword)
           
 void setBounds(org.geotools.geometry.jts.ReferencedEnvelope bounds)
           
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setTitle(java.lang.String title)
           
 

Method Detail

getParent

Reference getParent()

getID

java.net.URI getID()

getType

java.net.URI getType()
There is debate as to what this is. I am suggesting a URI that is essentially one of an enumeration of types. For example one URI could indicate vector data another could indicate raster data. I would use an enum but enums are not be expanded without recompiling everything that depends on it (at least that is what I understand).

Returns:
uri indicating the type of data the reference refers to.

hasResource

<T> boolean hasResource(java.lang.Class<T> desiredResourceType)

obtainResource

<T> T obtainResource(java.lang.Class<T> desiredResourceType,
                     org.geoapi.util.ProgressListener progressListener)

getMembers

java.util.Collection<Member> getMembers()

getName

java.lang.String getName()

getTitle

java.lang.String getTitle()

getDescription

java.lang.String getDescription()

keywords

java.lang.String[] keywords()

getBounds

org.geotools.geometry.jts.ReferencedEnvelope getBounds()

setName

void setName(java.lang.String name)

setTitle

void setTitle(java.lang.String title)

setDescription

void setDescription(java.lang.String description)

addKeyword

void addKeyword(java.lang.String keyword)

clearKeywords

java.lang.String[] clearKeywords()

removeKeyword

boolean removeKeyword(java.lang.String keyword)

setBounds

void setBounds(org.geotools.geometry.jts.ReferencedEnvelope bounds)

dispose

void dispose()

getStatus

Status getStatus()

getWarningMessages

java.util.Collection<org.opengis.util.InternationalString> getWarningMessages()
We need to determine if we want this. If we have a web or GUI interface onto the Directory this can be very useful