org.greenstone.gs3client.data
Class CollectionData.MetaData
java.lang.Object
org.greenstone.gs3client.data.MetaData
org.greenstone.gs3client.data.CollectionData.MetaData
- Enclosing class:
- CollectionData
public static class CollectionData.MetaData
- extends MetaData
Static inner class MetaData: can import it into other files as
"import gs3client.CollectionData.MetaData;"
In this way, can use it as if it were a regular class (a.o.t. an inner
class). That is, don't need to prepend the outer-classname if imported
like this.
gs3client.MetaData, from which this class inherits, has name, value and
bodyText fields. This class adds an additional language field that is
sometimes present in a Collection's metadata information. So we include
the language as a member variable here in case we ever need it.
Constructor Summary |
CollectionData.MetaData(org.w3c.dom.Element metadataTag)
Given a <metadata></metadata> element, constructs a
CollectionData sets its members using info extracted from it |
Method Summary |
java.lang.String |
show()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
language
public final java.lang.String language
CollectionData.MetaData
public CollectionData.MetaData(org.w3c.dom.Element metadataTag)
- Given a <metadata></metadata> element, constructs a
CollectionData sets its members using info extracted from it
- Parameters:
metadataTag
- is the the <metadata></metadata> element
whose data is used to construct this MetaData object.
show
public java.lang.String show()
- Overrides:
show
in class MetaData
- Returns:
- a String displaying the contents of this MetaData object.
Useful for debugging purposes.