|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.shared.MobyResourceRef
public class MobyResourceRef
A container pointing to metadata available from a BioMoby registry. The metadata describe entities that were registered in the registry (such as Service instances, or data types), but they may include additional attributes. This class does not contain resource metadata themselves but a location where they are, and their content type.
Constructor Summary | |
---|---|
MobyResourceRef(String resourceName,
URL location,
String contentType)
Normal constructor. |
Method Summary | |
---|---|
String |
getResourceContentType()
Deprecated. Biomoby registry never gives the content type back. Therefore, this method does not have anything reasonable to return. |
URL |
getResourceLocation()
Return resource location. |
String |
getResourceName()
Return resource name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MobyResourceRef(String resourceName, URL location, String contentType)
resourceName
- is an ontology name (must be one of these:
Central.SERVICE_TYPES_RESOURCE_NAME
, Central.DATA_TYPES_RESOURCE_NAME
, Central.NAMESPACES_RESOURCE_NAME
, Central.SERVICE_INSTANCES_RESOURCE_NAME
, Central.FULL_RESOURCE_NAME
)location
- where this resource can be fetched fromcontentType
- a MIME type of the resource; we know that
the resources are RDF documents - but they made be compressed -
that's why we have this type here (default is
"application/rdf+xml")Method Detail |
---|
public String getResourceName()
public URL getResourceLocation()
public String getResourceContentType()
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |