com.ibm.websphere.fabric.da.util
Class XPathSearchResult<T>

java.lang.Object
  extended by com.ibm.websphere.fabric.da.util.XPathSearchResult<T>

public final class XPathSearchResult<T>
extends java.lang.Object

Holds a single result (name and value) from an XPath search of an SDO. There are two types of values:

Version:
$Id: $
Author:
babka@us.ibm.com

Constructor Summary
XPathSearchResult(java.lang.String name, T value)
          Creates a result with the value specified
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
          Gives the name of the element that holds this object
 T getValue()
          Gives the value being held by this object
 int hashCode()
           
 boolean isDataObject()
          Indicates whether the value held is an SDO DataObject (i.e.
 boolean isList()
          Indicates whether the value held is a List (not a leaf object, but not a DataObject, either)
 boolean isString()
          Indicates whether the value held is a String (or any leaf value that has been converted to a String)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XPathSearchResult

public XPathSearchResult(java.lang.String name,
                         T value)
Creates a result with the value specified

Parameters:
name - The name of the element that holds this object
value - The value to be held
Method Detail

isString

public boolean isString()
Indicates whether the value held is a String (or any leaf value that has been converted to a String)

Returns:
true if the value is a String

isDataObject

public boolean isDataObject()
Indicates whether the value held is an SDO DataObject (i.e. not a leaf value)

Returns:
true if the value is a DataObject

isList

public boolean isList()
Indicates whether the value held is a List (not a leaf object, but not a DataObject, either)

Returns:
true if the value is a List

getValue

public T getValue()
Gives the value being held by this object

Returns:
The value being held. Note that the type is parameterized.

getName

public java.lang.String getName()
Gives the name of the element that holds this object

Returns:
The name of the element

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2002-2009 IBM. All Rights Reserved.