站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

Dependency (NetBeans APIs) - NetBeans API Javadoc 4.1.0


org.openide.modules
Class Dependency

java.lang.Object
  extended byorg.openide.modules.Dependency

public final class Dependency
extends Object

A dependency a module can have.

Since:
1.24

Field Summary
static int COMPARE_ANY
          No comparison, just require the dependency to be present.
static int COMPARE_IMPL
          Comparison by implementation version.
static int COMPARE_SPEC
          Comparison by specification version.
static String IDE_IMPL
          Implementation version of the IDE.
static String IDE_NAME
          Name, for purposes of dependencies, of the IDE.
static SpecificationVersion IDE_SPEC
          Specification version of the IDE.
static String JAVA_IMPL
          Implementation version of the Java platform.
static String JAVA_NAME
          Name, for purposes of dependencies, of the Java platform.
static SpecificationVersion JAVA_SPEC
          Specification version of the Java platform.
static int TYPE_IDE
          Dependency on the IDE.
static int TYPE_JAVA
          Dependency on Java.
static int TYPE_MODULE
          Dependency on another module.
static int TYPE_PACKAGE
          Dependency on a package.
static int TYPE_REQUIRES
          Dependency on a token.
static String VM_IMPL
          Implementation version of the Java VM.
static String VM_NAME
          Name, for purposes of dependencies, of the Java VM.
static SpecificationVersion VM_SPEC
          Specification version of the Java VM.
 
Method Summary
static Set create(int type, String body)
          Parse dependencies from tags.
 boolean equals(Object o)
          Overridden to compare contents.
 int getComparison()
          Get the comparison type.
 String getName()
          Get the name of the depended-on object.
 int getType()
          Get the type.
 String getVersion()
          Get the version to compare against (or null).
 int hashCode()
          Overridden to hash by contents.
 String toString()
          Unspecified string representation for debugging.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_MODULE

public static final int TYPE_MODULE
Dependency on another module.

See Also:
Constant Field Values

TYPE_PACKAGE

public static final int TYPE_PACKAGE
Dependency on a package.

See Also:
Constant Field Values

TYPE_JAVA

public static final int TYPE_JAVA
Dependency on Java.

See Also:
Constant Field Values

TYPE_IDE

public static final int TYPE_IDE
Dependency on the IDE.

See Also:
Constant Field Values

TYPE_REQUIRES

public static final int TYPE_REQUIRES
Dependency on a token.

Since:
2.3
See Also:
ModuleInfo.getProvides(), Constant Field Values

COMPARE_SPEC

public static final int COMPARE_SPEC
Comparison by specification version.

See Also:
Constant Field Values

COMPARE_IMPL

public static final int COMPARE_IMPL
Comparison by implementation version.

See Also:
Constant Field Values

COMPARE_ANY

public static final int COMPARE_ANY
No comparison, just require the dependency to be present.

See Also:
Constant Field Values

IDE_NAME

public static final String IDE_NAME
Name, for purposes of dependencies, of the IDE.


IDE_SPEC

public static final SpecificationVersion IDE_SPEC
Specification version of the IDE.


IDE_IMPL

public static final String IDE_IMPL
Implementation version of the IDE.


JAVA_NAME

public static final String JAVA_NAME
Name, for purposes of dependencies, of the Java platform.

See Also:
Constant Field Values

JAVA_SPEC

public static final SpecificationVersion JAVA_SPEC
Specification version of the Java platform.


JAVA_IMPL

public static final String JAVA_IMPL
Implementation version of the Java platform.


VM_NAME

public static final String VM_NAME
Name, for purposes of dependencies, of the Java VM.

See Also:
Constant Field Values

VM_SPEC

public static final SpecificationVersion VM_SPEC
Specification version of the Java VM.


VM_IMPL

public static final String VM_IMPL
Implementation version of the Java VM.

Method Detail

create

public static Set create(int type,
                         String body)
                  throws IllegalArgumentException
Parse dependencies from tags.

Parameters:
type - like Dependency.type
body - actual text of tag body; if null, returns nothing
Returns:
a set of dependencies
Throws:
IllegalArgumentException - if they are malformed or inconsistent

getType

public final int getType()
Get the type.


getName

public final String getName()
Get the name of the depended-on object.


getComparison

public final int getComparison()
Get the comparison type.


getVersion

public final String getVersion()
Get the version to compare against (or null).


equals

public boolean equals(Object o)
Overridden to compare contents.


hashCode

public int hashCode()
Overridden to hash by contents.


toString

public String toString()
Unspecified string representation for debugging.



Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.