public class

FileContentsObjectWrapper

extends Object
implements Serializable
java.lang.Object
   ↳ com.microstrategy.web.app.utils.FileContentsObjectWrapper

Class Overview

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.

Summary

Public Constructors
FileContentsObjectWrapper()
Class Constructor.
FileContentsObjectWrapper(String key, Object content)
Class Constructor.
FileContentsObjectWrapper(String key, int content)
Class Constructor.
FileContentsObjectWrapper(String key, boolean content)
Class Constructor.
Public Methods
Object getContent()
Returns the information stored on this instance.
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(Object newObject)
Sets the value of the content for this instance to the Object 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 setKey(String value)
Sets the value of the key for this instance.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FileContentsObjectWrapper ()

Class Constructor.

public FileContentsObjectWrapper (String key, 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.

public FileContentsObjectWrapper (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.

public FileContentsObjectWrapper (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.

Public Methods

public Object getContent ()

Returns the information stored on this instance.

Returns
  • the information of this element

public String getKey ()

Returns the String value of the key for this instance.

Returns
  • the key for this element

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.

public void setContent (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.

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.

public void setKey (String value)

Sets the value of the key for this instance.

Parameters
value String value to assign to the key of this instance.