Package net.ontopia.topicmaps.utils.ctm
Class AbstractTopicGenerator
- java.lang.Object
-
- net.ontopia.topicmaps.utils.ctm.AbstractTopicGenerator
-
- All Implemented Interfaces:
ValueGeneratorIF
- Direct Known Subclasses:
NamedWildcardTopicGenerator
,WildcardTopicGenerator
public abstract class AbstractTopicGenerator extends Object implements ValueGeneratorIF
Abstract topic generator.
-
-
Constructor Summary
Constructors Constructor Description AbstractTopicGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocatorIF
getDatatype()
String
getLiteral()
LocatorIF
getLocator()
Returns a locator if the literal is a locator.boolean
isTopic()
Returns true if this generator produces a topic.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.ontopia.topicmaps.utils.ctm.ValueGeneratorIF
copy, getTopic
-
-
-
-
Method Detail
-
isTopic
public boolean isTopic()
Description copied from interface:ValueGeneratorIF
Returns true if this generator produces a topic.- Specified by:
isTopic
in interfaceValueGeneratorIF
-
getLiteral
public String getLiteral()
- Specified by:
getLiteral
in interfaceValueGeneratorIF
-
getDatatype
public LocatorIF getDatatype()
- Specified by:
getDatatype
in interfaceValueGeneratorIF
-
getLocator
public LocatorIF getLocator()
Description copied from interface:ValueGeneratorIF
Returns a locator if the literal is a locator. Otherwise it throws an exception.- Specified by:
getLocator
in interfaceValueGeneratorIF
-
-