All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.core.ProtectedProperties

java.lang.Object
    |
    +----java.util.Dictionary
            |
            +----java.util.Hashtable
                    |
                    +----java.util.Properties
                            |
                            +----weka.core.ProtectedProperties

public class ProtectedProperties
extends java.util.Properties
Simple class that extends the Properties class so that the properties are unable to be modified.

Version:
$Revision: 1.2 $
Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)

Constructor Index

 o ProtectedProperties(Properties)
Creates a set of protected properties from a set of normal ones.

Method Index

 o clear()
Overrides a method to prevent the properties from being modified.
 o load(InputStream)
Overrides a method to prevent the properties from being modified.
 o put(Object, Object)
Overrides a method to prevent the properties from being modified.
 o putAll(Map)
Overrides a method to prevent the properties from being modified.
 o remove(Object)
Overrides a method to prevent the properties from being modified.
 o setProperty(String, String)
Overrides a method to prevent the properties from being modified.

Constructor Detail

 o ProtectedProperties
public ProtectedProperties(java.util.Properties props)
          Creates a set of protected properties from a set of normal ones.
Parameters:
props - the properties to be stored and protected.

Method Detail

 o setProperty
public java.lang.Object setProperty(java.lang.String key,
                          java.lang.String value)
          Overrides a method to prevent the properties from being modified.
Returns:
never returns without throwing an exception.
Throws:
UnsupportedOperationException - always.
Overrides:
setProperty in class java.util.Properties
 o load
public void load(java.io.InputStream inStream)
          Overrides a method to prevent the properties from being modified.
Returns:
never returns without throwing an exception.
Throws:
UnsupportedOperationException - always.
Overrides:
load in class java.util.Properties
 o clear
public void clear()
          Overrides a method to prevent the properties from being modified.
Returns:
never returns without throwing an exception.
Throws:
UnsupportedOperationException - always.
Overrides:
clear in class java.util.Hashtable
 o put
public java.lang.Object put(java.lang.Object key,
                  java.lang.Object value)
          Overrides a method to prevent the properties from being modified.
Returns:
never returns without throwing an exception.
Throws:
UnsupportedOperationException - always.
Overrides:
put in class java.util.Hashtable
 o putAll
public void putAll(java.util.Map t)
          Overrides a method to prevent the properties from being modified.
Returns:
never returns without throwing an exception.
Throws:
UnsupportedOperationException - always.
Overrides:
putAll in class java.util.Hashtable
 o remove
public java.lang.Object remove(java.lang.Object key)
          Overrides a method to prevent the properties from being modified.
Returns:
never returns without throwing an exception.
Throws:
UnsupportedOperationException - always.
Overrides:
remove in class java.util.Hashtable

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home