jason.core
Class CustomProperties

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--jason.core.CustomProperties
All Implemented Interfaces:
ActionConfig, java.lang.Cloneable, java.util.Map, java.io.Serializable

public class CustomProperties
extends java.util.Properties
implements ActionConfig

Extension for the Properties object to have more practical access to specific type

Since:
1.0
See Also:
Properties, ServiceConfig, Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
CustomProperties()
           
 
Method Summary
 boolean getBooleanProperty(java.lang.String key)
           
 int getIntProperty(java.lang.String key)
           
 
Methods inherited from class java.util.Properties
getProperty, 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, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jason.core.ActionConfig
getProperty, getProperty
 

Constructor Detail

CustomProperties

public CustomProperties()
Method Detail

getIntProperty

public int getIntProperty(java.lang.String key)
Specified by:
getIntProperty in interface ActionConfig
Returns:
an int , cast a property value to integer

getBooleanProperty

public boolean getBooleanProperty(java.lang.String key)
Specified by:
getBooleanProperty in interface ActionConfig
Returns:
a boolean, cast a property value to a boolean (true/false)