info.informatica.ui
Class ViewSecurityDatabase

java.lang.Object
  extended by info.informatica.ui.ViewSecurityDatabase

public class ViewSecurityDatabase
extends Object

A database of ViewSecurity information.

Author:
Carlos Amengual

Constructor Summary
ViewSecurityDatabase()
           
 
Method Summary
 ViewSecurity getViewSecurity(String name)
           
 String getXMLNamespaceURI()
          Gets the XML Namespace URI of this document.
static void main(String[] args)
          Testdrive method used to read a security spec from an XML file, and print it again.
static ViewSecurityDatabase parse(InputStream is)
           
 void printXML(PrintWriter pw)
          Prints the XML representation of this object, without including the XML declaration.
 void printXML(PrintWriter pw, int indentbase, int indentdelta)
          Prints the XML representation of this object, without including the XML declaration.
 void setViewSecurity(String name, ViewSecurity vs)
           
 String toString()
           
 String toXML()
          Gives a representation of this object as an XML document.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewSecurityDatabase

public ViewSecurityDatabase()
Method Detail

getViewSecurity

public ViewSecurity getViewSecurity(String name)

setViewSecurity

public void setViewSecurity(String name,
                            ViewSecurity vs)

toString

public String toString()
Overrides:
toString in class Object

getXMLNamespaceURI

public String getXMLNamespaceURI()
Gets the XML Namespace URI of this document.

Returns:
the XML Namespace URI, or null if unavailable or not known.

printXML

public void printXML(PrintWriter pw,
                     int indentbase,
                     int indentdelta)
Prints the XML representation of this object, without including the XML declaration.

Parameters:
pw - the PrintWriter to write to.
indentbase - the number of spaces to start indenting.
indentdelta - the number of white spaces to add to indenting when printing a nested element.

printXML

public void printXML(PrintWriter pw)
Prints the XML representation of this object, without including the XML declaration. Uses default values for indenting.

Parameters:
pw - the PrintWriter to write to.

toXML

public String toXML()
Gives a representation of this object as an XML document.

Returns:
an XML representation of this object.

parse

public static ViewSecurityDatabase parse(InputStream is)
                                  throws SAXException,
                                         ParserConfigurationException,
                                         IOException
Throws:
SAXException
ParserConfigurationException
IOException

main

public static void main(String[] args)
Testdrive method used to read a security spec from an XML file, and print it again.