private boolean testTransformation( ProcessletInputs in ) { String isT = getLiteralInputValue( in, IN_TEST_TRANSFORM ); return !isSet( isT ) ? false : Boolean.parseBoolean( isT ); }
/** * Removes underscores and sets the first Character to a lowercase. * * @param someValue * @return the new class name */ public static String createBetterMethodName( String someValue ) { if ( StringUtils.isSet( someValue ) ) { String t = someValue.replace( "_", "" ); String result = modifyKeyword( t ); StringBuilder sb = new StringBuilder( result ); sb.replace( 0, 1, t.substring( 0, 1 ).toLowerCase() ); return sb.toString(); } return someValue; }
/** * Removes underscores and sets the first Character to an Uppercase. * * @param someValue * @return the new class name */ public static String createBetterClassName( String someValue ) { if ( StringUtils.isSet( someValue ) ) { String t = someValue.replace( "_", "" ); String result = modifyKeyword( t ); StringBuilder sb = new StringBuilder( result ); sb.replace( 0, 1, t.substring( 0, 1 ).toUpperCase() ); return sb.toString(); } return someValue; }
String s = size; long result = 0; if ( isSet( s ) ) { int byteConvert = 1;
long mm = StringUtils.parseByteSize( cacheSize ); if ( mm == 0 ) { if ( StringUtils.isSet( cacheSize ) ) { LOG.warn( "Ignoring supplied property: {} because it could not be parsed. Using 0.5 of the total memory for raster caching.", DEF_RASTER_CACHE_MEM_SIZE ); mm = StringUtils.parseByteSize( t ); if ( mm == 0 ) { if ( StringUtils.isSet( t ) ) { LOG.warn( "Ignoring supplied property: {} because it could not be parsed. Using 20G of disk space for raster caching.", DEF_RASTER_CACHE_MEM_SIZE );
if ( StringUtils.isSet( geomString ) ) { String t = geomString.toLowerCase(); t = t.replace( "_", "" );
if ( isSet( mimeType ) ) { String subType = null; String[] split = mimeType.split( ";" ); if ( split.length > 1 ) { subType = split[split.length - 1]; if ( isSet( subType ) ) { subType = subType.toLowerCase().trim(); int index = subType.lastIndexOf( "=gml/" ); if ( index > -1 ) { String version = subType.substring( index + "=gml/".length() ); if ( isSet( version ) ) { Version v = null; try {
if ( !insideValidDomain( domainOfValidity, geo ) ) { throw new OutsideCRSDomainException( "Geometry (gml:id=" + ( isSet( geo.getId() ) ? geo.getId() : "not set" ) + ")is outside the area of validity of the source CRS." );