|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.tm.TopicMapImporter
public class TopicMapImporter
Defines a simple importer for providing a TM4J TopicMap from either an LTM or XTM source, using the memory backend.
TopicMap,
TopicMapProvider| Field Summary | |
|---|---|
static String |
defaultCatalogPath
The default relative pathname for the XML Catalog file. |
static String |
idPrefix
IDGenerator prefix for all auto-created IDs. |
static String |
PROVIDER_CLASS
The classname for the provider, the TM4J memory provider backend. |
static boolean |
useCatalogResolver
When true (the default), uses an XML Catalog resolver for entity resolution. |
static boolean |
useCeryleLTMProcessor
When true, uses Ceryle's LTM processor rather than TM4J's. |
| Constructor Summary | |
|---|---|
TopicMapImporter()
Default constructor. |
|
TopicMapImporter(IDGenerator idg)
Constructor with a pre-supplied IDGenerator idg. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the TopicMapImporter, removing any previously-processed TopicMap objects from its TopicMapProvider. |
org.apache.xml.resolver.tools.CatalogResolver |
getCatalogResolver()
Returns the CatalogResolver if useCatalogResolver is true,
otherwise null. |
org.tmapi.core.TopicMap |
getTMAPITopicMap(Locator locator)
Returns a TMAPI TopicMap provided with the Locator locator. |
TopicMap |
getTopicMap(Locator locator)
Returns a TopicMap provided its source Locator locator. |
TopicMap |
getTopicMap(TypedInputSource source)
Returns a TopicMap provided a TypedInputSource source indicating its source location. |
protected org.tmapi.core.TopicMapSystem |
getTopicMapSystem()
|
boolean |
removeTopicMap(Locator loc)
Permanently removes the TopicMap having the base locator loc from the provider. |
Locator |
returnLocator(String uri)
Returns a Locator whose address is uri, and is not associated with any TopicMap object. |
void |
setCatalogResolver(org.apache.xml.resolver.tools.CatalogResolver resolver)
Sets the CatalogResolver used by this TopicMapImporter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String PROVIDER_CLASS
public static String idPrefix
public static boolean useCatalogResolver
public static boolean useCeryleLTMProcessor
public static String defaultCatalogPath
| Constructor Detail |
|---|
public TopicMapImporter()
throws TopicMapException
TopicMapException - if unable to create the provider
public TopicMapImporter(IDGenerator idg)
throws TopicMapException
TopicMapException - if unable to create the provider| Method Detail |
|---|
public TopicMap getTopicMap(Locator locator)
throws TopicMapException
TopicMapExceptiongetTopicMap(TypedInputSource)
public TopicMap getTopicMap(TypedInputSource source)
throws TopicMapException
If the TopicMap is already available from the provider, it is returned. Otherwise, parses a Topic Map document (in XTM or LTM notation), returning the TopicMap object.
TopicMapExceptiongetTopicMap(Locator)
public boolean removeTopicMap(Locator loc)
throws TopicMapException
TopicMapExceptionpublic void clear()
public Locator returnLocator(String uri)
throws TopicMapException
uri - the String used as the locator address
TopicMapException
public org.tmapi.core.TopicMap getTMAPITopicMap(Locator locator)
throws TopicMapException
TopicMapExceptionprotected org.tmapi.core.TopicMapSystem getTopicMapSystem()
public org.apache.xml.resolver.tools.CatalogResolver getCatalogResolver()
useCatalogResolver is true,
otherwise null.
public void setCatalogResolver(org.apache.xml.resolver.tools.CatalogResolver resolver)
useCatalogResolver is true).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||