public class DocumentDefinitionSizeAttributeHandler extends ReadOnlyAttributeHandler
Constructor and Description |
---|
DocumentDefinitionSizeAttributeHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(AttributeHandlerContext context)
Returns
true if this handler can handle the attribute
request on the given object instance. |
Object |
getValue(AttributeHandlerContext context)
Returns the value of an attribute.
|
canUpdate, setValue
public DocumentDefinitionSizeAttributeHandler()
public boolean canHandle(AttributeHandlerContext context) throws FdkException, IfsException
AttributeHandler
true
if this handler can handle the attribute
request on the given object instance. The necessary information to
determine which attribute is requested and what the underlying repository
object is will be packaged in the context.context
- The context when this handler is called.FdkException
- If a framework error occurs.IfsException
- If a repository exception occurs.public Object getValue(AttributeHandlerContext context) throws IfsException
AttributeHandler
RuntimeException
if canHandle()
returns
false
and this method is still being called.
Note that implementations which handle read-only attributes should
subclass ReadOnlyAttributeHandler
for convenience as they
would need to provide the read side methods only.
context
- The context when this handler is called.IfsException
- If a repository exception occurs.Copyright © 2023. All rights reserved.