org.mevenide.properties.resolver
Class PropertyFilesAggregator

java.lang.Object
  extended byorg.mevenide.properties.resolver.PropertyFilesAggregator
All Implemented Interfaces:
IPropertyFinder, IPropertyLocator, IPropertyResolver

public class PropertyFilesAggregator
extends java.lang.Object
implements IPropertyResolver, IPropertyLocator

Author:
Milos Kleint

Field Summary
 
Fields inherited from interface org.mevenide.properties.IPropertyLocator
LOCATION_DEFAULTS, LOCATION_NOT_DEFINED, LOCATION_PARENT_PROJECT, LOCATION_PARENT_PROJECT_BUILD, LOCATION_PROJECT, LOCATION_PROJECT_BUILD, LOCATION_SYSENV, LOCATION_USER_BUILD
 
Method Summary
 java.util.Set getKeysAtLocation(int location)
          returns all the keys at the given location.
 int getPropertyLocation(java.lang.String key)
          IPropertyLocator method, identifying where the property comes from.
 java.lang.String getResolvedValue(java.lang.String key)
          Returns the value for the given key, if found.
 java.lang.String getValue(java.lang.String key)
          Returns the value for the given key, if found.
protected  java.lang.String getValue(java.lang.String key, boolean resolve)
           
 java.lang.String getValueAtLocation(java.lang.String key, int location)
          get the value of the property as defined at the given location
 boolean isDefinedInLocation(java.lang.String key, int location)
          the return value indicates if the property is defined in the particular properties file.
 void reload()
          releases any cached values and reloads the properties file.
protected  java.lang.StringBuffer resolve(java.lang.StringBuffer value)
           
 java.lang.String resolveString(java.lang.String original)
          processes the parameter any definitions with their values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResolvedValue

public java.lang.String getResolvedValue(java.lang.String key)
Description copied from interface: IPropertyResolver
Returns the value for the given key, if found. Otherwise null.

Specified by:
getResolvedValue in interface IPropertyResolver

getValue

public java.lang.String getValue(java.lang.String key)
Description copied from interface: IPropertyFinder
Returns the value for the given key, if found. Otherwise null.

Specified by:
getValue in interface IPropertyFinder

getValue

protected java.lang.String getValue(java.lang.String key,
                                    boolean resolve)

getPropertyLocation

public int getPropertyLocation(java.lang.String key)
IPropertyLocator method, identifying where the property comes from.

Specified by:
getPropertyLocation in interface IPropertyLocator

resolve

protected final java.lang.StringBuffer resolve(java.lang.StringBuffer value)

reload

public void reload()
Deprecated. makes no sense for IQueryContext based instances.

Description copied from interface: IPropertyFinder
releases any cached values and reloads the properties file.

Specified by:
reload in interface IPropertyFinder

resolveString

public java.lang.String resolveString(java.lang.String original)
Description copied from interface: IPropertyResolver
processes the parameter any definitions with their values.

Specified by:
resolveString in interface IPropertyResolver

isDefinedInLocation

public boolean isDefinedInLocation(java.lang.String key,
                                   int location)
Description copied from interface: IPropertyLocator
the return value indicates if the property is defined in the particular properties file.

Specified by:
isDefinedInLocation in interface IPropertyLocator

getValueAtLocation

public java.lang.String getValueAtLocation(java.lang.String key,
                                           int location)
Description copied from interface: IPropertyLocator
get the value of the property as defined at the given location

Specified by:
getValueAtLocation in interface IPropertyLocator

getKeysAtLocation

public java.util.Set getKeysAtLocation(int location)
returns all the keys at the given location.

Specified by:
getKeysAtLocation in interface IPropertyLocator


Copyright © 2003-2005 The Codehaus. All Rights Reserved.