org.openoffice.ide.eclipse.core.model
Class UnoFactoryData

java.lang.Object
  extended by org.openoffice.ide.eclipse.core.model.UnoFactoryData

public class UnoFactoryData
extends java.lang.Object

This class contains the data describing a the object to create by the Uno factory.

Author:
cedricbosdo

Constructor Summary
UnoFactoryData()
           
 
Method Summary
 void addInnerData(UnoFactoryData pData)
          Adds an inner data if it is neither null nor already present in the inner data.
 void dispose()
          Destroy the data content before being garbage collected.
 UnoFactoryData[] getInnerData()
           
 java.lang.String[] getKeys()
           
 java.lang.Object getProperty(java.lang.String pKey)
           
 void removeInnerData(UnoFactoryData pData)
          Removes an inner data if it isn't null and already present in the inner data.
 void setProperty(java.lang.String pKey, java.lang.Object pValue)
          Add or replace the property value associated with the key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnoFactoryData

public UnoFactoryData()
Method Detail

setProperty

public void setProperty(java.lang.String pKey,
                        java.lang.Object pValue)
Add or replace the property value associated with the key. Nothing happens if the key is null or an empty string.

Parameters:
pKey - the name of the property
pValue - the value of the property

getProperty

public java.lang.Object getProperty(java.lang.String pKey)
Parameters:
pKey - the key of the property to get.
Returns:
the property corresponding to the key or null if the key is null or an empty string or if there is such a key.

getKeys

public java.lang.String[] getKeys()
Returns:
an array of all the contained property keys

getInnerData

public UnoFactoryData[] getInnerData()
Returns:
an array of all the data contained by this data.

addInnerData

public void addInnerData(UnoFactoryData pData)
Adds an inner data if it is neither null nor already present in the inner data.

Parameters:
pData - the data to add

removeInnerData

public void removeInnerData(UnoFactoryData pData)
Removes an inner data if it isn't null and already present in the inner data.

Parameters:
pData - the data to remove

dispose

public void dispose()
Destroy the data content before being garbage collected.