예제 #1
0
 public static Map<QName, String> toQName(final Map<String, String> setProps) {
   if (setProps == null) {
     return Collections.emptyMap();
   }
   final Map<QName, String> result = new HashMap<QName, String>(setProps.size());
   for (final Map.Entry<String, String> entry : setProps.entrySet()) {
     result.put(SardineUtil.createQNameWithCustomNamespace(entry.getKey()), entry.getValue());
   }
   return result;
 }
예제 #2
0
 public static List<QName> toQName(final List<String> removeProps) {
   if (removeProps == null) {
     return Collections.emptyList();
   }
   final List<QName> result = new ArrayList<QName>(removeProps.size());
   for (final String entry : removeProps) {
     result.add(SardineUtil.createQNameWithCustomNamespace(entry));
   }
   return result;
 }