Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.core.license
Class LicenseIndexCasting

java.lang.Object
  extended by oracle.irm.engine.core.license.LicenseIndexCasting


public final class LicenseIndexCasting
extends Object

Dynamic casting helper for LicenseIndex. This class makes calling methods on the LicenseIndex interface easier, for objects that do not directly implement LicenseIndex. For an object that can be casted to the LicenseIndex interface the static methods on this class can be used to call methods on this object without having to call the cast method manually.

 import static oracle.irm.engine.util.DynamicCasting.narrow;

 LicenseIndex licenseindex = narrow(
    object,
    LicenseIndex.class);

 Object result = licenseindex.foo();
 

Can be replaced by:

 import static oracle.irm.engine.core.license.LicenseIndexCasting.foo;

 Object result = foo(
     object );
 
See Also:
LicenseIndex

Constructor Summary
LicenseIndexCasting()
           

 

Method Summary
static Collection<License> getLicensesByIndex(Object _object, String index)
          Casting support for the LicenseIndex.getLicensesByIndex(java.lang.String) method.

 

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

 

Constructor Detail

LicenseIndexCasting

public LicenseIndexCasting()

Method Detail

getLicensesByIndex

public static Collection<License> getLicensesByIndex(Object _object,
                                                     String index)
Casting support for the LicenseIndex.getLicensesByIndex(java.lang.String) method.
Throws:
ClassCastException
Since:
11g Release 1 (11.1.1.2.1)
See Also:
LicenseIndex.getLicensesByIndex(java.lang.String)

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.