Retrieves the maximum length of an
attribute from the business object definition.
Syntax
public int getMaxLength(String attrName);
public int getMaxLength(int position);
Parameters
- attrName
- Is the name of an attribute whose maximum length is retrieved.
- position
- Is an integer that specifies the ordinal position of an attribute in the
business object's attribute list.
Return values
An integer that specifies the maximum length, in bytes, that an attribute
value can have.
Exceptions
- AttributeNotFound
- Thrown if the position or name specified is not valid for the definition
of this business object.
- InvalidAttributePropertyException
- Thrown if the method is called on an object-type attribute.
