Esri Geoportal Server
1.0

com.esri.gpt.server.csw.provider.local
Class DiscoveryAdapter

java.lang.Object
  extended by com.esri.gpt.server.csw.provider.local.DiscoveryAdapter
Direct Known Subclasses:
QueryEvaluator, QueryFilterParser, QueryResponse, SortByParser

public class DiscoveryAdapter
extends Object

Super-class for adapting CSW operation components to the local discovery model.


Constructor Summary
DiscoveryAdapter(OperationContext context)
          Constructs with a supplied operation context
 
Method Summary
 DiscoveryContext getDiscoveryContext()
          Gets the active discovery context.
 Discoverable parsePropertyName(Node parent, XPath xpath)
          Parses a parent node for an associated property name (ogc:PropertyName).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryAdapter

public DiscoveryAdapter(OperationContext context)
Constructs with a supplied operation context

Parameters:
context - the operation context
Method Detail

getDiscoveryContext

public DiscoveryContext getDiscoveryContext()
Gets the active discovery context.

Returns:
the active discovery context

parsePropertyName

public Discoverable parsePropertyName(Node parent,
                                      XPath xpath)
                               throws OwsException,
                                      XPathExpressionException
Parses a parent node for an associated property name (ogc:PropertyName).

Parameters:
parent - the parent of the property to locate
xpath - an XPath to enable queries (properly configured with name spaces)
Returns:
a discoverable associated with the property name
Throws:
OwsException - if validation fails
XPathExpressionException - if an XPath related exception occurs

Esri Geoportal Server
1.0

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