eu.larkc.core.data
Class XMLDocumentImpl

java.lang.Object
  extended by eu.larkc.core.data.XMLDocumentImpl
All Implemented Interfaces:
InformationSet, XMLDocument, java.io.Serializable

public class XMLDocumentImpl
extends java.lang.Object
implements XMLDocument

Implementation of XMLDocument interface. Given the location of an XML file as input it retrieves the document.

Author:
Daniele Dell'Aglio
See Also:
Serialized Form

Constructor Summary
XMLDocumentImpl(java.lang.String url)
           
XMLDocumentImpl(java.net.URL url)
           
 
Method Summary
 java.lang.String getDocument()
           
 java.lang.String getGraphName()
           
 java.net.URL getURL()
           
 java.net.URL getXslt()
           
 void setGraphName(java.lang.String gn)
           
 void setXslt(java.net.URL xslt)
           
 SetOfStatements toRDF(SetOfStatements data)
          Serializes this object to SetOfStatements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDocumentImpl

public XMLDocumentImpl(java.lang.String url)

XMLDocumentImpl

public XMLDocumentImpl(java.net.URL url)
Method Detail

getURL

public java.net.URL getURL()
Specified by:
getURL in interface XMLDocument

setXslt

public void setXslt(java.net.URL xslt)
Specified by:
setXslt in interface XMLDocument

getXslt

public java.net.URL getXslt()
Specified by:
getXslt in interface XMLDocument

getDocument

public java.lang.String getDocument()
Specified by:
getDocument in interface XMLDocument

getGraphName

public java.lang.String getGraphName()
Specified by:
getGraphName in interface XMLDocument

setGraphName

public void setGraphName(java.lang.String gn)
Specified by:
setGraphName in interface XMLDocument

toRDF

public SetOfStatements toRDF(SetOfStatements data)
Description copied from interface: InformationSet
Serializes this object to SetOfStatements.

Specified by:
toRDF in interface InformationSet
Parameters:
data - is stream to serialize this object to.
Returns:
reference to the set of statements that contains the serialized data.