Esri Geoportal Server
1.0

com.esri.gpt.catalog.discovery
Class Discoverable

java.lang.Object
  extended by com.esri.gpt.catalog.discovery.DiscoveryComponent
      extended by com.esri.gpt.catalog.discovery.Discoverable
Direct Known Subclasses:
Returnable, Sortable

public class Discoverable
extends DiscoveryComponent

Represents a property that can be discovered through query.


Constructor Summary
Discoverable(Discoverable objectToBaseOn)
          Constructs a discoverable based upon another.
Discoverable(String clientName)
          Constructs with supplied client name.
 
Method Summary
 Sortable asSortable()
          Create a sortable property base upon this discoverable.
 void echo(StringBuffer sb)
          Appends property information for the component to a buffer.
 void echo(StringBuffer sb, int depth)
          Appends property information for the component to a buffer.
 PropertyMeaning getMeaning()
          Gets the meaning behind the property.
 IStoreable getStorable()
          Gets the associated component within the underlying data store.
 void setMeaning(PropertyMeaning meaning)
          Sets the meaning behind the property.
 void setStoreable(IStoreable component)
          Sets the associated component within the underlying data store.
 
Methods inherited from class com.esri.gpt.catalog.discovery.DiscoveryComponent
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Discoverable

public Discoverable(String clientName)
Constructs with supplied client name.

Parameters:
clientName - the name recognized by the client

Discoverable

public Discoverable(Discoverable objectToBaseOn)
Constructs a discoverable based upon another.

Parameters:
objectToBaseOn - the discoverable that serves as the base
Method Detail

getStorable

public IStoreable getStorable()
Gets the associated component within the underlying data store.

Returns:
the underlying data store component

setStoreable

public void setStoreable(IStoreable component)
Sets the associated component within the underlying data store.

Parameters:
component - the underlying data store component

getMeaning

public PropertyMeaning getMeaning()
Gets the meaning behind the property.

Returns:
the underlying meaning

setMeaning

public void setMeaning(PropertyMeaning meaning)
Sets the meaning behind the property.

Parameters:
meaning - the underlying meaning

asSortable

public Sortable asSortable()
Create a sortable property base upon this discoverable.

Returns:
the new sortable.

echo

public void echo(StringBuffer sb)
Appends property information for the component to a buffer.

Overrides:
echo in class DiscoveryComponent
Parameters:
sb - the buffer to use when appending information

echo

public void echo(StringBuffer sb,
                 int depth)
Appends property information for the component to a buffer.

Parameters:
sb - the buffer to use when appending information
depth - the depth of the parent clause

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.