| java.lang.Object | |
| ↳ | com.microstrategy.web.app.utils.FileContentsObjectWrapper |
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.
| 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
| |||||||||||
Class Constructor.
Class Constructor. Initializes the instance with the given key and the information from the Object instance.
| key | String that can be used later on for retrieving specific
instances |
|---|---|
| content | Object instance that contains the information to be saved.
|
Class Constructor. For handling int data type information. Instantiates
an Integer object to store the int value passed as parameter.
| key | a String that can be used later on for retrieving specific
instances |
|---|---|
| content | an int value to be saved.
|
Class Constructor. For handling boolean data type information. Instantiates
a Boolean object to store the boolean value passed as parameter.
| key | String that can be used later on for retrieving specific
instances |
|---|---|
| content | A boolean value to be saved.
|
Returns the information stored on this instance.
Returns the String value of the key for this instance.
Sets the value of the content for this instance to the a Boolean instance
with the boolean value passed as parameter.
| value | Value to assign to the information of this instance. |
|---|
Sets the value of the content for this instance to the Object passed as
parameter.
| newObject | Object to assign to the value of this instance.
|
|---|
Sets the value of the content for this instance to the an Integer instance
with the int value passed as parameter.
| value | Value to assign to the information of this instance. |
|---|
Sets the value of the key for this instance.
| value | String value to assign to the key of this instance.
|
|---|