A C E G I L M N O P R S T U X

A

addListener(Listener) - Method in class net.smartlab.config.Configuration
Adds a configuration changes listener.
attributes - Variable in class net.smartlab.config.Node
The node attributes.

C

characters(char[], int, int) - Method in class net.smartlab.config.XMLConfiguration.XMLHandler
 
check() - Method in class net.smartlab.config.Configuration
Checks if the underling configuration has been changed and notifies listeners of the change.
children - Variable in class net.smartlab.config.Node
The node sub elements.
Configuration - Class in net.smartlab.config
This class provides a skeletal implementation of a configuration tree to provide a set of common operations with a generic implementation.
Configuration() - Constructor for class net.smartlab.config.Configuration
Creates an instance of the class as an Element without a parent node.
ConfigurationException - Exception in net.smartlab.config
Thrown to indicate the configuration tree scanning or querying has failed.
ConfigurationException() - Constructor for exception net.smartlab.config.ConfigurationException
Instantiates the class.
ConfigurationException(String) - Constructor for exception net.smartlab.config.ConfigurationException
Instantiates the class with a message.
ConfigurationException(Throwable) - Constructor for exception net.smartlab.config.ConfigurationException
Instantiates the class with a cause.
ConfigurationException(String, Throwable) - Constructor for exception net.smartlab.config.ConfigurationException
Instantiates the class with a message and cause.
content - Variable in class net.smartlab.config.Node
The node direct contents.

E

Element - Class in net.smartlab.config
This class identifies a configuration element which can in turn contains other configuration elements.
Element(Node, String) - Constructor for class net.smartlab.config.Element
Constructs an element with a givenparent node and name.
encrypt(File, File, File, String) - Static method in class net.smartlab.config.XMLConfiguration
TODO documentation
endElement(String, String, String) - Method in class net.smartlab.config.XMLConfiguration.XMLHandler
 

G

getAttribute(String) - Method in class net.smartlab.config.Element
Returns the value of the attribute whose name equals the specified one or null if the element doesn't contain a such named attribute.
getAttribute(String) - Method in class net.smartlab.config.Node
 
getAttribute(String) - Method in class net.smartlab.config.Reference
 
getAttributeNames() - Method in class net.smartlab.config.Element
Returns all the attributes names of this element.
getAttributeNames() - Method in class net.smartlab.config.Node
 
getAttributeNames() - Method in class net.smartlab.config.Reference
 
getAttributes() - Method in class net.smartlab.config.Element
Returns all the attributes of this element.
getAttributes() - Method in class net.smartlab.config.Node
 
getAttributes() - Method in class net.smartlab.config.Reference
 
getAttributeValues(String) - Method in class net.smartlab.config.Element
Returns an unmodifiable Collection build on the attribute value parsed as a comma separated list.
getContent() - Method in class net.smartlab.config.Element
Returns the element content as a string.
getContent() - Method in class net.smartlab.config.Node
 
getContent() - Method in class net.smartlab.config.Reference
 
getElement(String) - Method in class net.smartlab.config.Element
Returns the first contained element whose name equals the given one.
getElement(String, String) - Method in class net.smartlab.config.Element
Returns the first contained element whose name equals the given one and whose attribute list contains the given one.
getElement(String, String, String) - Method in class net.smartlab.config.Element
Returns the first contained element whose name equals the given one and whose attribute list defines an attribute whose name and values matches the given parameters.
getElement(String, String, String) - Method in class net.smartlab.config.Node
 
getElement(String, String, String) - Method in class net.smartlab.config.Reference
 
getElements() - Method in class net.smartlab.config.Element
Returns all the contained elements.
getElements(String) - Method in class net.smartlab.config.Element
Returns all the contained elements which name equals the given one.
getElements() - Method in class net.smartlab.config.Node
 
getElements(String) - Method in class net.smartlab.config.Node
 
getElements() - Method in class net.smartlab.config.Reference
 
getElements(String) - Method in class net.smartlab.config.Reference
 
getId() - Method in class net.smartlab.config.Element
Returns the unique identifier associated with this element.
getId() - Method in class net.smartlab.config.Node
 
getId() - Method in class net.smartlab.config.Reference
 
getInstance(String) - Static method in class net.smartlab.config.Configuration
Returns an instance of a Configuration subclass accordingly to the provided URI.
getInstance(String, Listener) - Static method in class net.smartlab.config.Configuration
Returns an instance of a Configuration subclass accordingly to the provided URI monitoring it for updates which will be notified to the provided listener.
getInstance(String, Collection) - Static method in class net.smartlab.config.Configuration
Returns an instance of a Configuration subclass accordingly to the provided URI monitoring it for updates which will be notified to the provided collection of listeners.
getInstance(URI) - Static method in class net.smartlab.config.Configuration
Returns an instance of a Configuration subclass accordingly to the provided URI.
getInstance(URI, Listener) - Static method in class net.smartlab.config.Configuration
Returns an instance of a Configuration subclass accordingly to the provided URI monitoring it for updates which will be notified to the provided listener.
getInstance(URI, Collection) - Static method in class net.smartlab.config.Configuration
Returns an instance of a Configuration subclass accordingly to the provided URI monitoring it for updates which will be notified to the provided collection of listeners.
getLastUpdate(boolean) - Method in class net.smartlab.config.SQLConfiguration
Extracts the last modification timestamp from the underling database.
getListeners() - Method in class net.smartlab.config.Configuration
Returns the registered changes listeners.
getName() - Method in class net.smartlab.config.Element
Returns the name of this configuration element.
getResolve() - Method in class net.smartlab.config.Configuration
Returns the resolution method adopted by this configuration tree.

