org.greenstone.gs3client.data
Class MetaData

java.lang.Object
  extended by org.greenstone.gs3client.data.MetaData
Direct Known Subclasses:
CollectionData.MetaData

public class MetaData
extends java.lang.Object

Stores the name, value and value of body textnode of a simple <metadata> element. <metadata name="str" value="str">bodyvalue</metadata>

Author:
ak19

Field Summary
 java.lang.String bodyText
          Text node content of a <metadata> - the textnode may be empty, in which case this will be set to ""
 java.lang.String name
          Name attribute of a <metadata>
 java.lang.String value
          Value attribute of a <metadata> - this may or may not be there
 
Constructor Summary
MetaData(org.w3c.dom.Element metadataTag)
          Constructor that creates a MetaData object from a <metadata></metadata> element by setting its members fields using info extracted from the element.
 
Method Summary
 java.lang.String show()
           
 java.lang.String toString()
           
 
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 attribute of a <metadata>


value

public final java.lang.String value
Value attribute of a <metadata> - this may or may not be there


bodyText

public final java.lang.String bodyText
Text node content of a <metadata> - the textnode may be empty, in which case this will be set to ""

Constructor Detail

MetaData

public MetaData(org.w3c.dom.Element metadataTag)
Constructor that creates a MetaData object from a <metadata></metadata> element by setting its members fields using info extracted from the element.

Parameters:
metadataTag - is the <metadata> element whose data is used to construct this MetaData object
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
the name of this Metadata object. Useful when adding MetaData objects to a JList or JCombobox

show

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