net.ontopia.topicmaps.utils.ctm
Class ValueGenerator
java.lang.Object
net.ontopia.topicmaps.utils.ctm.ValueGenerator
- All Implemented Interfaces:
- ValueGeneratorIF
public class ValueGenerator
- extends java.lang.Object
- implements ValueGeneratorIF
Simple generator storing values to be generated.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValueGenerator
public ValueGenerator()
ValueGenerator
public ValueGenerator(TopicIF topic,
java.lang.String literal,
LocatorIF datatype,
LocatorIF locator)
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
copy
public ValueGeneratorIF copy()
- Specified by:
copy
in interface ValueGeneratorIF
getTopic
public TopicIF getTopic()
- Specified by:
getTopic
in interface ValueGeneratorIF
setLocator
public void setLocator(LocatorIF locator)
setLiteral
public void setLiteral(java.lang.String literal)
setDatatype
public void setDatatype(LocatorIF datatype)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2000-2012 Ontopia.