|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.irm.engine.core.license.LicenseIndexCasting
public final class LicenseIndexCasting
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;LicenseIndexlicenseindex = 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 );
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 |
|---|
public LicenseIndexCasting()
| Method Detail |
|---|
public static Collection<License> getLicensesByIndex(Object _object,
String index)
LicenseIndex.getLicensesByIndex(java.lang.String) method.ClassCastExceptionLicenseIndex.getLicensesByIndex(java.lang.String)
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||