|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontotext.wsmo4j.examples.LocatorExample
public class LocatorExample
Title:
Description:
Copyright: Copyright (c) 2004-2005
Company: Ontotext Lab., Sirma AI
| Field Summary | |
|---|---|
static String |
FILE
|
| Fields inherited from interface org.wsmo.locator.Locator |
|---|
URI_MAPPING |
| Constructor Summary | |
|---|---|
LocatorExample(Map<String,File> map)
Constructor of InstanceLocator. |
|
| Method Summary | |
|---|---|
Set<org.wsmo.common.Entity> |
lookup(org.wsmo.common.Identifier id)
Method to retrieve Entity based on Identifier; It's supposed that the Entity is located in a file with name corresponding to it's namespace. |
org.wsmo.common.Entity |
lookup(org.wsmo.common.Identifier id,
Class clazz)
Method to retrieve Entity based on Identifier; It's supposed that the Entity is located in a file with name corresponding to it's namespace. |
static void |
main(String[] args)
Runs the example |
static void |
test(File wsmlFile,
String lacateIRI)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FILE
| Constructor Detail |
|---|
public LocatorExample(Map<String,File> map)
throws FileNotFoundException,
IOException,
org.wsmo.wsml.ParserException,
org.wsmo.common.exception.InvalidModelException
map - map containing the directory to be used
org.wsmo.common.exception.InvalidModelException
org.wsmo.wsml.ParserException
IOException
FileNotFoundException| Method Detail |
|---|
public org.wsmo.common.Entity lookup(org.wsmo.common.Identifier id,
Class clazz)
throws org.wsmo.common.exception.SynchronisationException
lookup in interface org.wsmo.locator.Locatorid - the id to search for
org.wsmo.common.exception.SynchronisationException
public Set<org.wsmo.common.Entity> lookup(org.wsmo.common.Identifier id)
throws org.wsmo.common.exception.SynchronisationException
lookup in interface org.wsmo.locator.Locatorid - the id to search for
org.wsmo.common.exception.SynchronisationExceptionpublic static void main(String[] args)
args[0] - - path to a wsml file, args[1] an identifier IRI of and instance
public static void test(File wsmlFile,
String lacateIRI)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||