com.facetmap.sql
Class SqlResource

java.lang.Object
  extended by com.facetmap.simple.SimpleResource
      extended by com.facetmap.sql.SqlResource
All Implemented Interfaces:
Resource

public class SqlResource
extends SimpleResource


Field Summary
protected  Resource sourceResource
           
 
Fields inherited from class com.facetmap.simple.SimpleResource
attributes, facetSpace, headings, id
 
Fields inherited from interface com.facetmap.Resource
LOCATION, TITLE
 
Constructor Summary
SqlResource(SqlFacetSpace facetSpace, Resource resource)
          Constructs SqlResource mapped to root headings.
 
Method Summary
 java.lang.String getAttribute(java.lang.Object key)
          Recognizes keys Resource.LOCATION and Resource.TITLE, as well as the string IDs of each facet in the map.
 SqlHeading getSqlHeading(int facetIndex)
           
 
Methods inherited from class com.facetmap.simple.SimpleResource
compoundHeading, getHeading, getHeadingCount, getId, setAttribute, setHeading, setHeading, setHeadings, setId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sourceResource

protected Resource sourceResource
Constructor Detail

SqlResource

public SqlResource(SqlFacetSpace facetSpace,
                   Resource resource)
Constructs SqlResource mapped to root headings. TODO bring more source here from SqlResourceManager.

Method Detail

getSqlHeading

public SqlHeading getSqlHeading(int facetIndex)

getAttribute

public java.lang.String getAttribute(java.lang.Object key)
Description copied from class: SimpleResource
Recognizes keys Resource.LOCATION and Resource.TITLE, as well as the string IDs of each facet in the map. Passing a facet ID to this function will return the title of the heading assigned in that facet, if any.

Specified by:
getAttribute in interface Resource
Overrides:
getAttribute in class SimpleResource