|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.classloading.spi.helpers.NameAndVersionRangeSupport
org.jboss.classloading.spi.metadata.helpers.AbstractRequirement
org.jboss.classloading.plugins.metadata.PackageRequirement
public class PackageRequirement
PackageRequirement.
| Constructor Summary | |
|---|---|
PackageRequirement()
Create a new PackageRequirement. |
|
PackageRequirement(String name)
Create a new PackageRequirement with no version constraint |
|
PackageRequirement(String name,
VersionRange versionRange)
Create a new PackageRequirement. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Set<String> |
getOptionalPackageNames(Module module)
Get the package names |
boolean |
isConsistent(Requirement other)
Check whether this requirement is consistent with another requirement. |
| Methods inherited from class org.jboss.classloading.spi.metadata.helpers.AbstractRequirement |
|---|
isConsistent, isDynamic, isOptional, isReExport, setDynamic, setOptional, setReExport, toString, toString, wantReExports |
| Methods inherited from class org.jboss.classloading.spi.helpers.NameAndVersionRangeSupport |
|---|
getFrom, getFromVersion, getName, getTo, getToVersion, getVersionRange, hashCode, isFromVersionInclusive, isToVersionInclusive, setFrom, setFromVersion, setFromVersionInclusive, setName, setTo, setToVersion, setToVersionInclusive, setVersion, setVersionRange |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PackageRequirement()
public PackageRequirement(String name)
name - the name
IllegalArgumentException - for a null name
public PackageRequirement(String name,
VersionRange versionRange)
name - the nameversionRange - the version range - pass null for all versions
IllegalArgumentException - for a null name| Method Detail |
|---|
public Set<String> getOptionalPackageNames(Module module)
OptionalPackages
getOptionalPackageNames in interface OptionalPackagesmodule - the module
public boolean isConsistent(Requirement other)
RequirementTypically they will be inconsistent if they are the same type, have the same name but a different version
isConsistent in interface RequirementisConsistent in class AbstractRequirementother - the other requirement
public boolean equals(Object obj)
equals in class AbstractRequirement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||