/** * Indicates whether or not a named property is defined in an object. Does not traverse the prototype chain. * The property is specified by a String name as defined for the get method. * @param name the name of the property * @param start the object in which the lookup began * @return true if and only if the named property is found in the object */ public boolean hasMember(String name, Scriptable start) { return super.has(name, start); }
@Override public boolean has(String id, Scriptable start) { return id.equals("length") || super.has(id, start); }
@Override public boolean has(String id, Scriptable start) { return id.equals("length") || super.has(id, start); }
public boolean has(String name, Scriptable start) { if (_map.containsKey(name)) { return true; } return super.has(name, start); }
@Override public boolean has(String id, Scriptable start) { return id.equals("length") || super.has(id, start); }
@Override public boolean has(String id, Scriptable start) { return id.equals("length") || super.has(id, start); }
@Override public boolean has(String id, Scriptable start) { return id.equals("length") || super.has(id, start); }
public boolean has(String id, Scriptable start) { return id.equals("length") || super.has(id, start); }
public boolean has(String name, Scriptable start) { if (_attrs.hasAttribute(name)) { return true; } return super.has(name, start); }
public boolean has(String name, Scriptable start) { return super.has(name, start) || getAttribute(name) != null; }
public boolean has(String name, Scriptable start) { DynaClass clazz = _bean.getDynaClass(); DynaProperty prop = clazz.getDynaProperty(name); return prop != null ? true : super.has(name, start); }
public boolean has(String name, Scriptable start) { ServiceCycle cycle = CycleUtil.getServiceCycle(); if (cycle.hasAttributeScope(name) || CycleUtil.findStandardAttributeScope(name) != null) { return true; } return super.has(name, start); }
public void put(String name, Scriptable start, Object value) { if (prototype == null || super.has(name, null)) { ServiceCycle cycle = CycleUtil.getServiceCycle(); AttributeScope scope; if (cycle.hasAttributeScope(name)) { scope = cycle.getAttributeScope(name); } else { scope = CycleUtil.findStandardAttributeScope(name); } if (scope != null) { scope.setAttribute(name, value); } else { super.put(name, start, value); } } else { prototype.put(name, prototype, value); } } }