Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.ifs.fdk.impl.ah
Class NameAttributeHandler

    java.lang.Object
      oracle.ifs.fdk.impl.ah.ReadOnlyAttributeHandler
          oracle.ifs.fdk.impl.ah.NameAttributeHandler

All Implemented Interfaces:
  AttributeHandler

    public class NameAttributeHandler

extends ReadOnlyAttributeHandler

Returns the name of an attribute.

Constructor Summary
`NameAttributeHandler(java.util.Map classMap)` Constructor.

Method Summary
`boolean` | `canHandle(AttributeHandlerContext context)` Always returns `true` as all objects have a name attribute (though the value could be `null`).
`java.lang.String` | `getName(LibraryObject reposObject)` Helper method called as an optimization from the AttributeHelper.
`java.lang.Object` | `getValue(AttributeHandlerContext context)` Returns the value of an attribute.

Methods inherited from class oracle.ifs.fdk.impl.ah.ReadOnlyAttributeHandler
`canUpdate, setValue`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NameAttributeHandler

    public NameAttributeHandler(java.util.Map classMap)

  Constructor. It can only be called once.

  Parameters:
    `classMap` - List of exceptions for classes that need to map a special attribute to the name attribute. The map key if the .class and the value is the uppercase name of the repository attribute.

Method Detail

### canHandle

    public final boolean canHandle(AttributeHandlerContext context)

  Description copied from class: `NameAttributeHandler`
  Always returns `true` as all objects have a name attribute (though the value could be `null`).

  Parameters:
    `context` - The context when this handler is called.

### getValue

    public final java.lang.Object getValue(AttributeHandlerContext context)
                                    throws IfsException

  Description copied from interface: `AttributeHandler`
  Returns the value of an attribute. This method must throw a `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.

  Parameters:
    `context` - The context when this handler is called.
  Throws:
    `IfsException` - If a repository exception occurs.

### getName

    public final java.lang.String getName(LibraryObject reposObject)
                                   throws IfsException

  Description copied from class: `NameAttributeHandler`
  Helper method called as an optimization from the AttributeHelper.

  Throws:
    `IfsException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD