Class RegistryEntry
java.lang.Object
org.exoplatform.services.jcr.ext.registry.RegistryEntry
Created by The eXo Platform SAS
Encapsulates registry entry (i.e services', applications' etc settings)
Encapsulates registry entry (i.e services', applications' etc settings)
- Author:
- Gennady Azarenkov
- eXo level API
- Unsupported
-
Constructor Summary
ConstructorsConstructorDescriptionRegistryEntry(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
Modifier and TypeMethodDescriptiongetName()static RegistryEntryparse(byte[] bytes) Factory method to create RegistryEntry from serialized XMLstatic RegistryEntryparse(InputStream in) Factory method to create RegistryEntry from stream XML
-
Constructor Details
-
RegistryEntry
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 Details
-
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
- Returns:
- the entry as InputStream
- Throws:
TransformerException
-
getName
- Returns:
- the name of entry (which is the same as underlying Document's root name)
-
getDocument
- Returns:
- the underlying Document
-