예제 #1
0
 /* (non-Javadoc)
  * @see IMarkerDelta#getAttribute(String, boolean)
  */
 public boolean getAttribute(String attributeName, boolean defaultValue) {
   Object value = info.getAttribute(attributeName);
   if (value instanceof Boolean) return ((Boolean) value).booleanValue();
   return defaultValue;
 }
예제 #2
0
 /* (non-Javadoc)
  * @see IMarkerDelta#getAttribute(String, int)
  */
 public int getAttribute(String attributeName, int defaultValue) {
   Object value = info.getAttribute(attributeName);
   if (value instanceof Integer) return ((Integer) value).intValue();
   return defaultValue;
 }
예제 #3
0
 /* (non-Javadoc)
  * @see IMarkerDelta#getAttribute(String, String)
  */
 public String getAttribute(String attributeName, String defaultValue) {
   Object value = info.getAttribute(attributeName);
   if (value instanceof String) return (String) value;
   return defaultValue;
 }
예제 #4
0
 /* (non-Javadoc)
  * @see IMarkerDelta#getAttribute(String)
  */
 public Object getAttribute(String attributeName) {
   return info.getAttribute(attributeName);
 }