/** * Create a new EnvEntryMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static EnvEntryMetaData create(EnvironmentEntryMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new EnvEntryMetaData(delegate); }
/** * Get the type. * * @return the type. */ public String getType() { return getDelegate().getType(); }
Class type = loader.loadClass(entry.getType()); if (type == String.class) Util.bind(ctx, entry.getName(), entry.getValue()); Util.bind(ctx, entry.getName(), new Integer(entry.getValue())); Util.bind(ctx, entry.getName(), new Long(entry.getValue())); Util.bind(ctx, entry.getName(), new Double(entry.getValue())); Util.bind(ctx, entry.getName(), new Float(entry.getValue())); Util.bind(ctx, entry.getName(), new Byte(entry.getValue())); String input = entry.getValue(); if (input == null || input.length() == 0) Util.bind(ctx, entry.getName(), value); Util.bind(ctx, entry.getName(), new Short(entry.getValue())); Util.bind(ctx, entry.getName(), new Boolean(entry.getValue())); Util.bind(ctx, entry.getName(), entry.getValue());
/** * Get the value. * * @return the value. */ public String getValue() { return getDelegate().getValue(); } }
/** * Create a new EnvEntryMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static EnvEntryMetaData create(EnvironmentEntryMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new EnvEntryMetaData(delegate); }
/** * Get the name. * * @return the name. */ public String getName() { return getDelegate().getName(); }
/** * Get the name. * * @return the name. */ public String getName() { return getDelegate().getName(); }
/** * Get the type. * * @return the type. */ public String getType() { return getDelegate().getType(); }
/** * Get the value. * * @return the value. */ public String getValue() { return getDelegate().getValue(); } }