Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.javaxide
Class Util

java.lang.Object
  extended by oracle.ide.javaxide.Util

public final class Util
extends java.lang.Object

Utilities for interoperating with JSR-198.

Since:
10.1.3

Method Summary
static
<T> T
createInstance(MetaClass metaClass, java.lang.Class<T> expectedSuperType)
          Create an instance of a meta class, reporting errors if creation fails.
static java.lang.Object createInstance(MetaClass metaClass, java.lang.Class expectedSuperType, java.lang.String nameOfType)
          Create an instance of a meta class, reporting errors if creation fails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInstance

public static <T> T createInstance(MetaClass metaClass,
                                   java.lang.Class<T> expectedSuperType)
Create an instance of a meta class, reporting errors if creation fails.

Parameters:
metaClass - the meta class to create an instance of.
expectedSuperType - the supertype you expect.
Returns:
an object of the specified type, or null if an error occurred creating the instance.
Since:
11.0

createInstance

public static java.lang.Object createInstance(MetaClass metaClass,
                                              java.lang.Class expectedSuperType,
                                              java.lang.String nameOfType)
Create an instance of a meta class, reporting errors if creation fails.

Parameters:
metaClass - the meta class to create an instance of
expectedSuperType - the supertype you expect.
nameOfType - the name of the type to display in messages
Returns:
an instance of the meta class, or null if creation failed.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.