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

E17493-02

oracle.jdevimpl.audit.model
Class WorkspaceModelType

java.lang.Object
  extended by oracle.jdeveloper.audit.model.ModelType
      extended by oracle.jdevimpl.audit.model.WorkspaceModelType

public class WorkspaceModelType
extends ModelType

The model type of the vestigial model corresponding to a Workspace.

See Also:
ModelType, WorkspaceModelAdapter

Constructor Summary
WorkspaceModelType()
           
 
Method Summary
 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<?>> 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.
 boolean isAuditable(Element element, ContentDirectory directory, Project project, Workspace workspace)
          Gets whether a root element is auditable in the context of a directory, project, and workspace.
 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, getContainedElementTypes, getDefaultPresentationTypes, isContainedElementType, isElementType, isRootElementType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceModelType

public WorkspaceModelType()
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

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

isAuditable

public boolean isAuditable(Element element,
                           ContentDirectory directory,
                           Project project,
                           Workspace workspace)
Gets whether a root element is auditable in the context of a directory, project, and workspace. The default ModelType implementation requires that the directory, project, and workspace be non-null.

The WorkspaceModelType implementation requires nothing.

Overrides:
isAuditable in class ModelType
Parameters:
element - The element for which to create 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.

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.

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

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.