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 LocatorIFgetDatatype()StringgetLiteral()LocatorIFgetLocator()Returns a locator if the literal is a locator.booleanisTopic()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:ValueGeneratorIFReturns true if this generator produces a topic.- Specified by:
isTopicin interfaceValueGeneratorIF
-
getLiteral
public String getLiteral()
- Specified by:
getLiteralin interfaceValueGeneratorIF
-
getDatatype
public LocatorIF getDatatype()
- Specified by:
getDatatypein interfaceValueGeneratorIF
-
getLocator
public LocatorIF getLocator()
Description copied from interface:ValueGeneratorIFReturns a locator if the literal is a locator. Otherwise it throws an exception.- Specified by:
getLocatorin interfaceValueGeneratorIF
-
-