I

id - Variable in class net.smartlab.config.Reference
The unique identifier for this reference.
IDENTIFIER - Static variable in class net.smartlab.config.Reference
The name of the element attribute defining a valid reference target.
init(String, Attributes) - Method in class net.smartlab.config.Configuration
Initializes this configuration with a name and a set of attributes.
isChanged() - Method in class net.smartlab.config.Configuration
This method checks if the source from the configuration structure was modified since it was last read.
isChanged() - Method in class net.smartlab.config.SQLConfiguration
 
isChanged() - Method in class net.smartlab.config.XMLConfiguration
 

L

LAST_UPDATE - Static variable in class net.smartlab.config.SQLConfiguration
Name used to identify the last update time on the database.
Listener - Interface in net.smartlab.config
Implementors can be notified on configuration updates.
listeners - Variable in class net.smartlab.config.Configuration
 
locator - Variable in class net.smartlab.config.XMLConfiguration.XMLHandler
The document locator.

M

monitor - Variable in class net.smartlab.config.Configuration
 

N

name - Variable in class net.smartlab.config.Element
The element name.
net.smartlab.config - package net.smartlab.config
 
Node - Class in net.smartlab.config
 
Node(Node, String, Attributes) - Constructor for class net.smartlab.config.Node
Constructs a generic empty node.
node - Variable in class net.smartlab.config.Reference
The referenced node.

O

onUpdate(Configuration) - Method in interface net.smartlab.config.Listener
 
owner - Variable in class net.smartlab.config.XMLConfiguration.XMLHandler
The owning element also known as the parent element.

P

parent - Variable in class net.smartlab.config.Element
The containing node.

R

reader - Variable in class net.smartlab.config.XMLConfiguration.XMLHandler
The XML stream reader.
Reference - Class in net.smartlab.config
 
Reference(Node, String, String) - Constructor for class net.smartlab.config.Reference
Creates a reference contained by the given parent node with a specified name and unique identifier.
REFERENCE - Static variable in class net.smartlab.config.Reference
The name of the element attribute defining a reference to another element.
removeListener(Listener) - Method in class net.smartlab.config.Configuration
Removes a configuration changes listener.
resolve(String, String) - Method in class net.smartlab.config.Configuration
 
resolve() - Method in class net.smartlab.config.Element
Resolves the element reference.
resolve() - Method in class net.smartlab.config.Node
 
resolve(String, String) - Method in class net.smartlab.config.Node
Resolves the requested reference through its children nodes or, recursively in the parent node children.
resolve() - Method in class net.smartlab.config.Reference
 
resolved - Variable in class net.smartlab.config.Node
Marks this node as already resolved for references.
resolveEntity(String, String) - Method in class net.smartlab.config.XMLConfiguration.XMLHandler
Blocks external entity resolution failures.

S

setContent(String) - Method in class net.smartlab.config.Node
Sets the content.
setDocumentLocator(Locator) - Method in class net.smartlab.config.XMLConfiguration.XMLHandler
 
setLastUpdate(long) - Method in class net.smartlab.config.SQLConfiguration
Sets the last modification timestamp into the underling database.
setResolve(boolean) - Method in class net.smartlab.config.Configuration
Sets the resolution method to adopt while querying this configuration tree.
SQLConfiguration - Class in net.smartlab.config
Represents a configuration expressed through a database table.
SQLConfiguration(Connection) - Constructor for class net.smartlab.config.SQLConfiguration
Constructs a configuration structure from a JDBC connection.
SQLConfiguration(DataSource) - Constructor for class net.smartlab.config.SQLConfiguration
Constructs a configuration structure from a JDBC data source.
startElement(String, String, String, Attributes) - Method in class net.smartlab.config.XMLConfiguration.XMLHandler
 

T

toString() - Method in class net.smartlab.config.Element
 

U

update() - Method in class net.smartlab.config.Configuration
Ensures the in memory representation of the configuration matches with the underlying representation.
update() - Method in class net.smartlab.config.SQLConfiguration
 
update() - Method in class net.smartlab.config.XMLConfiguration
 

X

XMLConfiguration - Class in net.smartlab.config
Represents a configuration expressed through an XML document.
XMLConfiguration(File) - Constructor for class net.smartlab.config.XMLConfiguration
Constructs a configuration structure from an XML file.
XMLConfiguration(String) - Constructor for class net.smartlab.config.XMLConfiguration
Constructs a configuration structure from an XML file accessible through a file system dependent string representation of a path.
XMLConfiguration(URL) - Constructor for class net.smartlab.config.XMLConfiguration
Constructs a configuration structure from an XML stream of characters.
XMLConfiguration(File, Cipher) - Constructor for class net.smartlab.config.XMLConfiguration
Constructs a configuration structure from an encrypted XML file.
XMLConfiguration(String, Cipher) - Constructor for class net.smartlab.config.XMLConfiguration
Constructs a configuration structure from an encrypted XML file accessible through a file system dependent string representation of a path.
XMLConfiguration(URL, Cipher) - Constructor for class net.smartlab.config.XMLConfiguration
Constructs a configuration structure from an encrypted XML stream of characters.
XMLConfiguration.XMLHandler - Class in net.smartlab.config
SAX Handler implementation to provide the in-memory representation of an XML configuration file.
XMLConfiguration.XMLHandler(Configuration) - Constructor for class net.smartlab.config.XMLConfiguration.XMLHandler
Constructs the handler starting from the configuration root element.

A C E G I L M N O P R S T U X

Copyright © 2002-2008 SmartLab s.r.l.. All Rights Reserved.