se.kb.oai.ore
Class ResourceMap

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

public class ResourceMap
extends Object

A resource map is a description of an Aggregation according to the OAI-ORE data model. ResourceMaps can be serialized to a machine readable format, see ResourceMapSerializer. This class will consist of the Aggregation it describes and some metadata concerning the resource map itself.

Author:
Oskar Grenholm, National Library of Sweden

Constructor Summary
ResourceMap(String id)
          Create an ResourceMap with the specified id.
ResourceMap(URI id)
          Create an ResourceMap with the specified id.
 
Method Summary
 Aggregation getAggregation()
          Get the aggregation that this resource map describes.
 Date getCreated()
          Get the creation date of this resource map.
 String getCreator()
          Get the creator of this resource map.
 URI getId()
          Get the id.
 Date getModified()
          Get the modification date of this resource map.
 String getRights()
          Get the rights of this resource map.
 void setAggregation(Aggregation aggregation)
          Set the aggregation that this resource map describes.
 void setCreated(Date created)
          Set the creation date of this resource map.
 void setCreator(String creator)
          Set the creator of this resource map.
 void setId(URI id)
          Set the id.
 void setModified(Date modified)
          Set the modification date of this resource map.
 void setRights(String rights)
          Set the rights of this resource map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceMap

public ResourceMap(String id)
            throws URISyntaxException
Create an ResourceMap with the specified id.

Parameters:
id - the id
Throws:
URISyntaxException

ResourceMap

public ResourceMap(URI id)
Create an ResourceMap with the specified id.

Parameters:
id - the id
Method Detail

getId

public URI getId()
Get the id.

Returns:
the id

setId

public void setId(URI id)
Set the id.

Parameters:
id - the id

getCreator

public String getCreator()
Get the creator of this resource map. (Note: NOT the creator of the aggregation or the resources.)

Returns:
the creator

setCreator

public void setCreator(String creator)
Set the creator of this resource map. (Note: NOT the creator of the aggregation or the resources.)

Parameters:
creator - the creator

getRights

public String getRights()
Get the rights of this resource map. (Note: NOT the rights of the aggregation or the resources.)

Returns:
the rights

setRights

public void setRights(String rights)
Set the rights of this resource map. (Note: NOT the rights of the aggregation or the resources.)

Parameters:
rights - the rights

getCreated

public Date getCreated()
Get the creation date of this resource map. (Note: NOT the creation date of the aggregation or the resources.)

Returns:
the creation date

setCreated

public void setCreated(Date created)
Set the creation date of this resource map. (Note: NOT the creation date of the aggregation or the resources.)

Parameters:
created - the creation date

getModified

public Date getModified()
Get the modification date of this resource map. (Note: NOT the modification date of the aggregation or the resources.)

Returns:
the modification date

setModified

public void setModified(Date modified)
Set the modification date of this resource map. (Note: NOT the modification date of the aggregation or the resources.)

Parameters:
modified - he modification date

getAggregation

public Aggregation getAggregation()
Get the aggregation that this resource map describes.

Returns:
the aggregation

setAggregation

public void setAggregation(Aggregation aggregation)
Set the aggregation that this resource map describes.

Parameters:
aggregation - the aggregation


Copyright © 2008. All Rights Reserved.