Package jade.content.frame
Class QualifiedFrame
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable
-
- jade.content.frame.QualifiedFrame
-
- All Implemented Interfaces:
Frame,Serializable,Cloneable,Map
public class QualifiedFrame extends Hashtable implements Frame
Generic class representing all frames (such as concepts and predicates) whose composing elements can be retrieved by a unique name.- Author:
- Giovanni Caire - TILAB
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QualifiedFrame(String typeName)Create a QualifiedFrame with a given type-name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBoolean(Object key)Utility method to retrieve a value of typebooleanfrom this Frame.intgetInteger(Object key)Utility method to retrieve a value of typeintfrom this Frame.StringgetTypeName()Retrieve the type-name of this QualifiedFrame.Objectput(Object key, Object val)Redefine the put() method so that keys must be String and setting a null value for a given key is interpreted as removing the entry.ObjectputBoolean(Object key, boolean val)Utility method to put a value of typebooleanin this Frame.ObjectputInteger(Object key, int val)Utility method to put a value of typeintin this Frame.-
Methods inherited from class java.util.Hashtable
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
-
-
-
-
Constructor Detail
-
QualifiedFrame
public QualifiedFrame(String typeName)
Create a QualifiedFrame with a given type-name.- Parameters:
typeName- The type-name of the QualifiedFrame to be created.
-
-
Method Detail
-
getTypeName
public String getTypeName()
Retrieve the type-name of this QualifiedFrame.- Specified by:
getTypeNamein interfaceFrame- Returns:
- the type-name of this QualifiedFrame
-
put
public Object put(Object key, Object val)
Redefine the put() method so that keys must be String and setting a null value for a given key is interpreted as removing the entry.- Specified by:
putin interfaceMap- Overrides:
putin classHashtable- Throws:
ClassCastException- ifkeyis not a String
-
putInteger
public Object putInteger(Object key, int val)
Utility method to put a value of typeintin this Frame.
-
getInteger
public int getInteger(Object key)
Utility method to retrieve a value of typeintfrom this Frame.
-
putBoolean
public Object putBoolean(Object key, boolean val)
Utility method to put a value of typebooleanin this Frame.
-
getBoolean
public boolean getBoolean(Object key)
Utility method to retrieve a value of typebooleanfrom this Frame.
-
-