public interface JavaModel
Modifier and Type | Method and Description |
---|---|
JavaModel[] |
getChildren()
Returns a collection of child JavaModel instances in the form
of an array.
|
java.io.InputStream |
getInputStreamForResource(java.lang.String resourceName)
Finds a resource with a given name.
|
JavaType |
getJavaType(java.lang.Class clazz)
The method returns the JavaType instance for the type name of the
specified class object.
|
JavaType |
getJavaType(java.lang.String name)
The method returns the JavaType instance for the specified type
name.
|
JDOModel |
getJDOModel()
Returns the corresponding JDOModel instance.
|
JavaModel |
getParent()
Returns the parent JavaModel instance of this JavaModel.
|
void |
setJDOModel(JDOModel jdoModel)
Sets the corresponding JDOModel instance.
|
void |
setParent(JavaModel parent)
Set the parent JavaModel for this JavaModel.
|
JavaType getJavaType(java.lang.String name)
null
if this model instance does not
know a type with the specified name.name
- the name of the typenull
if not present in this model instance.JavaType getJavaType(java.lang.Class clazz)
getJavaType(clazz.getName())
. The major difference
between this method and getJavaType taking a type name is that this
method is supposed to return a non-null value. The
specified class object describes an existing type.
clazz
- the Class instance representing the typejava.io.InputStream getInputStreamForResource(java.lang.String resourceName)
null
if no resource with this name is found or if the
caller doesn't have adequate privileges to get the resource.resourceName
- the resource namenull
if the resource could not be found or if the caller doesn't have
adequate privileges to get the resource.JavaModel getParent()
void setParent(JavaModel parent) throws ModelException
parent
- the parent JavaModelModelException
- if impossibleJavaModel[] getChildren()
JDOModel getJDOModel()
void setJDOModel(JDOModel jdoModel) throws ModelException
jdoModel
- the JDOModel instanceModelException
- if impossibleCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.