se.kb.oai.ore
Class Metadata

java.lang.Object
  extended by se.kb.oai.ore.Metadata

public class Metadata
extends Object

Class that represents a metadata element that can be set for an Aggregation or an AggreagatedResource. Only metadata from the Dublin Core elements (DC) namespace or the Dublin Core terms (DCTERMS) namespace can be created.

Author:
Oskar Grenholm, National Library of Sweden

Nested Class Summary
static class Metadata.Namespace
           
 
Constructor Summary
Metadata(Metadata.Namespace ns, String name, String value)
          Create a Metadata.
 
Method Summary
 QName getName()
          Get the qualified name of this metadata.
static QName getName(Metadata.Namespace ns, String name)
          Helper method that creates a qualified name with the given namespace and name.
 String getValue()
          Get the value of this metadata.
 void setValue(String value)
          Set the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Metadata

public Metadata(Metadata.Namespace ns,
                String name,
                String value)
Create a Metadata.

Parameters:
ns - a namespace, can only be DC or DCTERMS
name - the name of the metadata element
value - the value of the metadata
Method Detail

getName

public QName getName()
Get the qualified name of this metadata.

Returns:
the name

getValue

public String getValue()
Get the value of this metadata.

Returns:
the value

setValue

public void setValue(String value)
Set the value.

Parameters:
value - the value

getName

public static QName getName(Metadata.Namespace ns,
                            String name)
Helper method that creates a qualified name with the given namespace and name.

Parameters:
ns - a namespace, can only be DC or DCTERMS
name - the name
Returns:
a qualified name


Copyright © 2008. All Rights Reserved.