Package com.documentum.fc.client
Interface IDfType
- All Superinterfaces:
IDfPersistentObject
,IDfTypedObject
This interface provides access to type-related data stored in type objects. A type object may represent a
persistent type, such as dm_document, or a non-persistent type, such as data returned from a query.
-
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 the string datatype.static final int
Represents the time, or date, datatype.static final int
Represents an undefined datatype.Fields inherited from interface com.documentum.fc.client.IDfPersistentObject
CURRENCY_CHECK_ALWAYS, CURRENCY_CHECK_FIRST_ACCESS, CURRENCY_CHECK_NEVER, CURRENCY_CHECK_ONCE_PER_SCOPE
-
Method Summary
Modifier and TypeMethodDescriptionint
findTypeAttrIndex
(String attrName) Returns the index of an attribute.Returns the user-defined label for a type.getName()
Returns a type's name.Returns the name of a type's supertype.Returns a type's super type.getTypeAttr
(int attrIndex) Returns an IDfAttr representing the type's attribute located at the positionattrIndex
in this object's list of attributes.getTypeAttrAssistanceWithValues
(String attrName, IDfId policyId, String state, IDfList depAttrNameList, IDfList depAttrValueListList) Deprecated.getTypeAttrAsstDependencies
(String attrName, IDfId policyId, String state) Deprecated.int
Returns the number of attributes in a type.int
getTypeAttrDataType
(String attrName) Returns the datatype of an attribute.int
getTypeAttrDataTypeAt
(int index) Returns the datatype of an attribute.getTypeAttrDescription
(String attrName) Returns the user-defined label for an attribute.getTypeAttrDescriptionAt
(int index) Returns the user-defined label for an attribute.int
getTypeAttrLength
(String attrName) Returns the maximum number of characters in a string-valued attribute.int
getTypeAttrLengthAt
(int index) Returns the maximum number of characters in a string-valued attribute.getTypeAttrNameAt
(int index) Returns an attribute name for a type.getTypeValidator
(IDfId policyId, String state) Returns the IDfValidator that is assocated with this IDfType.getTypeWidgetType
(int environment, String attrName, IDfId policyId, String state) Deprecated.boolean
isSubTypeOf
(String typeName) Indicates whether a type is a subtype of typetypeName
.boolean
isTypeAttrRepeating
(String attrName) Indicates whether an attribute is repeating.boolean
isTypeAttrRepeatingAt
(int index) Indicates whether an attribute is repeating.boolean
Returns true if an object of this type is also an object of typetypeName
.void
validateTypeAttrRulesWithValue
(String attrName, IDfId policyId, String state, String value, IDfList depAttrNameList, IDfList depAttrValueListList, int stopAfterNumOfErrors) Deprecated.void
validateTypeAttrRulesWithValues
(String attrName, IDfId policyId, String state, IDfList values, IDfList depAttrNameList, IDfList depAttrValueListList, int stopAfterNumOfErrors) Deprecated.void
validateTypeObjRulesWithValues
(IDfList attrNameList, IDfId policyId, String state, IDfList valueListList, int stopAfterNumOfErrors) Deprecated.Methods inherited from interface com.documentum.fc.client.IDfPersistentObject
addChildRelative, addParentRelative, apiExec, apiGet, apiSet, destroy, fetch, fetchWithCaching, getAttrAssistance, getAttrAssistanceWithValues, getAttrAsstDependencies, getChildRelatives, getParentRelatives, getPartition, getType, getValidator, getVStamp, getWidgetType, isDeleted, isDirty, isInstanceOf, isNew, isReplica, lock, lockEx, registerEvent, removeChildRelative, removeParentRelative, revert, save, setPartition, signoff, unRegisterEvent, unRegisterEventEx, validateAllRules, validateAttrRules, validateAttrRulesWithValue, validateAttrRulesWithValues, validateObjRules, validateObjRulesWithValues
Methods inherited from interface com.documentum.fc.client.IDfTypedObject
appendBoolean, appendDouble, appendId, appendInt, appendString, appendTime, appendValue, dump, enumAttrs, findAttrIndex, findBoolean, findDouble, findId, findInt, findString, findTime, findValue, getAllRepeatingStrings, getAttr, getAttrCount, getAttrDataType, getBoolean, getDouble, getId, getInt, getLong, getObjectId, getObjectSession, getOriginalSession, getRepeatingBoolean, getRepeatingDouble, getRepeatingId, getRepeatingInt, getRepeatingLong, getRepeatingString, getRepeatingTime, getRepeatingValue, getSession, getSessionManager, getString, getTime, getValue, getValueAt, getValueCount, hasAttr, insertBoolean, insertDouble, insertId, insertInt, insertString, insertTime, insertValue, isAttrRepeating, isNull, remove, removeAll, setBoolean, setDouble, setId, setInt, setNull, setRepeatingBoolean, setRepeatingDouble, setRepeatingId, setRepeatingInt, setRepeatingString, setRepeatingTime, setRepeatingValue, setSessionManager, setString, setTime, setValue, truncate
-
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, or date, datatype.- See Also:
-
DF_DOUBLE
static final int DF_DOUBLERepresents the double datatype.- See Also:
-
DF_UNDEFINED
static final int DF_UNDEFINEDRepresents an undefined datatype.- See Also:
-
-
Method Details
-
getName
Returns a type's name.- Throws:
DfException
- if a server error occurs
-
getSuperName
Returns the name of a type's supertype.- Throws:
DfException
- if a server error occurs
-
getDescription
Returns the user-defined label for a type.- Throws:
DfException
- if a server error occurs
-
getSuperType
Returns a type's super type. If the type does not have a supertype, this method returnsNULL
.- Throws:
DfException
- thrown if the supertype exists but cannot be found or if a server error occurs
-
isTypeOf
Returns true if an object of this type is also an object of typetypeName
.- Throws:
DfException
- if an error occurs
-
isSubTypeOf
Indicates whether a type is a subtype of typetypeName
. Note: This method returns false if its argument is not a direct supertype of the given type.- Throws:
DfException
- if a server error occurs
-
findTypeAttrIndex
Returns the index of an attribute.This method returns -1 if the specified attribute does not exist.
- Throws:
DfException
- if a server error occurs
-
getTypeAttrCount
Returns the number of attributes in a type.- Throws:
DfException
- if a server error occurs
-
getTypeAttr
Returns an IDfAttr representing the type's attribute located at the positionattrIndex
in this object's list of attributes.- Parameters:
attrIndex
- the index position of the attribute among the object's types- Returns:
- an IDfAttr interface to the attribute
- Throws:
DfException
- if a server error occurs- See Also:
-
getTypeAttrNameAt
Returns an attribute name for a type.- Throws:
DfException
- if a server error occurs
-
getTypeAttrDataType
Returns the datatype of an attribute. The following list specifies the datatype corresponding to all possible return values:Value Datatype 0 Boolean 1 Integer 2 String 3 ID 4 Time, or date 5 Double 6 Undefined
- Throws:
DfException
- if a server error occurs
-
getTypeAttrDataTypeAt
Returns the datatype of an attribute. The following list specifies the datatype corresponding to all return values.Value Datatype 0 Boolean 1 Integer 2 String 3 ID 4 Time, or date 5 Double 6 Undefined
- Throws:
DfException
- if a server error occurs
-
isTypeAttrRepeating
Indicates whether an attribute is repeating.- Throws:
DfException
- if a server error occurs
-
isTypeAttrRepeatingAt
Indicates whether an attribute is repeating.- Throws:
DfException
- if a server error occurs
-
getTypeAttrLength
Returns the maximum number of characters in a string-valued attribute.This method returns 0 for all attributes storing non-string values.
- Throws:
DfException
- if a server error occurs
-
getTypeAttrLengthAt
Returns the maximum number of characters in a string-valued attribute.This method returns 0 for all attributes storing non-string values.
- Throws:
DfException
- if a server error occurs
-
getTypeAttrDescription
Returns the user-defined label for an attribute.- Throws:
DfException
- if a server error occurs
-
getTypeAttrDescriptionAt
Returns the user-defined label for an attribute.- Throws:
DfException
- if a server error occurs
-
getTypeValidator
Returns the IDfValidator that is assocated with this IDfType. IDfValidator provides validation-related services. Attribute level validation results could vary depending on the attribute values of its depending attributes.- Returns:
- the IDfValidator that is assocated with this IDfType
- Throws:
DfException
-
validateTypeAttrRulesWithValue
void validateTypeAttrRulesWithValue(String attrName, IDfId policyId, String state, String value, IDfList depAttrNameList, IDfList depAttrValueListList, int stopAfterNumOfErrors) throws DfException Deprecated.Validates a user-supplied value. THIS METHOD IS DEPRECATED -- use getTypeValidator and then call validateAttrRules on IDfValidator with the appropriate parameters instead.- Throws:
DfException
-
validateTypeAttrRulesWithValues
void validateTypeAttrRulesWithValues(String attrName, IDfId policyId, String state, IDfList values, IDfList depAttrNameList, IDfList depAttrValueListList, int stopAfterNumOfErrors) throws DfException Deprecated.Validates a list of user-supplied values. THIS METHOD IS DEPRECATED -- use getTypeValidator and then call validateAttrRules on IDfValidator with the appropriate parameters instead.- Throws:
DfException
-
validateTypeObjRulesWithValues
void validateTypeObjRulesWithValues(IDfList attrNameList, IDfId policyId, String state, IDfList valueListList, int stopAfterNumOfErrors) throws DfException Deprecated.Performs object-level validation on a list of user-supplied values. THIS METHOD IS DEPRECATED -- use getTypeValidator and then call validateAllObjRules on IDfValidator with the appropriate parameters instead.- Parameters:
stopAfterNumOfErrors
- The maximum number of violations this method will detect Pass zero to this parameter if you want the method to finish validating regardless of the number of violations- Throws:
DfException
-
getTypeAttrAsstDependencies
IDfList getTypeAttrAsstDependencies(String attrName, IDfId policyId, String state) throws DfException Deprecated.Lists the attributes on which an attribute's validation rule depends. THIS METHOD IS DEPRECATED -- use getTypeValidator and then call getValueAssistanceDependencies on IDfValidator with the appropriate parameters instead.- Throws:
DfException
- if a server error occurs
-
getTypeAttrAssistanceWithValues
IDfList getTypeAttrAssistanceWithValues(String attrName, IDfId policyId, String state, IDfList depAttrNameList, IDfList depAttrValueListList) throws DfException Deprecated.Lists all legal values for an attribute. The first element (at index 0) of the return value is a list of possible actual values for the specified attribute. The second element (at index 1) of the return value is a list of the possible values being value-mapped.
For example,getTypeAttrAssistance(String attrName, IDfId policyId, String state).getList(0)
will return a list of possible actual values;getTypeAttrAssistance(String attrName, IDfId policyId, String state).getList(1)
will return a list of value-mapped possible values. THIS METHOD IS DEPRECATED -- use getTypeValidator and then call getValueAssistance on IDfValidator with the appropriate parameters to get IDfValueAssistance.- Throws:
DfException
- if a server error occurs
-
getTypeWidgetType
String getTypeWidgetType(int environment, String attrName, IDfId policyId, String state) throws DfException Deprecated.Returns the appropriate widget to use, given specific development environment, attribute, business policy and the state of the business policy. If you are developing in a Java environment, this method returns the Class name of the appropriate widget. If you are developing in a Visual Basic or Visual C++ environment, the widget's CLSID is returned. THIS METHOD IS DEPRECATED -- use getTypeValidator and then call getWidgetType on IDfValidator with the appropriate parameters instead.- Throws:
DfException
- if a server error occurs
-