| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  
oracle.jdeveloper.audit.model.ModelAdapter
      
oracle.jdeveloper.audit.model.ContainerModelAdapter
          
oracle.jdevimpl.audit.model.WorkspaceModelAdapter
public class WorkspaceModelAdapter
A ModelAdapter which adapts the Audit framework to the (vestigial) model of a Workspace node. The node is the root construct of the model, its contained constructs are the model adapters for its Project children.
ModelAdapter, ContainerModelAdapter, WorkspaceModelType| Field Summary | 
|---|
| Fields inherited from class oracle.jdeveloper.audit.model.ModelAdapter | 
|---|
index, log | 
| Constructor Summary | |
|---|---|
WorkspaceModelAdapter(ModelFactory factory, ModelType type, Workspace workspace) | 
|
| Method Summary | |
|---|---|
 int | 
compareTo(java.lang.Object object)Gets whether this model is less than, equal to, or greater than another using the natural order defined by this class.  | 
 boolean | 
contains(ModelAdapter that)Gets whether this model contains a model.  | 
 boolean | 
contains(java.lang.Object construct, Location location)Gets whether a construct in this model contains a location.  | 
protected  void | 
createContainedModels(java.lang.Object construct)Creates the models contained by the root construct of this model and adds them using ContainerModelAdapter.addContainedModel(oracle.jdeveloper.audit.model.ModelAdapter) and ContainerModelAdapter.addContainedModel(oracle.jdeveloper.audit.model.ModelAdapter). | 
 java.lang.Object | 
getConstruct(Location location)Gets the innermost construct containing a location in this model.  | 
 ContainerModelAdapter | 
getContainingAdapter()Gets the model adapter containing this model adapter, or null if this is the root node.  | 
 ContentDirectory | 
getDirectory()Gets the package directory containing this model, or null if none.  | 
 Location[] | 
getElementLocations(Element element)Gets the locations of the constructs in this model corresponding to an IDE element.  | 
 Location | 
getLocation(java.lang.Object construct)Gets the location for a construct in this model, or null if the object is not a construct in this model.  | 
 Node | 
getNode()Gets the IDE Node corresponding to this model, or null if none (in particular, if this is the root or a package model). | 
 Project | 
getProject()Gets the project containing this model.  | 
 java.lang.Object | 
getRoot()Gets the root construct of this model.  | 
 java.net.URL | 
getUrl()Gets the non-null URL corresponding to this model.  | 
 Workspace | 
getWorkspace()Gets the workspace containing this model.  | 
 javax.swing.Icon | 
icon(java.lang.Object construct)Gets the icon for a construct of this model.  | 
 boolean | 
isModifiable()Gets whether this model is modifiable.  | 
 java.lang.Object | 
label(java.lang.Object construct)Gets the label for a construct of this model.  | 
 java.lang.Object | 
summary(java.lang.Object construct)Gets the summary for a construct of this model.  | 
| Methods inherited from class oracle.jdeveloper.audit.model.ContainerModelAdapter | 
|---|
addContainedModel, addContainedModels, addContainedModels, getContainedConstructs, isFile, removeContainedModel | 
| Methods inherited from class oracle.jdeveloper.audit.model.ModelAdapter | 
|---|
acquireReadLock, beginRead, beginRead, beginReadHook, cancelRead, compareSiblings, contains, contextDescription, edit, endRead, endRead, endReadHook, enter, equals, exit, getAttribute, getCharacter, getColumnOffset, getConstruct, getDependency, getDirectoryAdapter, getElement, getEndLocation, getFactory, getFileAdapter, getFocusLocation, getFocusLocation, getIdeContext, getInitialLength, getLine, getLineOffset, getLocation, getLocation, getLock, getPrimaryCollationKey, getProjectAdapter, getSecondaryCollationKey, getSecondaryCollationString, getShortLabel, getText, getType, getURL, getWorkspaceAdapter, icon, isEditable, isModified, isModified, label, release, releaseReadLock, setAttribute, summary, toString, verifyReadTransaction | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public WorkspaceModelAdapter(ModelFactory factory,
                             ModelType type,
                             Workspace workspace)
