/** * Sets ith "resource" element */ public void setResourceArray(int i, org.w3.x1999.xlink.ResourceType resource) { synchronized (monitor()) { check_orphaned(); org.w3.x1999.xlink.ResourceType target = null; target = (org.w3.x1999.xlink.ResourceType)get_store().find_element_user(RESOURCE$2, i); if (target == null) { throw new IndexOutOfBoundsException(); } target.set(resource); } }
/** * Sets the "resource" element */ public void setResource(org.w3.x1999.xlink.ResourceType resource) { synchronized (monitor()) { check_orphaned(); org.w3.x1999.xlink.ResourceType target = null; target = (org.w3.x1999.xlink.ResourceType)get_store().find_element_user(RESOURCE$0, 0); if (target == null) { target = (org.w3.x1999.xlink.ResourceType)get_store().add_element_user(RESOURCE$0); } target.set(resource); } }