Package net.ontopia.topicmaps.utils.ctm
Class ValueGenerator
- java.lang.Object
-
- net.ontopia.topicmaps.utils.ctm.ValueGenerator
-
- All Implemented Interfaces:
ValueGeneratorIF
public class ValueGenerator extends Object implements ValueGeneratorIF
Simple generator storing values to be generated.
-
-
Constructor Summary
Constructors Constructor Description ValueGenerator()ValueGenerator(TopicIF topic, String literal, LocatorIF datatype, LocatorIF locator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueGeneratorIFcopy()LocatorIFgetDatatype()StringgetLiteral()LocatorIFgetLocator()Returns a locator if the literal is a locator.TopicIFgetTopic()booleanisTopic()Returns true if this generator produces a topic.voidsetDatatype(LocatorIF datatype)voidsetLiteral(String literal)voidsetLocator(LocatorIF locator)StringtoString()
-
-
-
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
-
copy
public ValueGeneratorIF copy()
- Specified by:
copyin interfaceValueGeneratorIF
-
getTopic
public TopicIF getTopic()
- Specified by:
getTopicin interfaceValueGeneratorIF
-
setLocator
public void setLocator(LocatorIF locator)
-
setLiteral
public void setLiteral(String literal)
-
setDatatype
public void setDatatype(LocatorIF datatype)
-
-