/** * Add a new dynamic property with no restrictions on data type, * readability, or writeability. * * @param name Name of the new dynamic property * * @throws IllegalArgumentException if name is null */ public void add(final String name) { add(name, null); }
/** * Construct a new <code>LazyDynaMap</code> with the specified name and properties. * * @param name Name of this DynaBean class * @param properties Property descriptors for the supported properties */ public LazyDynaMap(final String name, final DynaProperty[] properties) { this(name, (Map<String, Object>)null); if (properties != null) { for (DynaProperty propertie : properties) { add(propertie); } } }
/** * Add a new dynamic property with no restrictions on data type, * readability, or writeability. * * @param name Name of the new dynamic property * * @throws IllegalArgumentException if name is null */ public void add(final String name) { add(name, null); }
/** * Construct a new <code>LazyDynaMap</code> with the specified name and properties. * * @param name Name of this DynaBean class * @param properties Property descriptors for the supported properties */ public LazyDynaMap(final String name, final DynaProperty[] properties) { this(name, (Map<String, Object>)null); if (properties != null) { for (DynaProperty propertie : properties) { add(propertie); } } }
/** * Add a new dynamic property. * * @param property Property the new dynamic property to add. * * @throws IllegalArgumentException if name is null */ protected void add(final DynaProperty property) { add(property.getName(), property.getType()); }
/** * Add a new dynamic property. * * @param property Property the new dynamic property to add. * * @throws IllegalArgumentException if name is null */ protected void add(final DynaProperty property) { add(property.getName(), property.getType()); }
/** * Instantiate and return a new DynaBean instance, associated * with this DynaClass. * @return A new <code>DynaBean</code> instance */ public DynaBean newInstance() { // Create a new instance of the Map Map<String, Object> newMap = null; try { @SuppressWarnings("unchecked") final // The new map is used as properties map Map<String, Object> temp = getMap().getClass().newInstance(); newMap = temp; } catch(final Exception ex) { newMap = newMap(); } // Crate new LazyDynaMap and initialize properties final LazyDynaMap lazyMap = new LazyDynaMap(newMap); final DynaProperty[] properties = this.getDynaProperties(); if (properties != null) { for (DynaProperty propertie : properties) { lazyMap.add(propertie); } } return lazyMap; }
/** * Instantiate and return a new DynaBean instance, associated * with this DynaClass. * @return A new <code>DynaBean</code> instance */ public DynaBean newInstance() { // Create a new instance of the Map Map<String, Object> newMap = null; try { @SuppressWarnings("unchecked") final // The new map is used as properties map Map<String, Object> temp = getMap().getClass().newInstance(); newMap = temp; } catch(final Exception ex) { newMap = newMap(); } // Crate new LazyDynaMap and initialize properties final LazyDynaMap lazyMap = new LazyDynaMap(newMap); final DynaProperty[] properties = this.getDynaProperties(); if (properties != null) { for (DynaProperty propertie : properties) { lazyMap.add(propertie); } } return lazyMap; }
/** * Add a new dynamic property with no restrictions on data type, * readability, or writeability. * * @param name Name of the new dynamic property * * @exception IllegalArgumentException if name is null */ public void add(String name) { add(name, null); }
/** * Add a new dynamic property with no restrictions on data type, * readability, or writeability. * * @param name Name of the new dynamic property * * @throws IllegalArgumentException if name is null */ public void add(final String name) { add(name, null); }
/** * Add a new dynamic property with no restrictions on data type, * readability, or writeability. * * @param name Name of the new dynamic property * * @exception IllegalArgumentException if name is null */ public void add(String name) { add(name, null); }
/** * Add a new dynamic property with no restrictions on data type, * readability, or writeability. * * @param name Name of the new dynamic property * * @exception IllegalArgumentException if name is null */ public void add(String name) { add(name, null); }
/** * Construct a new <code>LazyDynaMap</code> with the specified name and properties. * * @param name Name of this DynaBean class * @param properties Property descriptors for the supported properties */ public LazyDynaMap(final String name, final DynaProperty[] properties) { this(name, (Map<String, Object>)null); if (properties != null) { for (DynaProperty propertie : properties) { add(propertie); } } }
/** * Construct a new <code>LazyDynaMap</code> with the specified name and properties. * * @param name Name of this DynaBean class * @param properties Property descriptors for the supported properties */ public LazyDynaMap(String name, DynaProperty[] properties) { this(name, (Map)null); if (properties != null) { for (int i = 0; i < properties.length; i++) { add(properties[i]); } } }
/** * Construct a new <code>LazyDynaMap</code> with the specified name and properties. * * @param name Name of this DynaBean class * @param properties Property descriptors for the supported properties */ public LazyDynaMap(String name, DynaProperty[] properties) { this(name, (Map)null); if (properties != null) { for (int i = 0; i < properties.length; i++) { add(properties[i]); } } }
/** * Construct a new <code>LazyDynaMap</code> with the specified name and properties. * * @param name Name of this DynaBean class * @param properties Property descriptors for the supported properties */ public LazyDynaMap(String name, DynaProperty[] properties) { this(name, (Map)null); if (properties != null) { for (int i = 0; i < properties.length; i++) { add(properties[i]); } } }
/** * Add a new dynamic property. * * @param property Property the new dynamic property to add. * * @exception IllegalArgumentException if name is null */ protected void add(DynaProperty property) { add(property.getName(), property.getType()); }
/** * Add a new dynamic property. * * @param property Property the new dynamic property to add. * * @throws IllegalArgumentException if name is null */ protected void add(final DynaProperty property) { add(property.getName(), property.getType()); }
/** * Add a new dynamic property. * * @param property Property the new dynamic property to add. * * @exception IllegalArgumentException if name is null */ protected void add(DynaProperty property) { add(property.getName(), property.getType()); }
/** * Add a new dynamic property. * * @param property Property the new dynamic property to add. * * @exception IllegalArgumentException if name is null */ protected void add(DynaProperty property) { add(property.getName(), property.getType()); }