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.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. - AnObject
which will hold the relevant information about the object being stored on the file. When retrieved, theObject
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
-
-
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.Object
getContent()
Returns the information stored on this instance.java.lang.String
getKey()
Returns theString
value of the key for this instance.void
setContent(boolean value)
Sets the value of the content for this instance to the aBoolean
instance with theboolean
value passed as parameter.void
setContent(int value)
Sets the value of the content for this instance to the anInteger
instance with theint
value passed as parameter.void
setContent(java.lang.Object newObject)
Sets the value of the content for this instance to theObject
passed as parameter.void
setKey(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
-String
that can be used later on for retrieving specific instancescontent
-Object
instance that contains the information to be saved.
-
FileContentsObjectWrapper
public FileContentsObjectWrapper(java.lang.String key, int content)
Class Constructor. For handlingint
data type information. Instantiates an Integer object to store theint
value passed as parameter.- Parameters:
key
- aString
that can be used later on for retrieving specific instancescontent
- anint
value to be saved.
-
FileContentsObjectWrapper
public FileContentsObjectWrapper(java.lang.String key, boolean content)
Class Constructor. For handlingboolean
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 instancescontent
- Aboolean
value to be saved.
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Returns theString
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 theObject
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 anInteger
instance with theint
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 aBoolean
instance with theboolean
value passed as parameter.- Parameters:
value
- Value to assign to the information of this instance.
-
-