org.greenstone.gs3client.data
Class CollectionData.ServiceData

java.lang.Object
  extended by org.greenstone.gs3client.data.CollectionData.ServiceData
Enclosing class:
CollectionData

public static class CollectionData.ServiceData
extends java.lang.Object

Only the name and type of a <service></service> element is stored, since this is all the service data available inside a collection's response message to a describe request. And we are here dealing with just a CollectionData's service information (hence it's an inner class: CollectionData.ServiceData).


Field Summary
 java.lang.String name
          name of the Greenstone service represented by this ServiceData object
 java.lang.String type
          type attribute of <service></service> element.
 
Constructor Summary
CollectionData.ServiceData(org.w3c.dom.Element serviceTag)
          Gets a <service></service> element and sets its members using info extracted from it
 
Method Summary
 java.lang.String show()
           
 java.lang.String toString()
          Useful when adding ServiceData objects to a JList or JCombobox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final java.lang.String name
name of the Greenstone service represented by this ServiceData object


type

public final java.lang.String type
type attribute of <service></service> element. type is optional and therefore can be empty str.

Constructor Detail

CollectionData.ServiceData

public CollectionData.ServiceData(org.w3c.dom.Element serviceTag)
Gets a <service></service> element and sets its members using info extracted from it

Parameters:
serviceTag - is the <service></service> element from which this ServiceData object is constructed.
Method Detail

toString

public java.lang.String toString()
Useful when adding ServiceData objects to a JList or JCombobox

Overrides:
toString in class java.lang.Object
Returns:
the name of this ServiceData, this corresponds to the name of the Greenstone Service that this object represents.

show

public java.lang.String show()
Returns:
a String displaying the contents of this ServiceData object. Useful for debugging purposes.