@Tool(value = "Converts a 3.1 or earlier WMS configuration to 3.2 style configurations. Currently only works for feature layers.") public class WMSMigrator {
@LoggingNotes(warn = "logs information about dimension handling") public abstract class AbstractLayer implements Layer {
private void handleNotes( RollbackPrintWriter out, String qname, boolean error, boolean warn, boolean info, boolean debug, boolean trace ) { handleNote( out, error, notes.error(), qname, "ERROR" ); handleNote( out, warn, notes.warn(), qname, "WARN" ); handleNote( out, info, notes.info(), qname, "INFO" ); handleNote( out, debug, notes.debug(), qname, "DEBUG" ); handleNote( out, trace, notes.trace(), qname, "TRACE" ); }
private void handlePackageNotes( RollbackPrintWriter out, String qname, boolean error, boolean warn, boolean info, boolean debug, boolean trace ) { String title = pnotes.title(); boolean isSubsystem = qname.replaceAll( "[^\\.]", "" ).length() == 2; if ( !title.isEmpty() ) { block( title, out, isSubsystem ); } handleNote( out, error, pnotes.error(), qname, "ERROR" ); handleNote( out, warn, pnotes.warn(), qname, "WARN" ); handleNote( out, info, pnotes.info(), qname, "INFO" ); handleNote( out, debug, pnotes.debug(), qname, "DEBUG" ); handleNote( out, trace, pnotes.trace(), qname, "TRACE" ); }
ToolInfo( Class<?> mainClass ) { this.mainClass = mainClass; try { Tool annotation = this.mainClass.getAnnotation( Tool.class ); this.description = annotation.value(); } catch ( NullPointerException e ) { description = "[FAILURE] Does not implement the Tool annotation, a description is therefore not available."; } try { this.mainClass.getMethod( "main", String[].class ); } catch ( Exception e ) { System.err.println( "The given class: " + mainClass.getSimpleName() + " does not declare a main method and can thus not be invoked." ); this.mainClass = null; description = null; } }
@LoggingNotes(debug = "logs resource requests") public class ResourcesServlet extends HttpServlet {
@Tool(value = "scans the argument files and tries to guess their encoding, treats dbf files specially") public class ScanEncoding {
@LoggingNotes(debug = "Get information about the currently parsed primemeridian, as well as a stack trace if something went wrong.") public class PrimemeridianParser extends DefinitionParser { private static final Logger LOG = getLogger( PrimemeridianParser.class );
@Tool("Helps creating readable short versions of feature type / property names for mapping to db.") public class MappingShortener {
@LoggingNotes(debug = "logs information about pool usage") public class ConnectionPool {
@Tool(value = "This tool can be used to import SLD/SE files into a WMS styles database.") public class PostgreSQLImporter { private static Options initOptions() {
@LoggingNotes(debug = "Get information about the incoming ordinates of a direct transformation.") public class DirectTransform extends Transformation {
@Tool("Transforms a raster with the given crs into another crs") public class TransformRaster {
@LoggingNotes(debug = "log the executed statements") public class SQLExecution implements Serializable {
@Tool("Prints an analysis of the feature type hierarchy defined in a GML application schema as well as information on the geometry element hierarchy.") public class GMLSchemaAnalyzer {
@LoggingNotes(debug = "Get information about initializing the xml file.") public abstract class XMLFileResource extends XMLAdapter implements XMLResource {
@LoggingNotes(debug = "logs which named layers were extracted from SLD") public class SLDParser {
@LoggingNotes(debug = "Get information about incoming ordinates.") public class Mercator extends CylindricalProjection implements IMercator {
@LoggingNotes(debug = "Get information about the currently parsed datums, as well as a stack trace if something went wrong.") public class DatumParser extends DefinitionParser { private static final Logger LOG = getLogger( DatumParser.class );
@LoggingNotes(debug = "Get information about the currently parsed ellipsoid, as well as a stack trace if something went wrong.") public class EllipsoidParser extends DefinitionParser {