Class FileContentsObjectWrapper

  • All Implemented Interfaces:
    java.io.Serializable

    public class FileContentsObjectWrapper
    extends java.lang.Object
    implements java.io.Serializable
    Title: FileContentsObjectWrapper class Description: (Serializable) An instance of this class represents an object that is stored on a file. The data structure is composed by: - A key (String) that will help on retrieving the requested set of nodes. Several objects on the file can have the same key value. - An Object which will hold the relevant information about the object being stored on the file. When retrieved, the Object instance can be casted to the original class it belonged to. As for int, boolean and char (basic) data types, they are mapped (when saving and retrieving) to instances of the Integer, Boolean and Char (?) classes. Copyright: Copyright (c) 2001 Company: MicroStrategy, Inc.
    Since:
    MicroStrategy Web 7.3.1 or earlier
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getContent()
      Returns the information stored on this instance.
      java.lang.String getKey()
      Returns the String value of the key for this instance.
      void setContent​(boolean value)
      Sets the value of the content for this instance to the a Boolean instance with the boolean value passed as parameter.
      void setContent​(int value)
      Sets the value of the content for this instance to the an Integer instance with the int value passed as parameter.
      void setContent​(java.lang.Object newObject)
      Sets the value of the content for this instance to the Object passed as parameter.
      void setKey​(java.lang.String value)
      Sets the value of the key for this instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileContentsObjectWrapper

        public FileContentsObjectWrapper()
        Class Constructor.
      • FileContentsObjectWrapper

        public FileContentsObjectWrapper​(java.lang.String key,
                                         java.lang.Object content)
        Class Constructor. Initializes the instance with the given key and the information from the Object instance.
        Parameters:
        key - String that can be used later on for retrieving specific instances
        content - Object instance that contains the information to be saved.
      • FileContentsObjectWrapper

        public FileContentsObjectWrapper​(java.lang.String key,
                                         int content)
        Class Constructor. For handling int data type information. Instantiates an Integer object to store the int value passed as parameter.
        Parameters:
        key - a String that can be used later on for retrieving specific instances
        content - an int value to be saved.
      • FileContentsObjectWrapper

        public FileContentsObjectWrapper​(java.lang.String key,
                                         boolean content)
        Class Constructor. For handling boolean data type information. Instantiates a Boolean object to store the boolean value passed as parameter.
        Parameters:
        key - String that can be used later on for retrieving specific instances
        content - A boolean value to be saved.
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Returns the String value of the key for this instance.
        Returns:
        the key for this element
      • setKey

        public void setKey​(java.lang.String value)
        Sets the value of the key for this instance.
        Parameters:
        value - String value to assign to the key of this instance.
      • getContent

        public java.lang.Object getContent()
        Returns the information stored on this instance.
        Returns:
        the information of this element
      • setContent

        public void setContent​(java.lang.Object newObject)
        Sets the value of the content for this instance to the Object passed as parameter.
        Parameters:
        newObject - Object to assign to the value of this instance.
      • setContent

        public void setContent​(int value)
        Sets the value of the content for this instance to the an Integer instance with the int value passed as parameter.
        Parameters:
        value - Value to assign to the information of this instance.
      • setContent

        public void setContent​(boolean value)
        Sets the value of the content for this instance to the a Boolean instance with the boolean value passed as parameter.
        Parameters:
        value - Value to assign to the information of this instance.