/** * Checks if the array contains the string <code>value</code>. This method is case insensitive. * * @param target * array to check if it contains <code>value</code> * @param value * string to check if it within the array * @return true if passed array contains value */ public static boolean contains( String[] target, String value ) { return contains( target, value, false, true ); }
@Override public void close() throws MetadataStoreException { JDBCUtils.close( rs, stmt, conn, LOG ); }
@Override public String toString() { return generateToString( this ); } }
public GetMap( List<String> layers, List<String> styles, int width, int height, Envelope envelope, ICRS crs, String format, boolean transparent, Map<String, String> overriddenParameters ) { this( layers, width, height, envelope, crs, format, transparent ); this.overriddenParameters = overriddenParameters; this.styles = map( styles, StyleRef.FROM_NAMES ); }
private String buildMetadataUrl( String pattern, String datasetId ) { if ( pattern == null || datasetId == null ) { return null; } return StringUtils.replaceAll( pattern, "${metadataSetId}", datasetId ); }
/** * Writes the starting directed graph definition. * * @param writer * @throws IOException */ public static void startDiGraph( Writer writer ) throws IOException { startDiGraph( writer, null ); }
public OWSException( List<String> messages, String exceptionCode, String locator ) { super( StringUtils.concat( messages, ";" ) ); this.messages = messages; this.exceptionCode = exceptionCode; this.locator = locator; }
/** * Returns the file extension (Eg. /tmp/foo.txt -> txt) * * @param file * @return the file extension */ public static String getFileExtension( File file ) { return splitFilename( file ).second; }
/** * Returns the base directory to be used for storing temporary files. * * @return the base directory, never <code>null</code> */ public static synchronized File getBaseDir() { if ( baseDir == null ) { init(); } return baseDir; } }
@Override public Pair<List<LanguageString>, CodeType> apply( KeywordsType u ) { Pair<List<LanguageString>, CodeType> p = new Pair<List<LanguageString>, CodeType>(); p.first = map( u.getKeyword(), LANG_LANG_MAPPER ); if ( u.getType() != null ) { p.second = CODE_TYPE_MAPPER.apply( u.getType() ); } return p; } };
@Override public String toString() { return generateToString( this ); } }
public GetMap( List<String> layers, int width, int height, Envelope envelope, ICRS crs, String format, boolean transparent ) { this.layers = map( layers, FROM_NAMES ); this.width = width; this.height = height; this.bbox = envelope; this.crs = crs; this.format = format; this.transparent = transparent; }
private String getUrlForMetadataSetId( final String id, final String mdUrlTemplate ) { if ( id == null || mdUrlTemplate == null ) { return null; } return replaceAll( mdUrlTemplate, "${metadataSetId}", id ); } }
/** * Returns the filename, without any extension. (Eg. /tmp/foo.txt -> /tmp/foo) * * @param file * @return the basename */ public static String getBasename( File file ) { return splitFilename( file ).first; }
@Override public String toString() { return generateToString( this ); }
@Override public String toString() { return generateToString( this ); }
@Override public String toString() { return generateToString( this ); }
@Override public String toString() { return generateToString( this ); }
@Override public String toString() { return generateToString( this ); }