code: public void updateLink(String target, String anchor, String query) {
  
          // set the components
          m_target = target;
          m_anchor = anchor;
          setQuery(query);
  
          // create the uri from the components
          setUri();
  
          // update the xml
          CmsLinkUpdateUtil.updateXml(this, m_element, true);
      }
docs: Updates the uri of this link with a new target, anchor and query.<p>
  
  If anchor and/or query are <code>null</code>, this features are not used.<p>
  
  Note that you can <b>not</b> update the "internal" or "type" values of the link,
  so the new link must be of same type (A, IMG) and also remain either an internal or external link.<p>
  
  Also updates the structure of the underlying XML page document this link belongs to.<p>
  
  @param target the target (destination) of this link
  @param anchor the anchor or null if undefined
  @param query the query or null if undefined