com.taursys.dom
Class DOMDocumentAdapterFactory

java.lang.Object
  extended bycom.taursys.dom.DOMDocumentAdapterFactory

public class DOMDocumentAdapterFactory
extends java.lang.Object

DOMDocumentAdapterFactory is concrete factory that creates DOM type DocumentAdapters to wrap DOM documents.

Version:
$Revision: 1.2 $
Author:
Marty Phelan

Field Summary
static int DOM_1_20000929
           
static int DOM_2_20000510
           
static int DOM_2_20000927
           
static int DOM_2_20001113
           
static int DOM_3_20010913
           
static int DOM_3_20020114
           
 
Method Summary
 int determineDOMLevel(java.lang.Class docClazz)
          Determines a DOM level for the given org.w3c.dom.Document class
static DOMDocumentAdapterFactory getInstance()
          Get singleton instance of DOMDocumentAdapterFactory
 DocumentAdapter newDOMDocumentAdapter(java.lang.Object doc)
          Create new DOM type DocumentAdapter which conforms to the DOM implementation level of the given Document object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOM_1_20000929

public static final int DOM_1_20000929
See Also:
Constant Field Values

DOM_2_20000510

public static final int DOM_2_20000510
See Also:
Constant Field Values

DOM_2_20000927

public static final int DOM_2_20000927
See Also:
Constant Field Values

DOM_2_20001113

public static final int DOM_2_20001113
See Also:
Constant Field Values

DOM_3_20010913

public static final int DOM_3_20010913
See Also:
Constant Field Values

DOM_3_20020114

public static final int DOM_3_20020114
See Also:
Constant Field Values
Method Detail

getInstance

public static DOMDocumentAdapterFactory getInstance()
Get singleton instance of DOMDocumentAdapterFactory

Returns:
singleton instance of DOMDocumentAdapterFactory

newDOMDocumentAdapter

public DocumentAdapter newDOMDocumentAdapter(java.lang.Object doc)
                                      throws DocumentAdapterBuilderException
Create new DOM type DocumentAdapter which conforms to the DOM implementation level of the given Document object.

Parameters:
doc -
Throws:
DocumentAdapterBuilderException - if cannot build adapter

determineDOMLevel

public int determineDOMLevel(java.lang.Class docClazz)
Determines a DOM level for the given org.w3c.dom.Document class

Parameters:
docClazz - the class of the Document
Returns:
a int constant for the DOM Level or 0 if cannot determine


Copyright © 2007 Martin T Phelan. All Rights Reserved.