org.exoplatform.services.jcr.ext.registry
Class RegistryEntry

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.registry.RegistryEntry

public final class RegistryEntry
extends java.lang.Object

Created by The eXo Platform SAS .
Encapsulates registry entry (i.e services', applications' etc settings)

Version:
$Id: RegistryEntry.java 35186 2009-08-07 14:23:43Z pnedonosko $
Author:
Gennady Azarenkov

Constructor Summary
RegistryEntry(org.w3c.dom.Document dom)
          creates a RegistryEntry after XML DOM Document root element node name it is the name of the Entry
RegistryEntry(java.lang.String rootName)
          creates an empty RegistryEntry
 
Method Summary
 java.io.InputStream getAsInputStream()
           
 org.w3c.dom.Document getDocument()
           
 java.lang.String getName()
           
static RegistryEntry parse(byte[] bytes)
          Factory method to create RegistryEntry from serialized XML
static RegistryEntry parse(java.io.InputStream in)
          Factory method to create RegistryEntry from stream XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryEntry

public RegistryEntry(org.w3c.dom.Document dom)
creates a RegistryEntry after XML DOM Document root element node name it is the name of the Entry

Parameters:
dom -

RegistryEntry

public RegistryEntry(java.lang.String rootName)
              throws java.io.IOException,
                     org.xml.sax.SAXException,
                     javax.xml.parsers.ParserConfigurationException
creates an empty RegistryEntry

Parameters:
rootName -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
Method Detail

parse

public static RegistryEntry parse(byte[] bytes)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException,
                                  javax.xml.parsers.ParserConfigurationException
Factory method to create RegistryEntry from serialized XML

Parameters:
bytes -
Returns:
RegistryEntry
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

parse

public static RegistryEntry parse(java.io.InputStream in)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException,
                                  javax.xml.parsers.ParserConfigurationException
Factory method to create RegistryEntry from stream XML

Returns:
RegistryEntry
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

getAsInputStream

public java.io.InputStream getAsInputStream()
                                     throws javax.xml.transform.TransformerException
Returns:
the entry as InputStream
Throws:
java.io.IOException
javax.xml.transform.TransformerException

getName

public java.lang.String getName()
Returns:
the name of entry (which is the same as underlying Document's root name)

getDocument

public org.w3c.dom.Document getDocument()
Returns:
the underlying Document


Copyright © 2011 eXo Platform SAS. All Rights Reserved.