Esempio n. 1
0
 public Object set(Context cx, Object value) {
   if (xmlObject == null) {
     throw ScriptRuntime.undefWriteError(Undefined.instance, toString(), value);
   }
   // Assignment to descendants causes parse error on bad reference
   // and this should not be called
   if (isDescendants) throw Kit.codeBug();
   xmlObject.putXMLProperty(this, value);
   return value;
 }
Esempio n. 2
0
 public Object get(Context cx) {
   if (xmlObject == null) {
     throw ScriptRuntime.undefReadError(Undefined.instance, toString());
   }
   return xmlObject.getXMLProperty(this);
 }