public final class AutomaticDependencies extends Object
ModuleInstaller.refineDependencies(org.netbeans.Module, java.util.Set<org.openide.modules.Dependency>)
.-//NetBeans//DTD Module Automatic Dependencies 1.0//EN
Modifier and Type | Class and Description |
---|---|
static class |
AutomaticDependencies.Report
A struct for holding information on the result of dependency refinement.
|
Modifier and Type | Method and Description |
---|---|
static AutomaticDependencies |
empty()
Create an empty list of transformations.
|
static AutomaticDependencies |
getDefault()
Create default list of transformations.
|
static void |
main(String[] x)
For testing purposes only.
|
static AutomaticDependencies |
parse(URL[] urls)
Create a list of transformations based on some XML files.
|
void |
refineDependencies(String cnb,
Set<Dependency> dependencies)
Interpret the transformations on a module.
|
AutomaticDependencies.Report |
refineDependenciesAndReport(String cnb,
Set<Dependency> dependencies)
Interpret the transformations on a module, and report the changes.
|
String |
refineDependenciesSimple(String cnb,
Set<String> dependencies)
Variant of
AutomaticDependencies.refineDependenciesAndReport(java.lang.String, java.util.Set<org.openide.modules.Dependency>) with simple signature
intended for use from org.netbeans.nbbuild.ParseProjectXml . |
String |
toString() |
public static AutomaticDependencies empty()
public static AutomaticDependencies getDefault()
public static AutomaticDependencies parse(URL[] urls) throws SAXException, IOException
<transformations>
from
-//NetBeans//DTD Module Automatic Dependencies 1.0//EN
.urls
- the XML filesSAXException
- if malformedIOException
- if unloadablepublic static void main(String[] x) throws Exception
x
- list of URLs to parseException
public AutomaticDependencies.Report refineDependenciesAndReport(String cnb, Set<Dependency> dependencies)
cnb
- the code name base of the module being considereddependencies
- a mutable set of type Dependency
; call-by-referencepublic void refineDependencies(String cnb, Set<Dependency> dependencies)
AutomaticDependencies.refineDependenciesAndReport(java.lang.String, java.util.Set<org.openide.modules.Dependency>)
but does not report on the details.cnb
- the code name base of the module being considereddependencies
- a mutable set of type Dependency
; call-by-referencepublic String refineDependenciesSimple(String cnb, Set<String> dependencies)
AutomaticDependencies.refineDependenciesAndReport(java.lang.String, java.util.Set<org.openide.modules.Dependency>)
with simple signature
intended for use from org.netbeans.nbbuild.ParseProjectXml
.cnb
- the code name base of the module being considereddependencies
- a mutable set of dependencies in the format given by
Dependency.toString()
and Dependency.create(int, java.lang.String)
on Dependency.TYPE_MODULE