ariba.util.core
Class ReferenceHandler

java.lang.Object
  extended by ariba.util.core.ReferenceHandler

public class ReferenceHandler
extends java.lang.Object

Handles paramaters via indirect references.


Constructor Summary
ReferenceHandler(ReferenceSyntaxParser parser, java.util.Map handlers)
          Contructs a ReferenceHandler object.
 
Method Summary
 boolean addHandler(java.lang.String key, ReferenceReader handler)
          Adds a handler for a specified remote reference
 java.lang.String interpret(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceHandler

public ReferenceHandler(ReferenceSyntaxParser parser,
                        java.util.Map handlers)
Contructs a ReferenceHandler object.

Parameters:
parser - the class that know how to parse the input string. cannot be null.
handlers - a map of handlers. The key specifies the an individual handler, the value is an instance of ReferenceReader that knows how to read the data. This map must not be null.
Method Detail

addHandler

public boolean addHandler(java.lang.String key,
                          ReferenceReader handler)
Adds a handler for a specified remote reference

Parameters:
key - the key of the handler to be added. This key specifies the remote reference. Must not be null.
handler - the handler to be added. must not be null.
Returns:
true if the addition is successful. false if the key already exists, in which case, the handler is not added.

interpret

public java.lang.String interpret(java.lang.String str)
Parameters:
str - input String to interpret


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.