Package org.geotools.referencing.factory
Class FactoryDependencies
- Object
- 
- FactoryDependencies
 
- 
 public class FactoryDependencies extends Object Build a tree of factory dependencies.- Since:
- 2.4
- Author:
- Martin Desruisseaux
 
- 
- 
Constructor SummaryConstructors Constructor Description FactoryDependencies(Factory factory)Creates a new dependency tree for the specified factory.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TreeNodeasTree()Returns the dependencies as a tree.booleanisAttributeEnabled()Returnstrueif attributes are to be printed.booleanisColorEnabled()Returnstrueif syntax coloring is enabled.voidprint(PrintWriter out)Prints the dependencies as a tree to the specified printer.voidprint(Writer out)Prints the dependencies as a tree to the specified writer.voidsetAttributeEnabled(boolean enabled)Enables or disables the addition of attributes after factory names.voidsetColorEnabled(boolean enabled)Enables or disables syntax coloring on ANSI X3.64 (aka ECMA-48 and ISO/IEC 6429) compatible terminal.
 
- 
- 
- 
Constructor Detail- 
FactoryDependenciespublic FactoryDependencies(Factory factory) Creates a new dependency tree for the specified factory.
 
- 
 - 
Method Detail- 
isColorEnabledpublic boolean isColorEnabled() Returnstrueif syntax coloring is enabled. Syntax coloring is disabled by default.
 - 
setColorEnabledpublic void setColorEnabled(boolean enabled) Enables or disables syntax coloring on ANSI X3.64 (aka ECMA-48 and ISO/IEC 6429) compatible terminal. By default, syntax coloring is disabled.
 - 
isAttributeEnabledpublic boolean isAttributeEnabled() Returnstrueif attributes are to be printed. By default, attributes are not printed.
 - 
setAttributeEnabledpublic void setAttributeEnabled(boolean enabled) Enables or disables the addition of attributes after factory names. Attributes are labels like "crs", "datum", etc. put between parenthesis. They give indications on the services implemented by the factory (e.g.CRSAuthorityFactory,DatumAuthorityFactory, etc.).
 - 
printpublic void print(PrintWriter out) Prints the dependencies as a tree to the specified printer.
 - 
printpublic void print(Writer out) throws IOException Prints the dependencies as a tree to the specified writer.- Parameters:
- out- The writer where to print the tree.
- Throws:
- IOException- if an error occured while writting to the stream.
 
 - 
asTreepublic TreeNode asTree() Returns the dependencies as a tree.
 
- 
 
-