org.gcube.common.mycontainer
Class ResourcePropertyHelper

java.lang.Object
  extended by org.gcube.common.mycontainer.ResourcePropertyHelper

public class ResourcePropertyHelper
extends Object

Simple XPath evaluator over resource property documents.

Author:
Fabio Simeoni

Constructor Summary
ResourcePropertyHelper(org.apache.axis.message.addressing.EndpointReferenceType reference)
          Creates an instance with a reference to a service instance.
 
Method Summary
 void addNamespace(String prefix, String uri)
          Declares a namespace for XPath evaluation.
 List<String> evaluate(String xpath)
          Evaluates an XPath expression and returns matching values as strings.
 NodeList evaluateForNodes(String xpath)
          Evaluates an XPath expression and returns matching values as a NodeList.
static org.oasis.wsrf.properties.QueryResourcePropertiesResponse propertiesOf(org.apache.axis.message.addressing.EndpointReferenceType reference)
           
 String show()
          Evaluates an XPath expression and returns matching values as strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourcePropertyHelper

public ResourcePropertyHelper(org.apache.axis.message.addressing.EndpointReferenceType reference)
Creates an instance with a reference to a service instance.

Parameters:
reference - the reference
Method Detail

addNamespace

public void addNamespace(String prefix,
                         String uri)
Declares a namespace for XPath evaluation.

Parameters:
prefix - the namespace prefix
uri - the namespace URI

show

public String show()
Evaluates an XPath expression and returns matching values as strings.

Parameters:
xpath - the expression
Returns:
the list matching values

evaluate

public List<String> evaluate(String xpath)
Evaluates an XPath expression and returns matching values as strings.

Parameters:
xpath - the expression
Returns:
the list matching values

evaluateForNodes

public NodeList evaluateForNodes(String xpath)
Evaluates an XPath expression and returns matching values as a NodeList.

Parameters:
xpath - the expression
Returns:
the list matching values

propertiesOf

public static org.oasis.wsrf.properties.QueryResourcePropertiesResponse propertiesOf(org.apache.axis.message.addressing.EndpointReferenceType reference)


Copyright © 2013. All Rights Reserved.