/** */ void register(BeanProp prop, Object value) { BeanProperty bp = new BeanProperty(prop); if (Common.isBean(prop.type)) ((BaseBean)value).setDomBinding(this); this.prop = bp; if (DDLogFlags.debug) { TraceLogger.put(TraceLogger.DEBUG, TraceLogger.SVC_DD, DDLogFlags.DBG_BLD, 1, DDLogFlags.BINDPROP, "property " + prop.getDtdName() + " bound to B(" + this.hashCode() + ")"); } // // Following is a little trick to deal with attribute that are not // defined in the dtd. When we register this new element, we ask // for all the attributes and add them dynamically, as transient, // to the BeanProp list of attributes. // if (this.node != null) { NamedNodeMap l = this.node.getAttributes(); for (int i=0; i<l.getLength(); i++) { Node n = l.item(i); prop.createTransientAttribute(n.getNodeName()); } } }
prop.createTransientAttribute("xmlns:"+prefix); prop.createTransientAttribute("xmlns:"+prefix);