Class 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 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:
        getTypeName in interface Frame
        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:
        put in interface Map
        Overrides:
        put in class Hashtable
        Throws:
        ClassCastException - if key is not a String
      • putInteger

        public Object putInteger​(Object key,
                                 int val)
        Utility method to put a value of type int in this Frame.
      • getInteger

        public int getInteger​(Object key)
        Utility method to retrieve a value of type int from this Frame.
      • putBoolean

        public Object putBoolean​(Object key,
                                 boolean val)
        Utility method to put a value of type boolean in this Frame.
      • getBoolean

        public boolean getBoolean​(Object key)
        Utility method to retrieve a value of type boolean from this Frame.