net.ontopia.topicmaps.utils.ctm
Class IRIAsArgumentGenerator
java.lang.Object
net.ontopia.topicmaps.utils.ctm.IRIAsArgumentGenerator
- All Implemented Interfaces:
- LiteralGeneratorIF, TopicGeneratorIF
public class IRIAsArgumentGenerator
- extends java.lang.Object
- implements TopicGeneratorIF, LiteralGeneratorIF
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IRIAsArgumentGenerator
public IRIAsArgumentGenerator(ParseContextIF context,
LocatorIF locator)
getTopic
public TopicIF getTopic()
- Specified by:
getTopic
in interface TopicGeneratorIF
copyTopic
public TopicGeneratorIF copyTopic()
- Specified by:
copyTopic
in interface TopicGeneratorIF
copyLiteral
public LiteralGeneratorIF copyLiteral()
- Specified by:
copyLiteral
in interface LiteralGeneratorIF
getLiteral
public java.lang.String getLiteral()
- Specified by:
getLiteral
in interface LiteralGeneratorIF
getDatatype
public LocatorIF getDatatype()
- Specified by:
getDatatype
in interface LiteralGeneratorIF
getLocator
public LocatorIF getLocator()
- Description copied from interface:
LiteralGeneratorIF
- Returns a locator if the literal is a locator. Otherwise it
throws an exception.
- Specified by:
getLocator
in interface LiteralGeneratorIF
Copyright © 2000-2009 Ontopia.