ariba.util.core
Interface ClassProxy


public interface ClassProxy

Objects that implement ClassProxy will be able to get the Class of the object they represent, and answer convenient instanceOf questions. Proxies will return the Class of their target object, and non-proxies will return their own Class.


Method Summary
 java.lang.Class getRealClass()
          Return Class for the real object that a proxy represents, or the same as getClass() if called on the real object and it implements ClassProxy.
 boolean instanceOf(java.lang.Class cl)
          Return true if the real Class for this object is an instanceof the given Java Class (which may represent a class or an interface).
 boolean instanceOf(java.lang.String className)
          Return true if the real Class for this object is an instanceof the given className; for a ClusterRoot it is about the ClusterRoot itself, but for a proxy ClusterRootValueSource, it is about the ClusterRoot the proxy represents.
 

Method Detail

getRealClass

java.lang.Class getRealClass()
Return Class for the real object that a proxy represents, or the same as getClass() if called on the real object and it implements ClassProxy. java.lang.Object.getClass() is final and always returns the Class of the object it is called on.


instanceOf

boolean instanceOf(java.lang.Class cl)
Return true if the real Class for this object is an instanceof the given Java Class (which may represent a class or an interface). For a ClusterRoot it is about the ClusterRoot itself, but for a proxy ClusterRootValueSource, which extends ClassProxy, it is about the ClusterRoot the proxy represents. Returns false silently if the given Java Class is null.


instanceOf

boolean instanceOf(java.lang.String className)
Return true if the real Class for this object is an instanceof the given className; for a ClusterRoot it is about the ClusterRoot itself, but for a proxy ClusterRootValueSource, it is about the ClusterRoot the proxy represents. For ClusterRoots, it should handle Ariba dynamic type names as well as Java class and interface names. Returns false silently in all other cases.



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