Determines if an
attribute value has the same data type as a specified value.
Syntax
public boolean isType(String attrName, Object value);
public boolean isType(int position, Object value);
Parameters
- attrName
- Is the name of an attribute whose data type is compared with the specified
attribute value.
- position
- Is an integer that specifies the ordinal position of an attribute in the
business object's attribute list.
- value
- Is the value whose data type is compared with the attribute value.
Return values
Returns true if the type of the attribute matches the passed-in
type; otherwise, returns false.
Exceptions
- AttributeNotFoundException
- Thrown if the position or name specified is not valid for the definition
of this business object.
