Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

oracle.apps.fnd.applcore.attachments.ui
Class MethodMap

java.lang.Object
  extended by oracle.apps.fnd.applcore.attachments.ui.MethodMap
All Implemented Interfaces:
java.util.Map

public class MethodMap
extends java.lang.Object
implements java.util.Map

The AttachmentsMethodMap is design for use in EL expressions allowing a parameter to be passed to a method.

Author:
Fraser Pocknee <fraser.pocknee@oracle.com>

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
MethodMap()
           
 
Method Summary
 void clear()
          Not used.
 boolean containsKey(java.lang.Object key)
          Not used - hardcoded to true.
 boolean containsValue(java.lang.Object value)
          Not used - hardcoded to true.
 java.util.Set entrySet()
          Not used.
 boolean equals(java.lang.Object o)
          Not used.
 java.lang.Object get(java.lang.Object key)
          This method will be invoked by the EL resolver when the page is being generated.
 java.lang.Object getCallBackClass()
          Retrieves the class instance that should be invoked when the EL is resolved.
 java.lang.reflect.Method getCallBackMethod()
          Get the method to invoke when resolving the map.
 int hashCode()
          Not used.
 boolean isEmpty()
          Not used - hardcoded to false.
 java.util.Set keySet()
          Not used.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Not used.
 void putAll(java.util.Map t)
          Not used.
 java.lang.Object remove(java.lang.Object key)
          Not used.
 void setCallBackClass(java.lang.Object runClass)
          The class instance that should be invoked when the EL is resolved.
 void setCallBackMethod(java.lang.reflect.Method method)
          Add the method to invoke when resolving the map.
 int size()
          Not Used - Size of the map.
 java.util.Collection values()
          Not used.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodMap

public MethodMap()
Method Detail

setCallBackClass

public void setCallBackClass(java.lang.Object runClass)
The class instance that should be invoked when the EL is resolved. Use in conjunction with setCallBackMethod.

Parameters:
runClass -

getCallBackClass

public java.lang.Object getCallBackClass()
Retrieves the class instance that should be invoked when the EL is resolved.

Returns:
A class instance

setCallBackMethod

public void setCallBackMethod(java.lang.reflect.Method method)
Add the method to invoke when resolving the map. This method should have one string argument.

Parameters:
method -

getCallBackMethod

public java.lang.reflect.Method getCallBackMethod()
Get the method to invoke when resolving the map.

Returns:
A method

get

public java.lang.Object get(java.lang.Object key)
This method will be invoked by the EL resolver when the page is being generated. It will attempt to execute the callback class and method passing in the map key as a parameter.

Specified by:
get in interface java.util.Map
Parameters:
key -
Returns:
the object returned from the callback method.

size

public int size()
Not Used - Size of the map. HardCoded to always have only 1 item.

Specified by:
size in interface java.util.Map
Returns:
1

isEmpty

public boolean isEmpty()
Not used - hardcoded to false.

Specified by:
isEmpty in interface java.util.Map
Returns:
false

containsKey

public boolean containsKey(java.lang.Object key)
Not used - hardcoded to true.

Specified by:
containsKey in interface java.util.Map
Parameters:
key -
Returns:
true

containsValue

public boolean containsValue(java.lang.Object value)
Not used - hardcoded to true.

Specified by:
containsValue in interface java.util.Map
Parameters:
value -
Returns:
true

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Not used.

Specified by:
put in interface java.util.Map

remove

public java.lang.Object remove(java.lang.Object key)
Not used.

Specified by:
remove in interface java.util.Map

putAll

public void putAll(java.util.Map t)
Not used.

Specified by:
putAll in interface java.util.Map

clear

public void clear()
Not used.

Specified by:
clear in interface java.util.Map

keySet

public java.util.Set keySet()
Not used.

Specified by:
keySet in interface java.util.Map

values

public java.util.Collection values()
Not used.

Specified by:
values in interface java.util.Map

entrySet

public java.util.Set entrySet()
Not used.

Specified by:
entrySet in interface java.util.Map

equals

public boolean equals(java.lang.Object o)
Not used.

Specified by:
equals in interface java.util.Map
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Not used.

Specified by:
hashCode in interface java.util.Map
Overrides:
hashCode in class java.lang.Object

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.