es.rediris.aarr
Class Configuration

java.lang.Object
  extended by es.rediris.aarr.Configuration

public class Configuration
extends java.lang.Object

This class is used for setting a new configuration or getting info about a given one. The information handled by this class includes a binding for the configuration, the associated ruleset, and the protocol used.

Author:
kan, macias

Field Summary
(package private)  java.lang.String binding
          A binding for this config.
(package private)  org.w3c.dom.Element confProtocol
          The protocol used in the configuration
(package private)  org.w3c.dom.Element environment
          Environment section of the configuration
(package private)  org.w3c.dom.Element ruleset
          The associated ruleset
 
Constructor Summary
Configuration(java.lang.String binding)
          Unique constructor for this class; it sets the binding with a null protocol definition.
 
Method Summary
 java.lang.String getBinding()
          Returns a String containing the name of the binding for this configuration
 org.w3c.dom.Element getConfigProtocol()
          Returns the protocol associated with the configuration
 org.w3c.dom.Element getEnvironment()
          Returns the Environment section in a configuration
 org.w3c.dom.Element getRuleset()
          Returns the Ruleset associated with this configuration
 void setBinding(java.lang.String name)
          Sets (changes) a (the) binding for the given configuration
 void setConfigProtocol(org.w3c.dom.Element conf)
          Sets the protocol in the configuration to the provided one
 void setEnvironment(org.w3c.dom.Element envir)
          Sets the value of the element containing environment variables
 void setRuleset(org.w3c.dom.Element rules)
          Sets a ruleset with the rules provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

binding

java.lang.String binding
A binding for this config.


ruleset

org.w3c.dom.Element ruleset
The associated ruleset


environment

org.w3c.dom.Element environment
Environment section of the configuration


confProtocol

org.w3c.dom.Element confProtocol
The protocol used in the configuration

Constructor Detail

Configuration

public Configuration(java.lang.String binding)
Unique constructor for this class; it sets the binding with a null protocol definition.

Parameters:
binding - is a String with the binding name for this class
Method Detail

setBinding

public void setBinding(java.lang.String name)
Sets (changes) a (the) binding for the given configuration

Parameters:
name - The name of the binding

getBinding

public java.lang.String getBinding()
Returns a String containing the name of the binding for this configuration


getRuleset

public org.w3c.dom.Element getRuleset()
Returns the Ruleset associated with this configuration

Returns:
the ruleset for this configuration

setRuleset

public void setRuleset(org.w3c.dom.Element rules)
Sets a ruleset with the rules provided.

Parameters:
rules - the rules being provided

getEnvironment

public org.w3c.dom.Element getEnvironment()
Returns the Environment section in a configuration

Returns:
the environment for the actual configuration

setEnvironment

public void setEnvironment(org.w3c.dom.Element envir)
Sets the value of the element containing environment variables

Parameters:
envir - the environment extracted from the configuration

getConfigProtocol

public org.w3c.dom.Element getConfigProtocol()
Returns the protocol associated with the configuration

Returns:
the protocol

setConfigProtocol

public void setConfigProtocol(org.w3c.dom.Element conf)
Sets the protocol in the configuration to the provided one

Parameters:
conf - the protocol