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 ValueGeneratorIF
copy()
LocatorIF
getDatatype()
String
getLiteral()
LocatorIF
getLocator()
Returns a locator if the literal is a locator.TopicIF
getTopic()
boolean
isTopic()
Returns true if this generator produces a topic.void
setDatatype(LocatorIF datatype)
void
setLiteral(String literal)
void
setLocator(LocatorIF locator)
String
toString()
-
-
-
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
-
copy
public ValueGeneratorIF copy()
- Specified by:
copy
in interfaceValueGeneratorIF
-
getTopic
public TopicIF getTopic()
- Specified by:
getTopic
in interfaceValueGeneratorIF
-
setLocator
public void setLocator(LocatorIF locator)
-
setLiteral
public void setLiteral(String literal)
-
setDatatype
public void setDatatype(LocatorIF datatype)
-
-