org.openoffice.da.comp.w2lcommon.helper
Class XPropertySetHelper

java.lang.Object
  extended by org.openoffice.da.comp.w2lcommon.helper.XPropertySetHelper

public class XPropertySetHelper
extends java.lang.Object

Helper class providing staic convenience methods for accesing an XPropertySet The helpers will fail silently if names or data is provided, but the user is expected to apply them with correct data only...


Constructor Summary
XPropertySetHelper()
           
 
Method Summary
static java.lang.Object getPropertyValue(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
           
static boolean getPropertyValueAsBoolean(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
           
static int getPropertyValueAsInteger(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
           
static short getPropertyValueAsShort(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
           
static java.lang.String getPropertyValueAsString(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
           
static void setPropertyValue(com.sun.star.beans.XPropertySet xProps, java.lang.String sName, boolean bValue)
           
static void setPropertyValue(com.sun.star.beans.XPropertySet xProps, java.lang.String sName, int nValue)
           
static void setPropertyValue(com.sun.star.beans.XPropertySet xProps, java.lang.String sName, java.lang.Object value)
           
static void setPropertyValue(com.sun.star.beans.XPropertySet xProps, java.lang.String sName, short nValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPropertySetHelper

public XPropertySetHelper()
Method Detail

getPropertyValue

public static java.lang.Object getPropertyValue(com.sun.star.beans.XPropertySet xProps,
                                                java.lang.String sName)

setPropertyValue

public static void setPropertyValue(com.sun.star.beans.XPropertySet xProps,
                                    java.lang.String sName,
                                    java.lang.Object value)

getPropertyValueAsString

public static java.lang.String getPropertyValueAsString(com.sun.star.beans.XPropertySet xProps,
                                                        java.lang.String sName)

getPropertyValueAsInteger

public static int getPropertyValueAsInteger(com.sun.star.beans.XPropertySet xProps,
                                            java.lang.String sName)

setPropertyValue

public static void setPropertyValue(com.sun.star.beans.XPropertySet xProps,
                                    java.lang.String sName,
                                    int nValue)

getPropertyValueAsShort

public static short getPropertyValueAsShort(com.sun.star.beans.XPropertySet xProps,
                                            java.lang.String sName)

setPropertyValue

public static void setPropertyValue(com.sun.star.beans.XPropertySet xProps,
                                    java.lang.String sName,
                                    short nValue)

getPropertyValueAsBoolean

public static boolean getPropertyValueAsBoolean(com.sun.star.beans.XPropertySet xProps,
                                                java.lang.String sName)

setPropertyValue

public static void setPropertyValue(com.sun.star.beans.XPropertySet xProps,
                                    java.lang.String sName,
                                    boolean bValue)