Package net.ontopia.topicmaps.utils.ctm
Class ValueGenerator
java.lang.Object
net.ontopia.topicmaps.utils.ctm.ValueGenerator
- All Implemented Interfaces:
ValueGeneratorIF
Simple generator storing values to be generated.
-
Constructor Summary
ConstructorsConstructorDescriptionValueGenerator(TopicIF topic, String literal, LocatorIF datatype, LocatorIF locator) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a locator if the literal is a locator.getTopic()booleanisTopic()Returns true if this generator produces a topic.voidsetDatatype(LocatorIF datatype) voidsetLiteral(String literal) voidsetLocator(LocatorIF locator) toString()
-
Constructor Details
-
ValueGenerator
public ValueGenerator() -
ValueGenerator
-
-
Method Details
-
isTopic
public boolean isTopic()Description copied from interface:ValueGeneratorIFReturns true if this generator produces a topic.- Specified by:
isTopicin interfaceValueGeneratorIF
-
getLiteral
- Specified by:
getLiteralin interfaceValueGeneratorIF
-
getDatatype
- Specified by:
getDatatypein interfaceValueGeneratorIF
-
getLocator
Description copied from interface:ValueGeneratorIFReturns a locator if the literal is a locator. Otherwise it throws an exception.- Specified by:
getLocatorin interfaceValueGeneratorIF
-
copy
- Specified by:
copyin interfaceValueGeneratorIF
-
getTopic
- Specified by:
getTopicin interfaceValueGeneratorIF
-
setLocator
-
setLiteral
-
setDatatype
-
toString
-