org.openprovenance.elmo
Class XMLLiteral

java.lang.Object
  extended by org.openprovenance.elmo.XMLLiteral

public class XMLLiteral
extends Object

XMLLiteral support was dropped because they where being mapped to org.w3c.dom.Document and did not support XML fragments (multiple roots elements). It is now recommended that users create their own XMLLiteral class that can handle XML fragments to what ever extent is desirable. Below is a sample class, which maps rdf:XMLLiteral to the class XmlLiteral, which exposes a read-only w3c document as a property. It can be registered in the ElmoModule or in a configuration file. module.addLiteral(XmlLiteral.class, "http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral"); See http://www.openrdf.org/forum/mvnforum/viewthread?thread=1738


Constructor Summary
XMLLiteral(Document document)
           
XMLLiteral(String xml)
           
 
Method Summary
 Document getDocument()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLLiteral

public XMLLiteral(String xml)

XMLLiteral

public XMLLiteral(Document document)
Method Detail

getDocument

public Document getDocument()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.