com.ephox.registry
Interface Registry


public interface Registry

Allows interaction with the EditLive! "registry", which contains settings that persist across editor instances.

Instance available via ELJBean.getEphoxRegistry().

Since:
7.5

Method Summary
 void addProperty(String key, String value)
          Adds a new property to the registry or overwrites an existing value.
 boolean contains(String key)
          Checks to see if the registry contains a given property.
 String getProperty(String key)
          Returns the value for a given property name.
 void removeProperty(String key)
          Removes the given property from the registry, then saves the registry.
 

Method Detail

addProperty

void addProperty(String key,
                 String value)
                 throws RegistryException
Adds a new property to the registry or overwrites an existing value. Then saves the registry.

Parameters:
key - Property name.
value - Property value.
Throws:
RegistryException

removeProperty

void removeProperty(String key)
Removes the given property from the registry, then saves the registry.

Parameters:
key - Name of the property to remove.

contains

boolean contains(String key)
                 throws RegistryException
Checks to see if the registry contains a given property.

Parameters:
key - Property to check for in the registry.
Returns:
True is property exists, otherwise false.
Throws:
RegistryException

getProperty

String getProperty(String key)
                   throws RegistryException
Returns the value for a given property name.

Parameters:
key - Name of property.
Returns:
Value for the given property, if the property does not exists an empty string is returned.
Throws:
RegistryException

Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved.