Class RegistryEntry
- java.lang.Object
-
- org.exoplatform.services.jcr.ext.registry.RegistryEntry
-
public final class RegistryEntry extends Object
Created by The eXo Platform SAS
Encapsulates registry entry (i.e services', applications' etc settings)- Author:
- Gennady Azarenkov
- eXo level API
- Unsupported
-
-
Constructor Summary
Constructors Constructor Description RegistryEntry(String rootName)creates an empty RegistryEntryRegistryEntry(Document dom)creates a RegistryEntry after XML DOM Document root element node name it is the name of the Entry
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetAsInputStream()DocumentgetDocument()StringgetName()static RegistryEntryparse(byte[] bytes)Factory method to create RegistryEntry from serialized XMLstatic RegistryEntryparse(InputStream in)Factory method to create RegistryEntry from stream XML
-
-
-
Constructor Detail
-
RegistryEntry
public RegistryEntry(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(String rootName) throws IOException, SAXException, ParserConfigurationException
creates an empty RegistryEntry- Parameters:
rootName-- Throws:
IOExceptionSAXExceptionParserConfigurationException
-
-
Method Detail
-
parse
public static RegistryEntry parse(byte[] bytes) throws IOException, SAXException, ParserConfigurationException
Factory method to create RegistryEntry from serialized XML- Parameters:
bytes-- Returns:
- RegistryEntry
- Throws:
IOExceptionSAXExceptionParserConfigurationException
-
parse
public static RegistryEntry parse(InputStream in) throws IOException, SAXException, ParserConfigurationException
Factory method to create RegistryEntry from stream XML- Returns:
- RegistryEntry
- Throws:
IOExceptionSAXExceptionParserConfigurationException
-
getAsInputStream
public InputStream getAsInputStream() throws TransformerException
- Returns:
- the entry as InputStream
- Throws:
TransformerException
-
getName
public String getName()
- Returns:
- the name of entry (which is the same as underlying Document's root name)
-
getDocument
public Document getDocument()
- Returns:
- the underlying Document
-
-