net.ontopia.topicmaps.utils.ctm
Class AbstractTopicGenerator

java.lang.Object
  extended by net.ontopia.topicmaps.utils.ctm.AbstractTopicGenerator
All Implemented Interfaces:
ValueGeneratorIF
Direct Known Subclasses:
NamedWildcardTopicGenerator, WildcardTopicGenerator

public abstract class AbstractTopicGenerator
extends java.lang.Object
implements ValueGeneratorIF

Abstract topic generator.


Constructor Summary
AbstractTopicGenerator()
           
 
Method Summary
 LocatorIF getDatatype()
           
 java.lang.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
 

Constructor Detail

AbstractTopicGenerator

public AbstractTopicGenerator()
Method Detail

isTopic

public boolean isTopic()
Description copied from interface: ValueGeneratorIF
Returns true if this generator produces a topic.

Specified by:
isTopic in interface ValueGeneratorIF

getLiteral

public java.lang.String getLiteral()
Specified by:
getLiteral in interface ValueGeneratorIF

getDatatype

public LocatorIF getDatatype()
Specified by:
getDatatype in interface ValueGeneratorIF

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 interface ValueGeneratorIF


Copyright © 2000-2012 Ontopia.