@Override public Spliterator<java.util.Map.Entry<String, Object>> spliterator() { // return instance.spliterator(); throw new NotSupportedException(); }
@Override public Object compute(String key, BiFunction<? super String, ? super Object, ? extends Object> remappingFunction) { throw new NotSupportedException(); }
@Override public Collection<V> values() { throw new NotSupportedException(); }
@Override public V remove(Object key) { // return map.remove(key); throw new NotSupportedException(); }
@Override public boolean replace(K key, V oldValue, V newValue) { // return map.replace(key, oldValue, newValue); throw new NotSupportedException(); }
@Override public void forEach(BiConsumer<? super K, ? super V> action) { // map.forEach(action); throw new NotSupportedException(); }
@Override public V merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) { throw new NotSupportedException(); }
@Override public boolean remove(Object key, Object value) { throw new NotSupportedException(); }
@Override public void doExecuteActivity() throws Exception { throw new NotSupportedException(); }
@Override public Map<String, Object> exportParamters() { throw new NotSupportedException(); }
@Override public void importParameters(Map parameters) { throw new NotSupportedException(); }
@Override public String getProtocol() { throw new NotSupportedException(); }
@Override public int size() { throw new NotSupportedException(); }
@Override public boolean remove(Object key, Object value) { throw new NotSupportedException(); }
@Override public V compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) { throw new NotSupportedException(); }
@Override public Object jsonToPojo(JsonNode node, Class<?> type, TransformHelper helper) throws NotSupportedException { try { return MJson.getMapper().readValue(node, type); } catch (Exception e) { throw new NotSupportedException(e); } }
public static boolean isZipCode(Locale locale, String zip) { if (locale == null) { } else if (locale.getCountry().equals("DE")) { if (zip == null || zip.length() != 5) return false; int i = MCast.toint(zip, 0); return (i >= 1000 && i <= 99999); } throw new NotSupportedException("Country not supported",locale); }
@Override public void removeProperty(String key) { if (readonly) throw new NotSupportedException(); parent.removeProperty(prefix + key); }
@Override public void setProperty(String key, Object value) { if (readonly) throw new NotSupportedException(); parent.put(prefix + key, value); }
@Override public JsonNode pojoToJson(Object obj, TransformHelper helper) throws NotSupportedException { JsonNode x; try { x = MJson.load( MJson.getMapper().writeValueAsString(obj) ); } catch (Exception e) { throw new NotSupportedException(e); } return x; }