|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.kb.oai.ore.impl.FactoryBase
public abstract class FactoryBase
Abstract base class for the different ResourceMapFactory
implementations.
Constructor Summary | |
---|---|
FactoryBase()
|
Method Summary | |
---|---|
abstract ResourceMap |
getResourceMap(Element root)
Parse the XML and create a ResourceMap from it. |
ResourceMap |
getResourceMap(String url)
Parse the content of the URL and create a ResourceMap
from it. |
ResourceMap |
getResourceMap(URL url)
Parse the content of the URL and create a ResourceMap
from it. |
ResourceMap |
newResourceMap(String uri)
Create a new ResourceMap with this id. |
ResourceMap |
newResourceMap(URI uri)
Create a new ResourceMap with this id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FactoryBase()
Method Detail |
---|
public ResourceMap newResourceMap(String uri) throws URISyntaxException
ResourceMapFactory
ResourceMap
with this id.
newResourceMap
in interface ResourceMapFactory
uri
- the id
URISyntaxException
public ResourceMap newResourceMap(URI uri)
ResourceMapFactory
ResourceMap
with this id.
newResourceMap
in interface ResourceMapFactory
uri
- the id
public ResourceMap getResourceMap(URL url) throws OAIException
ResourceMapFactory
ResourceMap
from it.
getResourceMap
in interface ResourceMapFactory
url
- a URL
OAIException
public ResourceMap getResourceMap(String url) throws OAIException
ResourceMapFactory
ResourceMap
from it.
getResourceMap
in interface ResourceMapFactory
url
- a URL
OAIException
public abstract ResourceMap getResourceMap(Element root) throws OAIException
ResourceMapFactory
ResourceMap
from it.
getResourceMap
in interface ResourceMapFactory
root
- a XML element
OAIException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |