|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dss.metadataUtil.PropertyBag
An object that can have variable properties. A PropertyBag
contains a hashtable of properties. Methods in this class provide access to these properties.
Constructor Summary | |
PropertyBag() Constructor. |
Method Summary | |
int |
getIntPropertyValue(java.lang.String name) Retrieves the value of an int property. |
long |
getLongPropertyValue(java.lang.String name) Retrieves the value of a long property. |
java.lang.Object |
getObjPropertyValue(java.lang.String name) Retrieves the value of an Object property. |
int |
getPropertyDataType(java.lang.String name) Retrieves the data type of a property in this PropertyBag . |
java.util.Vector |
getStringVectorPropertyValue(java.lang.String name) Retrieves the vector of values of a String vector property. |
java.lang.String |
getStrPropertyValue(java.lang.String name) Retrieves the value of a String property. |
static PropertyBag |
mergePropertyBags(PropertyBag firstBag, PropertyBag secondBag) Merges two PropertyBag objects. |
void |
removeProperty(java.lang.String name) Removes a property from this PropertyBag . |
void |
setIntPropertyValue(java.lang.String name, int value) Specifies the value of an int property. |
void |
setIntPropertyValue(java.lang.String name, int value, int flags) Specifies the value of an int property and the user-interface flags. |
void |
setLongPropertyValue(java.lang.String name, long value) Specifies the value of a long property. |
void |
setLongPropertyValue(java.lang.String name, long value, int flags) Specifies the value of a long property and the user-interface flags. |
void |
setObjPropertyValue(java.lang.String name, java.lang.Object value) Specifies the value of an Object property. |
void |
setObjPropertyValue(java.lang.String name, java.lang.Object value, int flags) Specifies the value of an Object property and the user-interface flags. |
void |
setProperty(java.lang.String name, java.lang.Object object, int dataType, int flags) Adds a property to this PropertyBag . |
int |
setPropertyBag(PropertyBag propertyBag, int keepRemoveFlag) Set properties in specified propertyBag to this propertyBag. |
void |
setStringVectorPropertyValue(java.lang.String name, java.util.Vector value) Specifies the values of a String vector property. |
void |
setStringVectorPropertyValue(java.lang.String name, java.util.Vector value, int flags) Specifies the values of a String vector property and the user-interface flags. |
void |
setStrPropertyValue(java.lang.String name, java.lang.String value) Specifies the value of a String property. |
void |
setStrPropertyValue(java.lang.String name, java.lang.String value, int flags) Specifies the value of a String property and the user-interface flags. |
int |
size() Retrieves size of this PropertyBag . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyBag()
Method Detail |
public int size()
PropertyBag
. The size is the size of the internal vector of properties.public void removeProperty(java.lang.String name)
PropertyBag
.name
- Name of the property to remove.public int getPropertyDataType(java.lang.String name)
PropertyBag
.name
- The name of the property whose data type you want.name
property. Possible values are listed in the See Also section.MDU.STRING
, MDU.LONG
, MDU.INTEGER
, MDU.OBJ
, MDU.STRING_VECTOR
, MDU.ALL_DATATYPES
public void setProperty(java.lang.String name, java.lang.Object object, int dataType, int flags)
PropertyBag
. If a property already exists, then this method replaces the property value.name
- The name of the property to add.object
- The value of the property.dataType
- A constant that represents the data type of the property. Valid constants are:
STRING
LONG
INTEGER
OBJ
STRING_VECTOR
ALL_DATATYPES
flags
- A constant that indicates how the property appears in the user interface. Valid constants are:
UI_VISIBLE
UI_WRITE
UI_DELETE
UI_ENCRYPT
UI_ALL
UI_NONE
MDU.UI_VISIBLE
, MDU.UI_WRITE
, MDU.UI_DELETE
, MDU.UI_ENCRYPT
, MDU.UI_ALL
, MDU.UI_NONE
, MDU.STRING
, MDU.LONG
, MDU.INTEGER
, MDU.OBJ
, MDU.STRING_VECTOR
, MDU.ALL_DATATYPES
public java.lang.String getStrPropertyValue(java.lang.String name)
String
property.name
- The name of the property whose value you want.null
if the property has no value.public void setStrPropertyValue(java.lang.String name, java.lang.String value)
String
property. This method sets the user-interface flag to UI_NONE
.name
- The name of the property to set.value
- The value to set for name
.public void setStrPropertyValue(java.lang.String name, java.lang.String value, int flags)
String
property and the user-interface flags.name
- The name of the property to set.value
- The value to set for name
.flags
- User-interface flags. Valid values are listed in the See Also section.MDU.UI_VISIBLE
, MDU.UI_WRITE
, MDU.UI_DELETE
, MDU.UI_ENCRYPT
, MDU.UI_ALL
, MDU.UI_NONE
public long getLongPropertyValue(java.lang.String name)
long
property.name
- The name of the property whose value you want.MDU.ILLEGAL_LONG_VALUE
if the property is null
.MDU.ILLEGAL_LONG_VALUE
public void setLongPropertyValue(java.lang.String name, long value)
long
property. This method sets the user-interface flag to UI_NONE
.name
- The name of the property to set.value
- The value to set for name
.public void setLongPropertyValue(java.lang.String name, long value, int flags)
long
property and the user-interface flags.name
- The name of the property to set.value
- The value to set for name
.flags
- User-interface flags. Valid values are listed in the See Also section.MDU.UI_VISIBLE
, MDU.UI_WRITE
, MDU.UI_DELETE
, MDU.UI_ENCRYPT
, MDU.UI_ALL
, MDU.UI_NONE
public int getIntPropertyValue(java.lang.String name)
int
property.name
- The name of the property whose value you want.MDU.ILLEGAL_INT_VALUE
if the property value is null
.MDU.ILLEGAL_INT_VALUE
public void setIntPropertyValue(java.lang.String name, int value)
int
property. This method sets the user-interface flag to UI_NONE
.name
- The name of the property to set.value
- The value to set for name
.public void setIntPropertyValue(java.lang.String name, int value, int flags)
int
property and the user-interface flags.name
- The name of the property to set.value
- The value to set for name
.flags
- User-interface flags. Valid values are listed in the See Also section.MDU.UI_VISIBLE
, MDU.UI_WRITE
, MDU.UI_DELETE
, MDU.UI_ENCRYPT
, MDU.UI_ALL
, MDU.UI_NONE
public java.lang.Object getObjPropertyValue(java.lang.String name)
Object
property.name
- The name of the property whose value you want.null
if the property has no value.public void setObjPropertyValue(java.lang.String name, java.lang.Object value)
Object
property. This method sets the user-interface flag to UI_NONE
.name
- The name of the property to set.value
- The value to set for name
.public void setObjPropertyValue(java.lang.String name, java.lang.Object value, int flags)
Object
property and the user-interface flags.name
- The name of the property to set.value
- The value to set for name
.flags
- User-interface flags. Valid values are listed in the See Also section.MDU.UI_VISIBLE
, MDU.UI_WRITE
, MDU.UI_DELETE
, MDU.UI_ENCRYPT
, MDU.UI_ALL
, MDU.UI_NONE
public java.util.Vector getStringVectorPropertyValue(java.lang.String name)
String
vector property.name
- The name of the property whose values you want.null
if no values have been set.public void setStringVectorPropertyValue(java.lang.String name, java.util.Vector value)
String
vector property. This method sets the user-interface flag to UI_NONE
.name
- The name of the property to set.value
- The values to set for name
.public void setStringVectorPropertyValue(java.lang.String name, java.util.Vector value, int flags)
String
vector property and the user-interface flags.name
- The name of the property to set.value
- The vector of values to set for name
.flags
- User-interface flags. Valid values are listed in the See Also section.MDU.UI_VISIBLE
, MDU.UI_WRITE
, MDU.UI_DELETE
, MDU.UI_ENCRYPT
, MDU.UI_ALL
, MDU.UI_NONE
public int setPropertyBag(PropertyBag propertyBag, int keepRemoveFlag)
propertyBag
- propertyBag that needs to be set to this
.keepRemoveFlag
- KEEP
keep the existing properties REMOVE
remove all existing properties and add new ones.SUCCESS
FAILURE
MDU.KEEP
, MDU.REMOVE
, MDU.SUCCESS
, MDU.FAILURE
public static PropertyBag mergePropertyBags(PropertyBag firstBag, PropertyBag secondBag)
PropertyBag
objects. If the two property bags contain the same property, then the value that is specified in the first property bag is used. The value in the second property bag is discarded.firstBag
- First property bag to merge.secondbag
- Second property bag to merge.firstBag
and the properties in secondBag
.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |