示例#1
0
  /**
   * Returns external XS ds for object
   *
   * @return
   */
  public Map getExternalXSDs() {
    Map map = new HashMap();
    Enumeration enumerator = getExtNamespaces();

    while (enumerator.hasMoreElements()) {
      String namespace = (String) enumerator.nextElement();

      map.put(namespace, getExternalXSD(namespace));
    }
    return map;
  }
示例#2
0
  /**
   * Sets external XS ds for object
   *
   * @param map
   */
  public void setExternalXSDs(Map map) {
    clearExternalXSDs();

    Iterator iter = map.entrySet().iterator();

    while (iter.hasNext()) {
      Map.Entry entry = (Map.Entry) iter.next();

      addExternalXSD((String) entry.getKey(), (String) entry.getValue());
    }
  }