Skip navigation links

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

E17493-04


javax.ide.extension
Class ExtensionDependency

java.lang.Object
  extended by javax.ide.extension.ExtensionDependency


public final class ExtensionDependency
extends java.lang.Object

Represents an extension's dependency on some other extension.


Constructor Summary
ExtensionDependency(java.lang.String id)
          Constructs a dependency for any version of the specified extension id.
ExtensionDependency(java.lang.String id, Version min, Version max)
          Constructs a dependency between two versions of the specified extension id.

 

Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getID()
          Get the id of the extension this dependency is for.
 Version getMaximumVersion()
          Get the maximum version of the extension this dependency is for.
 Version getMinimumVersion()
          Get the minimum version of the extension this dependency is for.
 int hashCode()
           
 java.lang.String toString()
          Get a string representation of this dependency.

 

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

 

Constructor Detail

ExtensionDependency

public ExtensionDependency(java.lang.String id)
Constructs a dependency for any version of the specified extension id.
Parameters:
id - an extension id. Must not be null.

ExtensionDependency

public ExtensionDependency(java.lang.String id,
                           Version min,
                           Version max)
Constructs a dependency between two versions of the specified extension id.
Parameters:
id - an extension id. Must not be null.
min - the minimum required version of the specified extension. May be null, which indicates that there is no minimum version.
max - the maximum required version of the specified extension. May be null, which indicates that there is no maximum version.

Method Detail

getID

public java.lang.String getID()
Get the id of the extension this dependency is for.
Returns:
the id of an extension. Will not return null.

getMinimumVersion

public Version getMinimumVersion()
Get the minimum version of the extension this dependency is for.
Returns:
the minimum version. May be null if there is no minimum required version.

getMaximumVersion

public Version getMaximumVersion()
Get the maximum version of the extension this dependency is for.
Returns:
the maximum version. May be null if there is no maximum required version.

toString

public java.lang.String toString()
Get a string representation of this dependency.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this dependency.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

Skip navigation links

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

E17493-04


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