|
org.netbeans.core.startup/1 1.40 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.core.startup.AutomaticDependencies
public final class AutomaticDependencies
Parser and interpreter for automatic module dependencies.
Public for possible access from AU (see #29577).
Usage: see implementation of ModuleInstaller.refineDependencies(org.netbeans.Module, java.util.Set.
| Nested Class Summary | |
|---|---|
static class |
AutomaticDependencies.Report
A struct for holding information on the result of dependency refinement. |
| Method Summary | |
|---|---|
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 refineDependenciesAndReport(java.lang.String, java.util.Set with simple signature
intended for use from org.netbeans.nbbuild.ParseProjectXml. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static AutomaticDependencies empty()
public static AutomaticDependencies getDefault()
public static AutomaticDependencies parse(URL[] urls)
throws SAXException,
IOException
urls - the XML files
SAXException - if malformed
IOException - if unloadable
public static void main(String[] x)
throws Exception
x - list of URLs to parse
Exception
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-reference
public void refineDependencies(String cnb,
Set<Dependency> dependencies)
refineDependenciesAndReport(java.lang.String, java.util.Set) 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-reference
public String refineDependenciesSimple(String cnb,
Set<String> dependencies)
refineDependenciesAndReport(java.lang.String, java.util.Set) 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
public String toString()
toString in class Object
|
org.netbeans.core.startup/1 1.40 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||