Package com.documentum.fc.common
Interface IDfProperties
public interface IDfProperties
This interface provides functionality for manipulating values in a hashable.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Represents the boolean datatype.static final int
Represents the double datatype.static final int
Represents the ID datatype.static final int
Represents the integer datatype.static final int
Represents a DfList object.static final int
Represents any Java object.static final int
Represents the string datatype.static final int
Represents the time datatype.static final int
Represents a DfValue object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears this hashtable so that it contains no property names.boolean
containsProperty
(String propertyName) Determines whether the specified property is stored in the object.boolean
containsValue
(Object propertyValue) Determines whether the value is present in the current list of values.Returns the object to which the specified property name is mapped to in the object.boolean
getBoolean
(String propertyName) Returns the boolean value to which the specified property name is mapped to in the object.int
getCount()
Get the number of property names and mapped values stored in this object.double
Returns the value to which the specified property name is mapped to in the object.Returns an IDfId interface to which the specified property name is mapped to in the object.int
Returns the value to which the specified property name is mapped to in the object.Returns an IDfList interface to which the specified property name is mapped to in the object.Returns the property names as an IDfList interface.int
getPropertyType
(String propertyName) Return the datatype of the mapped property value.Returns the string to which the specified property name is mapped to in the object.Returns an IDfTime interface to which the specified property name is mapped to in the object.Returns an IDfValue interface to which the specified property name is mapped to in the object.boolean
isEmpty()
Tests if this object maps no property names to values.void
Maps the specified property name to the specified Object property value.void
putBoolean
(String propertyName, boolean propertyValue) Maps the specified property name to the specified boolean property value.void
Maps the specified property name to the specified double property value.void
Maps the specified property name to the specified IDfId interface property value.void
Maps the specified property name to the specified integer property value.void
Maps the specified property name to the specified IDfList interface property value.void
Maps the specified property name to the specified string property value.void
Maps the specified property name to the specified IDfTime interface property value.void
Maps the specified property name to the specified IDfValue interface property value.void
Removes the specified property name and its associated value from the hashtable.
-
Field Details
-
DF_BOOLEAN
static final int DF_BOOLEANRepresents the boolean datatype.- See Also:
-
DF_INTEGER
static final int DF_INTEGERRepresents the integer datatype.- See Also:
-
DF_STRING
static final int DF_STRINGRepresents the string datatype.- See Also:
-
DF_ID
static final int DF_IDRepresents the ID datatype.- See Also:
-
DF_TIME
static final int DF_TIMERepresents the time datatype.- See Also:
-
DF_DOUBLE
static final int DF_DOUBLERepresents the double datatype.- See Also:
-
DF_OBJECT
static final int DF_OBJECTRepresents any Java object.- See Also:
-
DF_VALUE
static final int DF_VALUERepresents a DfValue object.- See Also:
-
DF_LIST
static final int DF_LISTRepresents a DfList object.- See Also:
-
-
Method Details
-
containsValue
Determines whether the value is present in the current list of values.- Parameters:
propertyValue
- the Object value to search for.- Returns:
- Returns
true
if the value is found; otherwise, returnsfalse
.
-
containsProperty
Determines whether the specified property is stored in the object.- Parameters:
propertyName
- the property name to search for.- Returns:
- Returns
true
if the property is found; otherwise, returnsfalse
.
-
get
Returns the object to which the specified property name is mapped to in the object.- Parameters:
propertyName
- the property name to search for.- Returns:
- the object to which the property name is mapped; null if the property name is not mapped.
-
getString
Returns the string to which the specified property name is mapped to in the object.- Parameters:
propertyName
- the property name to search for.- Returns:
- the string to which the property name is mapped; nothing if the property name is not mapped.
- Throws:
DfException
- if there is a type mismatch.
-
getBoolean
Returns the boolean value to which the specified property name is mapped to in the object.- Parameters:
propertyName
- the property name to search for.- Returns:
- the boolean value to which the property name is mapped;
false
if the property name. is not mapped. - Throws:
DfException
- if there is a type mismatch.
-
getDouble
Returns the value to which the specified property name is mapped to in the object.- Parameters:
propertyName
- the property name to search for.- Returns:
- the value to which the property name is mapped; 0 if the property name is not mapped.
- Throws:
DfException
- if there is a type mismatch.
-
getId
Returns an IDfId interface to which the specified property name is mapped to in the object.- Parameters:
propertyName
- the property name to search for.- Returns:
- an IDfId interface to which the property name is mapped; null if the property name is not mapped.
- Throws:
DfException
- if there is a type mismatch.
-
getInt
Returns the value to which the specified property name is mapped to in the object.- Parameters:
propertyName
- the property name to search for.- Returns:
- the value to which the property name is mapped; 0 if the property name is not mapped.
- Throws:
DfException
- if there is a type mismatch.
-
getList
Returns an IDfList interface to which the specified property name is mapped to in the object.- Parameters:
propertyName
- the property name to search for.- Returns:
- an IDfList interface to which the property name is mapped; null if the property name is not mapped.
- Throws:
DfException
- if there is a type mismatch.
-
getTime
Returns an IDfTime interface to which the specified property name is mapped to in the object.- Parameters:
propertyName
- the property name to search for.- Returns:
- an IDfTime interface to which the property name is mapped; null if the property name is not mapped.
- Throws:
DfException
- if there is a type mismatch.
-
getValue
Returns an IDfValue interface to which the specified property name is mapped to in the object.- Parameters:
propertyName
- the property name to search for.- Returns:
- an IDfValue interface to which the property name is mapped; null if the property name is not mapped.
- Throws:
DfException
- if there is a type mismatch.
-
put
Maps the specified property name to the specified Object property value.- Parameters:
propertyName
- the property name that will serve as the key.propertyValue
- the value that will be mapped to the property name.
-
putString
Maps the specified property name to the specified string property value.- Parameters:
propertyName
- the property name that will serve as the key.propertyValue
- the value that will be mapped to the property name.
-
putBoolean
Maps the specified property name to the specified boolean property value.- Parameters:
propertyName
- the property name that will serve as the key.propertyValue
- the value that will be mapped to the property name.
-
putDouble
Maps the specified property name to the specified double property value.- Parameters:
propertyName
- the property name that will serve as the key.propertyValue
- the value that will be mapped to the property name.
-
putId
Maps the specified property name to the specified IDfId interface property value.- Parameters:
propertyName
- the property name that will serve as the key.propertyValue
- the value that will be mapped to the property name.
-
putInt
Maps the specified property name to the specified integer property value.- Parameters:
propertyName
- the property name that will serve as the key.propertyValue
- the value that will be mapped to the property name.
-
putList
Maps the specified property name to the specified IDfList interface property value.- Parameters:
propertyName
- the property name that will serve as the key.propertyValue
- the value that will be mapped to the property name.
-
putTime
Maps the specified property name to the specified IDfTime interface property value.- Parameters:
propertyName
- the property name that will serve as the key.propertyValue
- the value that will be mapped to the property name.
-
putValue
Maps the specified property name to the specified IDfValue interface property value.- Parameters:
propertyName
- the property name that will serve as the key.propertyValue
- the value that will be mapped to the property name.
-
remove
Removes the specified property name and its associated value from the hashtable.- Parameters:
propertyName
- the property name that needs to be removed.
-
isEmpty
boolean isEmpty()Tests if this object maps no property names to values.- Returns:
true
if this hashtable maps no property names to values;false
otherwise.
-
getProperties
Returns the property names as an IDfList interface.- Returns:
- an IDfList interface containing the property names.
- Throws:
DfException
- if the list cannot be instantiated.
-
getCount
int getCount()Get the number of property names and mapped values stored in this object.- Returns:
- the number of property names and mapped values stored in this object.
-
clear
void clear()Clears this hashtable so that it contains no property names. -
getPropertyType
Return the datatype of the mapped property value.- Parameters:
propertyName
- the property name that will serve as the key.- Returns:
- the datatype of the mapped property value
- Throws:
DfException
- a DM_DFC_E_CLASS_NOT_FOUND exception.
-