org.ceryle.xnode.convert
Class XNodeImporter

java.lang.Object
  extended by org.ceryle.xnode.convert.XNodeImporter
Direct Known Subclasses:
XNodeImporter1_0, XNodeImporter1_1, XNodeImporter1_2, XNodeImporter1_3

public abstract class XNodeImporter
extends Object

An abstract class for an XNode importer. This imports a DOM source Document, providing all necessary conversion facility to update its content in creating an XNode conforming to the latest XNode version.

Copyright 2001-2007 Murray Altheim. All Rights Reserved.
See LICENSE included with distribution.

Since:
JDK1.4
Version:
$Id: XNodeImporter.java,v 1.1 2007-06-15 12:08:25 altheim Exp $
Author:
Murray Altheim

Field Summary
protected  Document m_doc
           
protected  XNodeFactory m_xnf
           
protected  XNodeStore m_xns
           
protected  MessageHandler mh
           
protected  Services srvs
           
 
Constructor Summary
XNodeImporter()
          Default constructor.
 
Method Summary
 Document getDocument()
          Returns the DOM Document source.
abstract  String getVersion()
          Returns a string identifier for the XNode version this XNodeImporter is designed to import.
 XNode importXNode(Document doc)
          Returns an XNode provided its XML Document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_doc

protected Document m_doc

m_xnf

protected XNodeFactory m_xnf

m_xns

protected XNodeStore m_xns

srvs

protected Services srvs

mh

protected MessageHandler mh
Constructor Detail

XNodeImporter

public XNodeImporter()
Default constructor.

Method Detail

importXNode

public XNode importXNode(Document doc)
                  throws XNodeException
Returns an XNode provided its XML Document. This should generally be overridden by subclasses for version-specific customizations.

This method is responsible for setting the Document source.

Throws:
XNodeException

getDocument

public final Document getDocument()
Returns the DOM Document source.


getVersion

public abstract String getVersion()
Returns a string identifier for the XNode version this XNodeImporter is designed to import. E.g., "1.0".



The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.