Package com.microstrategy.web.app.utils
Class FileContentsObjectWrapper
- java.lang.Object
 - 
- com.microstrategy.web.app.utils.FileContentsObjectWrapper
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
public class FileContentsObjectWrapper extends java.lang.Object implements java.io.SerializableTitle: 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. - AnObjectwhich will hold the relevant information about the object being stored on the file. When retrieved, theObjectinstance 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
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FileContentsObjectWrapper()Class Constructor.FileContentsObjectWrapper(java.lang.String key, boolean content)Class Constructor.FileContentsObjectWrapper(java.lang.String key, int content)Class Constructor.FileContentsObjectWrapper(java.lang.String key, java.lang.Object content)Class Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContent()Returns the information stored on this instance.java.lang.StringgetKey()Returns theStringvalue of the key for this instance.voidsetContent(boolean value)Sets the value of the content for this instance to the aBooleaninstance with thebooleanvalue passed as parameter.voidsetContent(int value)Sets the value of the content for this instance to the anIntegerinstance with theintvalue passed as parameter.voidsetContent(java.lang.Object newObject)Sets the value of the content for this instance to theObjectpassed as parameter.voidsetKey(java.lang.String value)Sets the value of the key for this instance. 
 - 
 
- 
- 
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-Stringthat can be used later on for retrieving specific instancescontent-Objectinstance that contains the information to be saved.
 
- 
FileContentsObjectWrapper
public FileContentsObjectWrapper(java.lang.String key, int content)Class Constructor. For handlingintdata type information. Instantiates an Integer object to store theintvalue passed as parameter.- Parameters:
 key- aStringthat can be used later on for retrieving specific instancescontent- anintvalue to be saved.
 
- 
FileContentsObjectWrapper
public FileContentsObjectWrapper(java.lang.String key, boolean content)Class Constructor. For handlingbooleandata type information. Instantiates a Boolean object to store the boolean value passed as parameter.- Parameters:
 key-Stringthat can be used later on for retrieving specific instancescontent- Abooleanvalue to be saved.
 
 - 
 
- 
Method Detail
- 
getKey
public java.lang.String getKey()
Returns theStringvalue 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-Stringvalue 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 theObjectpassed as parameter.- Parameters:
 newObject-Objectto assign to the value of this instance.
 
- 
setContent
public void setContent(int value)
Sets the value of the content for this instance to the anIntegerinstance with theintvalue 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 aBooleaninstance with thebooleanvalue passed as parameter.- Parameters:
 value- Value to assign to the information of this instance.
 
 - 
 
 -