/** * @param key * key to set. * @return new boolean property. * @throws IllegalArgumentException * if key is invalid. */ public BooleanPluginProperty createBoolean( final String key ) throws IllegalArgumentException { final BooleanPluginProperty property = new BooleanPluginProperty( key ); this.properties.add( property ); return property; }
/** * @param key * key to set. * @return new string property. * @throws IllegalArgumentException * if key is invalid. */ public StringPluginProperty createString( final String key ) throws IllegalArgumentException { final StringPluginProperty property = new StringPluginProperty( key ); this.properties.add( property ); return property; }
/** * @param key * key to set. * @return new integer property. * @throws IllegalArgumentException * if key is invalid. */ public IntegerPluginProperty createInteger( final String key ) throws IllegalArgumentException { final IntegerPluginProperty property = new IntegerPluginProperty( key ); this.properties.add( property ); return property; }
/** * @param key * key. * @return new string list. * @throws IllegalArgumentException * if key is invalid. */ public StringListPluginProperty createStringList( final String key ) throws IllegalArgumentException { final StringListPluginProperty property = new StringListPluginProperty( key ); this.properties.add( property ); return property; } }