|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceMapFactory
A ResourceMapFactory
will be used to create a ResourceMap
.
It can either be a totally new ResourceMap
or one that is parsed
from an existing serialization of a ResourceMap
. Different
implementations of this interface will handle different serialization formats.
At the moment the Open Archive Initiative describes two possible formats:
Method Summary | |
---|---|
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. |
Method Detail |
---|
ResourceMap newResourceMap(String uri) throws URISyntaxException
ResourceMap
with this id.
uri
- the id
URISyntaxException
ResourceMap newResourceMap(URI uri)
ResourceMap
with this id.
uri
- the id
ResourceMap getResourceMap(URL url) throws OAIException
ResourceMap
from it.
url
- a URL
OAIException
ResourceMap getResourceMap(String url) throws OAIException
ResourceMap
from it.
url
- a URL
OAIException
ResourceMap getResourceMap(Element root) throws OAIException
ResourceMap
from it.
root
- a XML element
OAIException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |