public class FactoryDependencies extends Object
Constructor and Description |
---|
FactoryDependencies(Factory factory)
Creates a new dependency tree for the specified factory.
|
Modifier and Type | Method and Description |
---|---|
TreeNode |
asTree()
Returns the dependencies as a tree.
|
boolean |
isAttributeEnabled()
Returns
true if attributes are to be printed. |
boolean |
isColorEnabled()
Returns
true if syntax coloring is enabled. |
void |
print(PrintWriter out)
Prints the dependencies as a tree to the specified printer.
|
void |
print(Writer out)
Prints the dependencies as a tree to the specified writer.
|
void |
setAttributeEnabled(boolean enabled)
Enables or disables the addition of attributes after factory names.
|
void |
setColorEnabled(boolean enabled)
Enables or disables syntax coloring on ANSI X3.64 (aka ECMA-48 and ISO/IEC 6429) compatible
terminal.
|
public FactoryDependencies(Factory factory)
public boolean isColorEnabled()
true
if syntax coloring is enabled. Syntax coloring is disabled by default.public void setColorEnabled(boolean enabled)
public boolean isAttributeEnabled()
true
if attributes are to be printed. By default, attributes are not printed.public void setAttributeEnabled(boolean enabled)
crs
", "datum
", etc. put between parenthesis. They give
indications on the services implemented by the factory (e.g. CRSAuthorityFactory
,
DatumAuthorityFactory
, etc.).public void print(PrintWriter out)
public void print(Writer out) throws IOException
out
- The writer where to print the tree.IOException
- if an error occured while writting to the stream.public TreeNode asTree()
Copyright © 1996–2023 Geotools. All rights reserved.