Methods Summary |
---|
protected java.io.BufferedOutputStream | createFile(java.lang.String className, java.lang.String baseFileName, java.lang.String extension)Creates a file with the given base file name and extension
parallel to the supplied class (if it does not yet exist).
throw new UnsupportedOperationException();
|
private void | debug(java.lang.Object o)
if (DEBUG)
System.out.println("EnhancerModel::" + o); // NOI18N
|
protected void | deleteFile(java.lang.String className, java.lang.String fileName)Deletes the file with the given file name which is parallel
to the supplied class.
throw new UnsupportedOperationException();
|
protected java.lang.String | findPenultimateSuperclass(java.lang.String className)Returns the name of the second to top (top excluding java.lang.Object)
superclass for the given class name.
debug("findPenultimateSuperclass(" + className + ")"); // NOI18N
throw new UnsupportedOperationException();
|
public java.lang.Object | getClass(java.lang.String className, java.lang.ClassLoader classLoader)Returns the class element with the specified className.
throw new UnsupportedOperationException();
|
public java.lang.Object | getConstructor(java.lang.String className, java.lang.String[] argTypeNames)Returns the constructor element for the specified argument types
in the class with the specified name. Types are specified as type
names for primitive type such as int, float or as fully qualified
class names.
throw new UnsupportedOperationException();
|
public java.lang.String | getDeclaringClass(java.lang.Object memberElement)Returns the string representation of declaring class of
the specified member element. Note, the member element is
either a class element as returned by getClass, a field element
as returned by getField, a constructor element as returned by
getConstructor, or a method element as returned by getMethod
executed on the same model instance.
throw new UnsupportedOperationException();
|
public java.lang.Object | getField(java.lang.String className, java.lang.String fieldName)Returns the field element for the specified fieldName in the class
with the specified className.
throw new UnsupportedOperationException();
|
public java.util.List | getFields(java.lang.String className)Returns a list of names of all the declared field elements in the
class with the specified name.
throw new UnsupportedOperationException();
|
protected java.io.BufferedInputStream | getInputStreamForResource(java.lang.String className, java.lang.ClassLoader classLoader, java.lang.String resourceName)Returns the input stream with the supplied resource name found with
the supplied class name.
debug("getInputStreamForResource(" + className + // NOI18N
"," + resourceName + ")"); // NOI18N
InputStream is = (classLoader != null)
? classLoader.getResourceAsStream(resourceName)
: ClassLoader.getSystemResourceAsStream(resourceName);
BufferedInputStream rc = null;
if (is != null && !(is instanceof BufferedInputStream)) {
rc = new BufferedInputStream(is);
} else {
rc = (BufferedInputStream)is;
}
return rc;
|
public java.lang.Object | getMethod(java.lang.String className, java.lang.String methodName, java.lang.String[] argTypeNames)Returns the method element for the specified method name and argument
types in the class with the specified name. Types are specified as
type names for primitive type such as int, float or as fully qualified
class names.
throw new UnsupportedOperationException();
|
public int | getModifiers(java.lang.Object memberElement)Returns the modifier mask for the specified member element.
Note, the member element is either a class element as returned by
getClass, a field element as returned by getField, a constructor element
as returned by getConstructor, or a method element as returned by
getMethod executed on the same model instance.
throw new UnsupportedOperationException();
|
public com.sun.jdo.api.persistence.model.jdo.PersistenceFieldElement | getPersistenceField(java.lang.String className, java.lang.String fieldName)Returns the PersistenceFieldElement with the supplied fieldName found
in the supplied className.
return getPersistenceFieldInternal(className, fieldName);
|
protected java.lang.String | getSuperclass(java.lang.String className)Returns the name of the superclass for the given class name.
debug("getSuperclass (" + className + ")"); // NOI18N
return null; // "java.lang.Object"; // NOI18N
|
public java.lang.String | getType(java.lang.Object element)Returns the string representation of type of the specified element.
If element denotes a field, it returns the type of the field.
If element denotes a method, it returns the return type of the method.
Note, element is either a field element as returned by getField, or a
method element as returned by getMethod executed on the same model
instance.
throw new UnsupportedOperationException();
|
public boolean | hasConstructor(java.lang.String className)Determines if the class with the specified name declares a constructor.
throw new UnsupportedOperationException();
|
public boolean | implementsInterface(java.lang.Object classElement, java.lang.String interfaceName)Determines if the specified class implements the specified interface.
Note, class element is a model specific class representation as returned
by a getClass call executed on the same model instance.
throw new UnsupportedOperationException();
|
public boolean | isArray(java.lang.String className, java.lang.String fieldName)Determines if a field with the specified fieldName in the class
with the specified className is an array.
throw new UnsupportedOperationException();
|
public boolean | isInterface(java.lang.String className)Determines if the specified className represents an interface type.
throw new UnsupportedOperationException();
|
public boolean | isKey(java.lang.String className, java.lang.String fieldName)Determines if the specified className and fieldName pair represent a
key field.
PersistenceFieldElement field =
getPersistenceField(className, fieldName);
return field != null ? field.isKey() : false;
|
public boolean | isSerializable(java.lang.Object fieldElement)Determines if the specified field element has a serializable type.
A type is serializable if it is a primitive type, a class that implements
java.io.Serializable or an interface that inherits from
java.io.Serializable.
Note, the field element is a model specific field representation as
returned by a getField call executed on the same model instance.
throw new UnsupportedOperationException();
|