private static final Map<String, Object> subsetAttributes(
     final CommonInfo igc, final Collection<String> keysToPreserve) {
   Map<String, Object> attributes = new HashMap<String, Object>(keysToPreserve.size());
   for (final String key : keysToPreserve) {
     if (igc.hasAttribute(key)) attributes.put(key, igc.getAttribute(key));
   }
   return attributes;
 }
Esempio n. 2
0
 public Object getAttribute(String key, Object defaultValue) {
   return commonInfo.getAttribute(key, defaultValue);
 }
Esempio n. 3
0
 public Object getAttribute(String key) {
   return commonInfo.getAttribute(key);
 }