| Method Detail | 
|---|
public ContainerModelAdapter getContainingAdapter()
ModelAdaptergetContainingAdapter in class ModelAdapterpublic java.net.URL getUrl()
ModelAdaptergetUrl in class ModelAdapterpublic Workspace getWorkspace()
ModelAdaptergetWorkspace in class ModelAdapterpublic Project getProject()
ModelAdaptergetProject in class ModelAdapterpublic ContentDirectory getDirectory()
ModelAdaptergetDirectory in class ModelAdapterpublic java.lang.Object getRoot()
ModelAdaptergetRoot in class ModelAdapterpublic Location[] getElementLocations(Element element)
ModelAdapterImplementations need only deal with IDE element types that are returned by the getRootElementTypes and getContainedElementTypes methods of the model type for this model.
getElementLocations in class ModelAdapterelement - an IDE Element of a type supported by this model.public Location getLocation(java.lang.Object construct)
ModelAdapterImplementations must extract offset and length from the construct to create a Location.
getLocation in class ModelAdapterconstruct - a construct in this model, created by either ModelAdapter.getRoot() or ModelAdapter.getContainedConstructs(java.lang.Object).public java.lang.Object getConstruct(Location location)
ModelAdapterModelAdapter implementation traverses from the root using ModelAdapter.getContainedConstructs(java.lang.Object) and the Location.contains(oracle.jdeveloper.audit.model.Location) method.getConstruct in class ModelAdapterlocation - A location in this model.protected void createContainedModels(java.lang.Object construct)
ContainerModelAdapter.addContainedModel(oracle.jdeveloper.audit.model.ModelAdapter) and ContainerModelAdapter.addContainedModel(oracle.jdeveloper.audit.model.ModelAdapter). This method is invoked by the ContainerModelAdapter.getContainedConstructs(java.lang.Object) implementation on its first invocation, unless ContainerModelAdapter.addContainedModel(oracle.jdeveloper.audit.model.ModelAdapter) or ContainerModelAdapter.addContainedModel(oracle.jdeveloper.audit.model.ModelAdapter) has already been invoked.
Tbe Audit framework invokes this method with a read transaction active on this model and holding a private monitor lock.
Implementations must return an iterator which iterates the model adapters in their natural order. The contained constructs of a workspace are its projects.
createContainedModels in class ContainerModelAdapterconstruct - A construct of this model.public int compareTo(java.lang.Object object)
ModelAdapterModelFactory instances cannot be compared.compareTo in interface java.lang.ComparablecompareTo in class ModelAdapterobject - The node with which to compare this node.public boolean contains(ModelAdapter that)
ModelAdaptercontains in class ModelAdapterthat - The ModelAdapter to test.
public boolean contains(java.lang.Object construct,
                        Location location)
ModelAdaptercontains in class ModelAdapterconstruct - The construct in this node to test.location - The Location to test.public Node getNode()
ModelAdapterNode corresponding to this model, or null if none (in particular, if this is the root or a package model).getNode in class ModelAdapterpublic boolean isModifiable()
ModelAdapterModelAdapter implementation returns false.isModifiable in class ModelAdapterpublic java.lang.Object label(java.lang.Object construct)
ModelAdapterObject, and Audit uses String.valueOf(Object) to get a string. Typically, implementations of this method will return a string, but the return type allows an implementation to return an object which defers expensive formatting to its toString() method. If necessary, the label should be localized.label in class ModelAdapterpublic java.lang.Object summary(java.lang.Object construct)
ModelAdapterObject, and Audit uses String.valueOf(Object) to get a string. Typically, implementations of this method will return a string, but the return type allows an implementation to return an object which defers expensive formatting to its toString() method. The summary should be localized.summary in class ModelAdapterpublic javax.swing.Icon icon(java.lang.Object construct)
ModelAdaptericon in class ModelAdapter
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||