org.argouml.application.configuration
Class ConfigurationKeyImpl

java.lang.Object
  |
  +--org.argouml.application.configuration.ConfigurationKeyImpl
All Implemented Interfaces:
ConfigurationKey

public class ConfigurationKeyImpl
extends java.lang.Object
implements ConfigurationKey

This class provides definition and manipulation of configuration keys. All keys in the configuration system will be accessed using the ConfigurationKey wrapper.

Since:
ARGO0.9.4

Field Summary
private  java.lang.String _key
          The string value for the key.
 
Constructor Summary
ConfigurationKeyImpl(ConfigurationKey ck, java.lang.String k1)
          Create a sub-component of an existing configuration key.
ConfigurationKeyImpl(java.lang.String k1)
          Create a single component configuration key.
ConfigurationKeyImpl(java.lang.String k1, java.lang.String k2)
          Create a two-component configuration key.
ConfigurationKeyImpl(java.lang.String k1, java.lang.String k2, java.lang.String k3)
          Create a three-component configuration key.
ConfigurationKeyImpl(java.lang.String k1, java.lang.String k2, java.lang.String k3, java.lang.String k4)
          Create a four-component configuration key.
ConfigurationKeyImpl(java.lang.String k1, java.lang.String k2, java.lang.String k3, java.lang.String k4, java.lang.String k5)
          Create a five-component configuration key.
 
Method Summary
 java.lang.String getKey()
          Return the actual key used to access the configuration.
 boolean isChangedProperty(java.beans.PropertyChangeEvent pce)
          Compare the configuration key to a string.
 java.lang.String toString()
          Returns a formatted key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_key

private java.lang.String _key
The string value for the key.

Constructor Detail

ConfigurationKeyImpl

public ConfigurationKeyImpl(java.lang.String k1)
Create a single component configuration key.

Parameters:
k1 - key component.

ConfigurationKeyImpl

public ConfigurationKeyImpl(ConfigurationKey ck,
                            java.lang.String k1)
Create a sub-component of an existing configuration key.

Parameters:
ck - configuration key
k1 - additional key component.

ConfigurationKeyImpl

public ConfigurationKeyImpl(java.lang.String k1,
                            java.lang.String k2)
Create a two-component configuration key.

Parameters:
k1 - key component 1.
k2 - key component 2.

ConfigurationKeyImpl

public ConfigurationKeyImpl(java.lang.String k1,
                            java.lang.String k2,
                            java.lang.String k3)
Create a three-component configuration key.

Parameters:
k1 - key component 1.
k2 - key component 2.
k3 - key component 3.

ConfigurationKeyImpl

public ConfigurationKeyImpl(java.lang.String k1,
                            java.lang.String k2,
                            java.lang.String k3,
                            java.lang.String k4)
Create a four-component configuration key.

Parameters:
k1 - key component 1.
k2 - key component 2.
k3 - key component 3.
k4 - key component 4.

ConfigurationKeyImpl

public ConfigurationKeyImpl(java.lang.String k1,
                            java.lang.String k2,
                            java.lang.String k3,
                            java.lang.String k4,
                            java.lang.String k5)
Create a five-component configuration key.

Parameters:
k1 - key component 1.
k2 - key component 2.
k3 - key component 3.
k4 - key component 4.
k5 - key component 5.
Method Detail

getKey

public final java.lang.String getKey()
Return the actual key used to access the configuration.

Specified by:
getKey in interface ConfigurationKey
Returns:
the key

isChangedProperty

public boolean isChangedProperty(java.beans.PropertyChangeEvent pce)
Compare the configuration key to a string.

Specified by:
isChangedProperty in interface ConfigurationKey
Parameters:
pce - PropertyChangeEvent to check
Returns:
true if the changed property is for the key.

toString

public java.lang.String toString()
Returns a formatted key.

Overrides:
toString in class java.lang.Object
Returns:
a formatted key string.


ArgoUML © 1996-2004 (20040306)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook