Skip navigation links

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

E13403-10


oracle.jdeveloper.audit.model
Class Dependency

java.lang.Object
  extended by oracle.jdeveloper.audit.model.Dependency

Direct Known Subclasses:
CompositeDependency, FileDependency, StructureDependency, TechnologyScopeDependency

public abstract class Dependency
extends java.lang.Object

An abstract dependency from a source to a target. Concrete subclasses model dependencies of a file on a file or of a file on DAF, and so forth. A dependency starts tracking its target once a listener is added.


Constructor Summary
Dependency()
           

 

Method Summary
 void addChangeListener(DependencyListener listener)
          Adds a change listener for this dependency.
protected abstract  void attach()
          Attach this dependency to its target.
protected abstract  void detach()
          Detach this dependency from its target.
 void fireDependencyChanged(boolean possibleSequence)
          Notifies listeners that the target of this dependency has changed.
 void fireDependencyChanged(Dependency dependency, boolean possibleSequence)
          Deprecated. Use fireDependencyChanged(boolean)
 DependencyListener getChangeListener()
          Gets the change listener for this dependency.
protected abstract  java.lang.String getLongDescription()
          Gets a translated long description of the target of this dependency.
protected abstract  java.lang.String getShortDescription()
          Gets a translated short description of the target of this dependency.
 boolean hasChanged()
          Gets whether the target of this dependency has changed since it was attached to.
protected  boolean isAttached()
          Gets whether this dependency is attached to its target.
protected  java.lang.String listenerDescription()
           
 void removeChangeListener(DependencyListener listener)
          Removes a change listener from this dependency.
 java.lang.String toString()
           

 

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

 

Constructor Detail

Dependency

public Dependency()

Method Detail

addChangeListener

public void addChangeListener(DependencyListener listener)
Adds a change listener for this dependency.
Throws:
java.lang.IllegalStateException - if more than one listener is added.

removeChangeListener

public void removeChangeListener(DependencyListener listener)
Removes a change listener from this dependency.

getChangeListener

public DependencyListener getChangeListener()
Gets the change listener for this dependency.

isAttached

protected boolean isAttached()
Gets whether this dependency is attached to its target.

attach

protected abstract void attach()
Attach this dependency to its target.

detach

protected abstract void detach()
Detach this dependency from its target.

getShortDescription

protected abstract java.lang.String getShortDescription()
Gets a translated short description of the target of this dependency. For example, for a dependency on a file, gets the file name, not including the directory paths.

getLongDescription

protected abstract java.lang.String getLongDescription()
Gets a translated long description of the target of this dependency. For example, for a dependency on a file, gets the full path, including the directory paths.

hasChanged

public boolean hasChanged()
Gets whether the target of this dependency has changed since it was attached to.

fireDependencyChanged

public final void fireDependencyChanged(boolean possibleSequence)
Notifies listeners that the target of this dependency has changed.
Parameters:
possibleSequence - true if this change may be part of a sequence

fireDependencyChanged

public void fireDependencyChanged(Dependency dependency,
                                  boolean possibleSequence)
Deprecated. Use fireDependencyChanged(boolean)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

listenerDescription

protected java.lang.String listenerDescription()

Skip navigation links

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

E13403-10


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