public abstract class ReadOnlyAttributeHandler extends Object implements AttributeHandler
| Constructor and Description |
|---|
ReadOnlyAttributeHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUpdate(AttributeHandlerContext context)
This implementation always returns
false. |
AttributeUpdater |
setValue(AttributeHandlerContext context,
Object value)
This implementation always throws a
RuntimeException because
canUpdate() always returns false hence this
method should never be called. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanHandle, getValuepublic final boolean canUpdate(AttributeHandlerContext context)
false.canUpdate in interface AttributeHandlercontext - The context when this handler is called.public final AttributeUpdater setValue(AttributeHandlerContext context, Object value)
RuntimeException because
canUpdate() always returns false hence this
method should never be called.setValue in interface AttributeHandlercontext - The context when this handler is called.value - The value to set the attribute to.Copyright © 2025. All rights reserved.