net.ontopia.topicmaps.utils.ctm
Class IRIAsArgumentGenerator
java.lang.Object
net.ontopia.topicmaps.utils.ctm.IRIAsArgumentGenerator
- All Implemented Interfaces:
- ValueGeneratorIF
public class IRIAsArgumentGenerator
- extends java.lang.Object
- implements ValueGeneratorIF
INTERNAL: A special generator that's used when an IRI is passed as
an argument to a template because this can be either a topic
reference or an IRI literal, and we don't know which.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IRIAsArgumentGenerator
public IRIAsArgumentGenerator(ParseContextIF context,
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
getTopic
public TopicIF getTopic()
- Specified by:
getTopic
in interface ValueGeneratorIF
copy
public ValueGeneratorIF copy()
- Specified by:
copy
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
Copyright © 2000-2012 Ontopia.