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

E17493-01

oracle.jdeveloper.audit.model
Class FileModelAdapter

java.lang.Object
  extended by oracle.jdeveloper.audit.model.ModelAdapter
      extended by oracle.jdeveloper.audit.model.FileModelAdapter
All Implemented Interfaces:
java.lang.Comparable, Located
Direct Known Subclasses:
TextFileModelAdapter, UnauditableFileModelAdapter

public abstract class FileModelAdapter
extends ModelAdapter

An abstract ModelAdapter which adapts a file (text or binary) node.

See Also:
ModelAdapter, TextFileModelAdapter

Field Summary
 
Fields inherited from class oracle.jdeveloper.audit.model.ModelAdapter
index, log
 
Constructor Summary
protected FileModelAdapter(ModelFactory factory, ModelType model, ContainerModelAdapter workspace, ContainerModelAdapter project, ContainerModelAdapter directory, Node node, java.net.URL url)
           
protected FileModelAdapter(ModelFactory factory, ModelType model, ContainerModelAdapter workspace, ContainerModelAdapter project, ContainerModelAdapter directory, Node node, java.net.URL url, java.lang.String primaryCollationKey)
           
 
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.
 ContainerModelAdapter getContainingAdapter()
          Gets the model adapter containing this model adapter, or null if this is the root node.
 Dependency getDependency()
          Gets a Dependency which tracks changes to this model.
 FileModelAdapter getFileAdapter()
          Gets the model adapter for the file containing this model, or null if this is a root, workspace, project, or package model.
 java.net.URL getUrl()
          Gets the non-null URL corresponding to this model.
 boolean isFile()
          Gets whether this model represents a "file".
 
Methods inherited from class oracle.jdeveloper.audit.model.ModelAdapter
acquireReadLock, acquireReadLock, beginRead, beginRead, beginReadHook, cancelRead, compareSiblings, contains, contains, contextDescription, edit, endRead, endRead, endReadHook, enter, equals, exit, getAttribute, getCharacter, getColumnOffset, getConstruct, getConstruct, getContainedConstructs, getDirectory, getDirectoryAdapter, getElement, getElementLocations, getEndLocation, getFactory, getFocusLocation, getFocusLocation, getIdeContext, getInitialLength, getLine, getLineOffset, getLocation, getLocation, getLocation, getLock, getNode, getPrimaryCollationKey, getProject, getProjectAdapter, getRoot, getSecondaryCollationKey, getSecondaryCollationString, getShortLabel, getText, getType, getURL, getWorkspace, getWorkspaceAdapter, icon, icon, isEditable, isModifiable, isModified, isModified, isReadLockHeld, isWriteLockHeld, label, label, release, releaseReadLock, setAttribute, summary, summary, toString, verifyReadTransaction
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileModelAdapter

protected FileModelAdapter(ModelFactory factory,
                           ModelType model,
                           ContainerModelAdapter workspace,
                           ContainerModelAdapter project,
                           ContainerModelAdapter directory,
                           Node node,
                           java.net.URL url)

FileModelAdapter

protected FileModelAdapter(ModelFactory factory,
                           ModelType model,
                           ContainerModelAdapter workspace,
                           ContainerModelAdapter project,
                           ContainerModelAdapter directory,
                           Node node,
                           java.net.URL url,
                           java.lang.String primaryCollationKey)
Method Detail

getUrl

public java.net.URL getUrl()
Description copied from class: ModelAdapter
Gets the non-null URL corresponding to this model.

Specified by:
getUrl in class ModelAdapter

getContainingAdapter

public ContainerModelAdapter getContainingAdapter()
Description copied from class: ModelAdapter
Gets the model adapter containing this model adapter, or null if this is the root node.

Specified by:
getContainingAdapter in class ModelAdapter

getDependency

public Dependency getDependency()
Description copied from class: ModelAdapter
Gets a Dependency which tracks changes to this model. The default ModelAdapter implementation returns a null dependency.

Overrides:
getDependency in class ModelAdapter

isFile

public boolean isFile()
Gets whether this model represents a "file".

ContainerModelAdapter.isFile() returns true.

Specified by:
isFile in class ModelAdapter

getFileAdapter

public FileModelAdapter getFileAdapter()
Description copied from class: ModelAdapter
Gets the model adapter for the file containing this model, or null if this is a root, workspace, project, or package model.

Overrides:
getFileAdapter in class ModelAdapter

contains

public boolean contains(ModelAdapter that)
Description copied from class: ModelAdapter
Gets whether this model contains a model.

Specified by:
contains in class ModelAdapter
Parameters:
that - The ModelAdapter to test.

compareTo

public int compareTo(java.lang.Object object)
Description copied from class: ModelAdapter
Gets whether this model is less than, equal to, or greater than another using the natural order defined by this class. Model adapters created by different ModelFactory instances cannot be compared.

Specified by:
compareTo in interface java.lang.Comparable
Specified by:
compareTo in class ModelAdapter
Parameters:
object - The node with which to compare this node.

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

E17493-01

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