XProperties 1.0.3

at.spardat.properties
Class ExtendedProperties

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byat.spardat.properties.ExtendedProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ExtendedProperties
extends java.util.Properties

extended version of java.util.Properties which supports:

  • variable replacement
  • include
  • property attributes
  • property conditions Objects of this class are for internal use of the property API only.

    See Also:
    Serialized Form

    Field Summary
     
    Fields inherited from class java.util.Properties
    defaults
     
    Constructor Summary
    ExtendedProperties()
               
    ExtendedProperties(java.lang.ClassLoader loader)
               
    ExtendedProperties(PropertyData data)
               
     
    Method Summary
     PropertyData getData()
               
     java.lang.String getProperty(java.lang.String key)
               
     java.lang.Object put(java.lang.Object key, java.lang.Object value)
              this method is called during parsing of the input file.
     void read(java.io.InputStream stream)
              the designated method to read properties from an inputstream. do not use the load method of java.util.Properties as this method may only throw a IOException
     
    Methods inherited from class java.util.Properties
    getProperty, list, list, load, propertyNames, save, setProperty, store
     
    Methods inherited from class java.util.Hashtable
    clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, putAll, rehash, remove, size, toString, values
     
    Methods inherited from class java.lang.Object
    finalize, getClass, notify, notifyAll, wait, wait, wait
     

    Constructor Detail

    ExtendedProperties

    public ExtendedProperties()

    ExtendedProperties

    public ExtendedProperties(java.lang.ClassLoader loader)

    ExtendedProperties

    public ExtendedProperties(PropertyData data)
    Method Detail

    getData

    public PropertyData getData()

    read

    public void read(java.io.InputStream stream)
              throws java.io.IOException,
                     PropertyException
    the designated method to read properties from an inputstream. do not use the load method of java.util.Properties as this method may only throw a IOException

    Parameters:
    stream - InputStream from which the properties msut be loaded
    Throws:
    java.io.IOException
    PropertyException

    put

    public java.lang.Object put(java.lang.Object key,
                                java.lang.Object value)
    this method is called during parsing of the input file. It's the right place to check if enhanced features need to be processed

    See Also:
    Dictionary.put(java.lang.Object, java.lang.Object)

    getProperty

    public java.lang.String getProperty(java.lang.String key)
    See Also:
    Properties.getProperty(java.lang.String)

    XProperties 1.0.3