public interface DependencyManager
Modifier and Type | Method and Description |
---|---|
void |
clearDependencies()
Clear all dependencies.
|
Optional<String> |
getCurrentPackage()
Returns the current package if one is set, or else
empty . |
boolean |
isIgnored(String fullname)
Returns true if the specified class belongs to a package that is on the
ignore list.
|
boolean |
isLoaded(String fullname)
Returns
true if the specified fullname is either: |
boolean |
load(String fullname)
Attempts to add the specified resource to the dependency list.
|
boolean |
setCurrentPackage(String pack)
Attempts to set the package that is currently being rendered.
|
boolean |
unsetCurrentPackage(String pack)
Attempts to unset the currently rendered package.
|
boolean load(String fullname)
false
.fullname
- the full name of the resource.true
if it was added, else false
boolean isLoaded(String fullname)
true
if the specified fullname is either:
(A) loaded into the dependency list; (B) on the ignore list.Else it returns
false
.fullname
- the full name of the resource.true
if it don't have to be loaded.boolean isIgnored(String fullname)
fullname
- the full name of a package or a classtrue
if it should be ignored as a dependencyvoid clearDependencies()
boolean setCurrentPackage(String pack)
false
will be
returned. If the operation succeeded, true
is returned and the
DependencyManager
will expect
unsetCurrentPackage(java.lang.String)
to be called later before
the generation is finished.pack
- the new current packagetrue
if the operation succeeded, else false
boolean unsetCurrentPackage(String pack)
true
will be returned. If the package specified is not correct,
the current package will not be unset and false
will be
returned. If no package was set the operation will throw an
IllegalStateException
.pack
- the current package to unsettrue
if the operation succeeded, else false
Copyright © 2016 Speedment, Inc.. All rights reserved.