public void add(Class definedIn, String fieldName, Class itemType) { add(definedIn, fieldName, null, itemType); }
public void add(Class definedIn, String fieldName, String itemFieldName, Class itemType) { add(definedIn, fieldName, itemFieldName, itemType, null); }
/** * Adds an implicit map. * * @param ownerType class owning the implicit map * @param fieldName name of the field in the ownerType. This field must be a concrete * map type or matching the default implementation type of the map * type. * @param itemName alias name of the items * @param itemType type of the items to be part of this map as value * @param keyFieldName the name of the field of the itemType that is used for the key in the map * @since 1.4 */ public void addImplicitMap(Class ownerType, String fieldName, String itemName, Class itemType, String keyFieldName) { if (implicitCollectionMapper == null) { throw new com.thoughtworks.xstream.InitializationException("No " + ImplicitCollectionMapper.class.getName() + " available"); } implicitCollectionMapper.add(ownerType, fieldName, itemName, itemType, keyFieldName); }
implicitCollectionMapper.add( field.getDeclaringClass(), fieldName, itemFieldName != null && !"".equals(itemFieldName) ? itemFieldName : null, } else { if (itemFieldName != null && !"".equals(itemFieldName)) { implicitCollectionMapper.add( field.getDeclaringClass(), fieldName, itemFieldName, itemType); } else { implicitCollectionMapper .add(field.getDeclaringClass(), fieldName, itemType);
public void add(final Class<?> definedIn, final String fieldName, final String itemFieldName, final Class<?> itemType) { add(definedIn, fieldName, itemFieldName, itemType, null); }
public void add(Class definedIn, String fieldName, Class itemType) { add(definedIn, fieldName, null, itemType); }
public void add(Class definedIn, String fieldName, Class itemType) { add(definedIn, fieldName, null, itemType); }
public void add(Class definedIn, String fieldName, Class itemType) { add(definedIn, fieldName, null, itemType); }
public void add(Class definedIn, String fieldName, String itemFieldName, Class itemType) { add(definedIn, fieldName, itemFieldName, itemType, null); }
public void add(Class definedIn, String fieldName, String itemFieldName, Class itemType) { add(definedIn, fieldName, itemFieldName, itemType, null); }
public void add(Class definedIn, String fieldName, Class itemType) { add(definedIn, fieldName, null, itemType); }
public void add(Class definedIn, String fieldName, Class itemType) { add(definedIn, fieldName, null, itemType); }
public void add(Class definedIn, String fieldName, Class itemType) { add(definedIn, fieldName, null, itemType); }
public void add(Class definedIn, String fieldName, String itemFieldName, Class itemType) { add(definedIn, fieldName, itemFieldName, itemType, null); }
public void add(final Class<?> definedIn, final String fieldName, final Class<?> itemType) { add(definedIn, fieldName, null, itemType); }
public void add(Class definedIn, String fieldName, String itemFieldName, Class itemType) { add(definedIn, fieldName, itemFieldName, itemType, null); }
public void add(Class definedIn, String fieldName, String itemFieldName, Class itemType) { add(definedIn, fieldName, itemFieldName, itemType, null); }
@Override public void add(final Class definedIn, final String fieldName, final String itemFieldName, final Class itemType, final String keyFieldName) { super.add(definedIn, fieldName, itemFieldName, itemType, keyFieldName); if (typeWhitelist != null) { typeWhitelist.allowType(definedIn, itemType); } } };
/** * Adds a default implicit collection which is used for any unmapped XML tag. * * @param ownerType class owning the implicit collection * @param fieldName name of the field in the ownerType. This field must be a * concrete collection type or matching the default implementation type of the * collection type. */ public void addImplicitCollection(Class ownerType, String fieldName) { if (implicitCollectionMapper == null) { throw new InitializationException("No " + ImplicitCollectionMapper.class.getName() + " available"); } implicitCollectionMapper.add(ownerType, fieldName, null, null); }