java.io.Serializablepublic final class Dependency
extends java.lang.Object
implements java.io.Serializable
Serializable.| Modifier and Type | Field | Description |
|---|---|---|
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 java.lang.String |
IDE_IMPL |
Deprecated.
request dependencies on direct modules
|
static java.lang.String |
IDE_NAME |
Deprecated.
request dependencies on direct modules
|
static SpecificationVersion |
IDE_SPEC |
Deprecated.
request dependencies on direct modules
|
static java.lang.String |
JAVA_IMPL |
Implementation version of the Java platform.
|
static java.lang.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 |
Deprecated.
This type of dependency should no longer be used.
|
static int |
TYPE_JAVA |
Dependency on Java.
|
static int |
TYPE_MODULE |
Dependency on another module.
|
static int |
TYPE_NEEDS |
Dependency on a token, but without need to have token provider be initialised sooner.
|
static int |
TYPE_PACKAGE |
Dependency on a package.
|
static int |
TYPE_RECOMMENDS |
An advisory dependency on a token.
|
static int |
TYPE_REQUIRES |
Dependency on a token.
|
static java.lang.String |
VM_IMPL |
Implementation version of the Java VM.
|
static java.lang.String |
VM_NAME |
Name, for purposes of dependencies, of the Java VM.
|
static SpecificationVersion |
VM_SPEC |
Specification version of the Java VM.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Set<Dependency> |
create(int type,
java.lang.String body) |
Parse dependencies from tags.
|
boolean |
equals(java.lang.Object o) |
Overridden to compare contents.
|
int |
getComparison() |
Get the comparison type.
|
java.lang.String |
getName() |
Get the name of the depended-on object.
|
int |
getType() |
Get the type.
|
java.lang.String |
getVersion() |
Get the version to compare against (or null).
|
int |
hashCode() |
Overridden to hash by contents.
|
java.lang.String |
toString() |
Unspecified string representation for debugging.
|
public static final int TYPE_MODULE
public static final int TYPE_PACKAGE
public static final int TYPE_JAVA
@Deprecated public static final int TYPE_IDE
public static final int TYPE_REQUIRES
ModuleInfo.getProvides(),
Constant Field Valuespublic static final int TYPE_NEEDS
ModuleInfo.getProvides(),
Constant Field Valuespublic static final int TYPE_RECOMMENDS
ModuleInfo.getProvides(),
Constant Field Valuespublic static final int COMPARE_SPEC
public static final int COMPARE_IMPL
public static final int COMPARE_ANY
@Deprecated public static final java.lang.String IDE_NAME
@Deprecated public static final SpecificationVersion IDE_SPEC
@Deprecated public static final java.lang.String IDE_IMPL
public static final java.lang.String JAVA_NAME
public static final SpecificationVersion JAVA_SPEC
public static final java.lang.String JAVA_IMPL
public static final java.lang.String VM_NAME
public static final SpecificationVersion VM_SPEC
public static final java.lang.String VM_IMPL
public static java.util.Set<Dependency> create(int type, java.lang.String body) throws java.lang.IllegalArgumentException
org.apache.servicemix.specs.jsr303_api_1.0.0.type - like Dependency.typebody - actual text of tag body; if null, returns nothingjava.lang.IllegalArgumentException - if they are malformed or inconsistentpublic final int getType()
public final java.lang.String getName()
public final int getComparison()
public final java.lang.String getVersion()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.