gov.lanl.Utility
Class DOMDoc2PIDS

java.lang.Object
  |
  +--gov.lanl.Utility.DOMDoc2PIDS

public class DOMDoc2PIDS
extends java.lang.Object

Translate XML DOM PIDS Document into TaggedProfiles

Version:
$Revision: 1.22 $ $Date: 2002/12/09 05:04:35 $
Author:
$Author: dwforslund $

Constructor Summary
DOMDoc2PIDS()
          Constructor declaration (not used because all methods are static
 
Method Summary
static org.w3c.dom.Node applyXSL(QualifiedTaggedProfile[] qtp, java.lang.String xslfile, java.lang.String[] params)
          get proper Document translated by xsl stylesheet
static QualifiedTaggedProfile createQualifiedTaggedProfile(org.w3c.dom.Node tx)
          create QualifiedTaggedProfile from DOM Tree
static TaggedProfile createTaggedProfile(org.w3c.dom.Node tx)
          create TaggedProfile from DOM Tree
static Trait createTrait(org.w3c.dom.Node tx)
          create Trait attached with Identity from DOM Tree
static org.w3c.dom.Node getDom(QualifiedTaggedProfile qtp)
          translate the QualifiedTaggedProfile into a DOM element
static java.lang.String getXsl()
          get the Xsl file for translation
static void main(java.lang.String[] argv)
          Main program for converting a PIDS Dom tree
static void setUpperCase(boolean upper)
          Set the case handling of the Trait values
static void setXsl(java.lang.String xslfile)
          Set the XSL file for translation
static org.w3c.dom.Document toDom(QualifiedTaggedProfile qtp)
          Convert to DOM Document
static QualifiedTaggedProfile[] toQualifiedTaggedProfile(org.w3c.dom.Document doc)
          create QualifiedTaggedProfile[] from DOM Document
static java.lang.String toString(QualifiedTaggedProfile[] qtp)
          Serialize Content to String
static TaggedProfile[] toTaggedProfile(org.w3c.dom.Document doc)
          create TaggedProfile[] from DOM Document
static void write(java.lang.String file, QualifiedTaggedProfile qtp)
          Serialize Content to a file as XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMDoc2PIDS

public DOMDoc2PIDS()
Constructor declaration (not used because all methods are static

See Also:
Method Detail

setUpperCase

public static void setUpperCase(boolean upper)
Set the case handling of the Trait values

Parameters:
upper - sets the case handling.

toQualifiedTaggedProfile

public static QualifiedTaggedProfile[] toQualifiedTaggedProfile(org.w3c.dom.Document doc)
create QualifiedTaggedProfile[] from DOM Document

Parameters:
doc - XML DOM Document to be translated
Returns:
a qualifedtaggedprofile array

createQualifiedTaggedProfile

public static QualifiedTaggedProfile createQualifiedTaggedProfile(org.w3c.dom.Node tx)
create QualifiedTaggedProfile from DOM Tree

Parameters:
tx -
Returns:

toTaggedProfile

public static TaggedProfile[] toTaggedProfile(org.w3c.dom.Document doc)
create TaggedProfile[] from DOM Document

Parameters:
doc - XML DOM Document to be translated
Returns:
a qualifedtaggedprofile array

createTaggedProfile

public static TaggedProfile createTaggedProfile(org.w3c.dom.Node tx)
create TaggedProfile from DOM Tree

Parameters:
tx -
Returns:

createTrait

public static Trait createTrait(org.w3c.dom.Node tx)
create Trait attached with Identity from DOM Tree

Parameters:
tx -
Returns:

getDom

public static org.w3c.dom.Node getDom(QualifiedTaggedProfile qtp)
translate the QualifiedTaggedProfile into a DOM element

Parameters:
qtp - QualifiedTaggedProfile
Returns:
Node

toDom

public static org.w3c.dom.Document toDom(QualifiedTaggedProfile qtp)
Convert to DOM Document

Parameters:
qtp - QualifiedTaggedProfile to be converted
Returns:
Document

write

public static void write(java.lang.String file,
                         QualifiedTaggedProfile qtp)
Serialize Content to a file as XML

Parameters:
file - to be serialized to
qtp - QualifiedTaggedProfile to be serialized

toString

public static java.lang.String toString(QualifiedTaggedProfile[] qtp)
Serialize Content to String

Parameters:
qtp - QualifiedTaggedProfile array to be serialized
Returns:
String containing serialization

setXsl

public static void setXsl(java.lang.String xslfile)
Set the XSL file for translation

Parameters:
xslfile -
See Also:

getXsl

public static java.lang.String getXsl()
get the Xsl file for translation

Returns:
See Also:

applyXSL

public static org.w3c.dom.Node applyXSL(QualifiedTaggedProfile[] qtp,
                                        java.lang.String xslfile,
                                        java.lang.String[] params)
get proper Document translated by xsl stylesheet

Parameters:
qtp - QualifiedTaggedProfile array
xslfile - containing stylesheet
params - for the stylesheet
Returns:
Node resulting from translation

main

public static void main(java.lang.String[] argv)
Main program for converting a PIDS Dom tree

Parameters:
argv -


Copyright © 2000 Apache Software Foundation. All Rights Reserved.