Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


oracle.jdeveloper.audit.java
Class JavaSourceModelType

java.lang.Object
  extended by oracle.jdeveloper.audit.model.ModelType
      extended by oracle.jdeveloper.audit.java.JavaSourceModelType


public class JavaSourceModelType
extends ModelType

The model type of the Java source model corresponding to a JavaSourceNode.

See Also:
ModelType, JavaSourceModelAdapter

Constructor Summary
JavaSourceModelType()
           

 

Method Summary
 AuditEditorAdapter createEditorAdapter()
          Creates an editor adapter for this model type.
 ModelAdapter createModelAdapter(ModelFactory factory, Element element, java.net.URL url, ContainerModelAdapter directory, ContainerModelAdapter project, ContainerModelAdapter workspace)
          Creates a model for this model type corresponding to a workspace, project, package, element, and URL.
 java.util.Collection<java.lang.Class<? extends Element>> getContainedElementTypes()
          Gets the IDE Element types which correspond to contained (non-root) constructs of this model type.
 java.util.Collection<java.lang.Class<?>> getDefaultPresentationTypes()
          Gets the default presentation types for this model type.
 java.util.Collection<java.lang.Class<?>> getPresentationTypes()
          Gets the presentation types for this model type.
 java.util.Collection<java.lang.Class<? extends Element>> getRootElementTypes()
          Gets the IDE Element types which correspond to root constructs of this model type.
 javax.swing.Icon icon(java.lang.Class type)
          Gets the icon for a presentation type of this model type.
 java.lang.String label(java.lang.Class type)
          Gets the label for a presentation type of this model type.
 java.lang.String summary(java.lang.Class type)
          Gets the summary for a presentation type of this model type.

 

Methods inherited from class oracle.jdeveloper.audit.model.ModelType
createModelAdapter, isAuditable, isContainedElementType, isElementType, isRootElementType

 

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

 

Constructor Detail

JavaSourceModelType

public JavaSourceModelType()

Method Detail

getRootElementTypes

public java.util.Collection<java.lang.Class<? extends Element>> getRootElementTypes()
Description copied from class: ModelType
Gets the IDE Element types which correspond to root constructs of this model type. These are used to map from objects selected in the IDE into the Audit object model.
Specified by:
getRootElementTypes in class ModelType

getContainedElementTypes

public java.util.Collection<java.lang.Class<? extends Element>> getContainedElementTypes()
Description copied from class: ModelType
Gets the IDE Element types which correspond to contained (non-root) constructs of this model type. These are used to map from objects selected in the IDE into the Audit object model. The default ModelType implementation returns null.
Overrides:
getContainedElementTypes in class ModelType

getPresentationTypes

public java.util.Collection<java.lang.Class<?>> getPresentationTypes()
Description copied from class: ModelType
Gets the presentation types for this model type. These are the construct types from this model type which can be presented in Audit reports. For example, the Java implementation returns SourceFile, SourceClass, and SourceMethod, but not, for example, SourceField.
Specified by:
getPresentationTypes in class ModelType

getDefaultPresentationTypes

public java.util.Collection<java.lang.Class<?>> getDefaultPresentationTypes()
Description copied from class: ModelType
Gets the default presentation types for this model type. These are the construct types which are presented by default in Audit reports. The types returned here must be included in the types returned by ModelType.getPresentationTypes(). The ModelType implementation returns ModelType.getPresentationTypes().
Overrides:
getDefaultPresentationTypes in class ModelType

createModelAdapter

public ModelAdapter createModelAdapter(ModelFactory factory,
                                       Element element,
                                       java.net.URL url,
                                       ContainerModelAdapter directory,
                                       ContainerModelAdapter project,
                                       ContainerModelAdapter workspace)
Description copied from class: ModelType
Creates a model for this model type corresponding to a workspace, project, package, element, and URL.
Specified by:
createModelAdapter in class ModelType
Parameters:
factory - The model factory for creating contained models.
element - The element for which to create the model.
url - The URL of the file represented by the model.
directory - The directory containing the element, or null if none.
project - The project containing the element, or null if none.
workspace - The workspace containing the element, or null if none.

createEditorAdapter

public AuditEditorAdapter createEditorAdapter()
Description copied from class: ModelType
Creates an editor adapter for this model type.
Specified by:
createEditorAdapter in class ModelType

label

public java.lang.String label(java.lang.Class type)
Description copied from class: ModelType
Gets the label for a presentation type of this model type. The label should be localized.
Specified by:
label in class ModelType

summary

public java.lang.String summary(java.lang.Class type)
Description copied from class: ModelType
Gets the summary for a presentation type of this model type. The summary should be localized.
Specified by:
summary in class ModelType

icon

public javax.swing.Icon icon(java.lang.Class type)
Description copied from class: ModelType
Gets the icon for a presentation type of this model type. If necessary, the icon should be localized.
Specified by:
icon in class ModelType

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


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