public class MixedAttributeHandler extends ReadOnlyAttributeHandler
Constructor and Description |
---|
MixedAttributeHandler(Map classMap)
Constructor.
|
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 MixedAttributeHandler(Map classMap)
classMap
- A map from .class to an instance of AttributeHanderpublic 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 FdkException, 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.FdkException
- If a framework error occurs.IfsException
- If a repository exception occurs.Copyright © 2023. All rights reserved.