public final Object get(Object key) { if (key != null) { return getAttribute(key.toString()); } return null; }
@Override public final boolean containsKey(Object key) { if (key == null) { return false; } Enumeration<String> e = getAttributeNames(); if (e != null) { while (e.hasMoreElements()) { if (key.equals(e.nextElement())) { return true; } } } return false; }
@Override public final V remove(Object key) { if (key == null) { throw new NullPointerException(); } this.removeAttribute((String) key); return null; }
public Object getValue() { return getAttribute(this.key); }
@Override public final boolean containsKey(Object key) { if (key == null) { return false; } Enumeration<String> e = getAttributeNames(); if (e != null) { while (e.hasMoreElements()) { if (key.equals(e.nextElement())) { return true; } } } return false; }
@Override public final Set<Map.Entry<String,V>> entrySet() { Enumeration<String> e = getAttributeNames(); Set<Map.Entry<String, V>> set = new HashSet<Map.Entry<String, V>>(); if (e != null) { while (e.hasMoreElements()) { set.add(new ScopeEntry(e.nextElement())); } } return set; }
@Override public final V get(Object key) { if (key != null) { return getAttribute((String) key); } return null; }
public final Object remove(Object key) { if (key == null) { throw new NullPointerException(); } this.removeAttribute(key.toString()); return null; }
public final Set entrySet() { Enumeration e = getAttributeNames(); Set set = new HashSet(); if (e != null) { while (e.hasMoreElements()) { set.add(new ScopeEntry((String) e.nextElement())); } } return set; }
public Object getValue() { return getAttribute(this.key); }
public final Object get(Object key) { if (key != null) { return getAttribute(key.toString()); } return null; }
public final Object remove(Object key) { if (key == null) { throw new NullPointerException(); } this.removeAttribute(key.toString()); return null; }
public final Set entrySet() { Enumeration e = getAttributeNames(); Set set = new HashSet(); if (e != null) { while (e.hasMoreElements()) { set.add(new ScopeEntry((String) e.nextElement())); } } return set; }
@Override public final Set<Map.Entry<String,V>> entrySet() { Enumeration<String> e = getAttributeNames(); Set<Map.Entry<String, V>> set = new HashSet<>(); if (e != null) { while (e.hasMoreElements()) { set.add(new ScopeEntry(e.nextElement())); } } return set; }
public Object getValue() { return getAttribute(this.key); }
public final Object get(Object key) { if (key != null) { return getAttribute(key.toString()); } return null; }
public final Object put(Object key, Object value) { if (key == null) { throw new NullPointerException(); } if (value == null) { this.removeAttribute(key.toString()); } else { this.setAttribute(key.toString(), value); } return null; }
public Object setValue(Object value) { if (value == null) { removeAttribute(this.key); } else { setAttribute(this.key, value); } return null; }
public final Set entrySet() { Enumeration e = getAttributeNames(); Set set = new HashSet(); if (e != null) { while (e.hasMoreElements()) { set.add(new ScopeEntry((String) e.nextElement())); } } return set; }
public final Object put(Object key, Object value) { if (key == null) { throw new NullPointerException(); } if (value == null) { this.removeAttribute(key.toString()); } else { this.setAttribute(key.toString(), value); } return null; }