se.kb.oai.ore.impl
Class AtomFactory

java.lang.Object
  extended by se.kb.oai.ore.impl.FactoryBase
      extended by se.kb.oai.ore.impl.AtomFactory
All Implemented Interfaces:
ResourceMapFactory

public class AtomFactory
extends FactoryBase

The AtomFactory class implements the ResourceMapFactory interface to provide the functionality to parse Atom feeds and turn them into ResourceMap objects.

Author:
Oskar Grenholm, National Library of Sweden

Constructor Summary
AtomFactory()
           
 
Method Summary
 ResourceMap getResourceMap(Element feed)
          Parse the XML and create a ResourceMap from it.
 
Methods inherited from class se.kb.oai.ore.impl.FactoryBase
getResourceMap, getResourceMap, newResourceMap, newResourceMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomFactory

public AtomFactory()
Method Detail

getResourceMap

public ResourceMap getResourceMap(Element feed)
                           throws OAIException
Description copied from interface: ResourceMapFactory
Parse the XML and create a ResourceMap from it.

Specified by:
getResourceMap in interface ResourceMapFactory
Specified by:
getResourceMap in class FactoryBase
Parameters:
feed - a XML element
Returns:
a resource map representing the content of the XML
Throws:
OAIException


Copyright © 2008. All Rights Reserved.