|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for objects used by the ProtegeOWLParser to convert logical URIs to physical URLs. This is used to redirect imports and file loading in general, and to determine the file to save a model into.
Method Summary | |
URL |
getPhysicalURL(URI uri)
Converts a logical URI into a physical URL. |
String |
getPreferredNamespacePrefix(String namespace)
Gets the prefix that should be used for a namespace if no other prefix has been defined yet. |
String |
getRelativePhysicalFileName(URI uri)
If the result of getPhysicalURL() is internally derived from a
relative file, then this returns the relative file name. |
boolean |
isEditableImport(URI uri)
Checks if a given import is editable for the current OWLModel. |
void |
setEditableImport(URI uri,
boolean value)
|
void |
setPhysicalURL(URI uri,
String relativeFileName)
Sets the physical URL of an URI to point to a relative file. |
void |
setPhysicalURL(URI uri,
URL physicalURL)
Sets the physical URL of an URI. |
Method Detail |
public URL getPhysicalURL(URI uri)
uri
- the logical URI
public String getRelativePhysicalFileName(URI uri)
getPhysicalURL()
is internally derived from a
relative file, then this returns the relative file name.
uri
- the logical URI
public String getPreferredNamespacePrefix(String namespace)
namespace
- the namespace to get a prefix for (including '#')
public boolean isEditableImport(URI uri)
uri
- the URI of the import (usually the name of the associated TripleStore)
public void setEditableImport(URI uri, boolean value)
public void setPhysicalURL(URI uri, URL physicalURL)
uri
- the URI to set the URL ofphysicalURL
- the new physcial URL or null to reset this URIpublic void setPhysicalURL(URI uri, String relativeFileName)
uri
- the URI to set the URL ofrelativeFileName
- the name of the file (not null)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |