net.ontopia.topicmaps.utils.ctm
Class ValueGenerator

java.lang.Object
  extended by 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.


Constructor Summary
ValueGenerator()
           
ValueGenerator(TopicIF topic, java.lang.String literal, LocatorIF datatype, LocatorIF locator)
           
 
Method Summary
 ValueGeneratorIF copy()
           
 LocatorIF getDatatype()
           
 java.lang.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(java.lang.String literal)
           
 void setLocator(LocatorIF locator)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueGenerator

public ValueGenerator()

ValueGenerator

public ValueGenerator(TopicIF topic,
                      java.lang.String literal,
                      LocatorIF datatype,
                      LocatorIF locator)
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

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.