public interface IMarkerDelta
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String attributeName)
Returns the object attribute with the given name.
|
boolean |
getAttribute(String attributeName,
boolean defaultValue)
Returns the boolean-valued attribute with the given name.
|
int |
getAttribute(String attributeName,
int defaultValue)
Returns the integer-valued attribute with the given name.
|
String |
getAttribute(String attributeName,
String defaultValue)
Returns the string-valued attribute with the given name.
|
Map<String,Object> |
getAttributes()
Returns a Map with all the attributes for the marker.
|
Object[] |
getAttributes(String[] attributeNames)
Returns the attributes with the given names.
|
long |
getId()
Returns the id of the marker.
|
int |
getKind()
Returns the kind of this marker delta:
one of
IResourceDelta.ADDED ,
IResourceDelta.REMOVED , or IResourceDelta.CHANGED . |
IMarker |
getMarker()
Returns the marker described by this change.
|
IResource |
getResource()
Returns the resource with which this marker is associated.
|
String |
getType()
Returns the type of this marker.
|
boolean |
isSubtypeOf(String superType)
Returns whether the type of this marker is considered to be a sub-type of
the given marker type.
|
Object getAttribute(String attributeName)
String
, Integer
,
or Boolean
.
Returns null
if the attribute is undefined.
The set of valid attribute names is defined elsewhere.
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
attributeName
- the name of the attributenull
if the attribute is undefined.int getAttribute(String attributeName, int defaultValue)
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
attributeName
- the name of the attributedefaultValue
- the value to use if the attribute does not existString getAttribute(String attributeName, String defaultValue)
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
attributeName
- the name of the attributedefaultValue
- the value to use if the attribute does not existboolean getAttribute(String attributeName, boolean defaultValue)
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
attributeName
- the name of the attributedefaultValue
- the value to use if the attribute does not existMap<String,Object> getAttributes()
String
,
Integer
, or Boolean
. If the marker has no
attributes then null
is returned.
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
String
value type : String
, Integer
, or
Boolean
) or null
.Object[] getAttributes(String[] attributeNames)
null
or an instance of one
of the following classes: String
, Integer
,
or Boolean
.
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
attributeNames
- the names of the attributeslong getId()
int getKind()
IResourceDelta.ADDED
,
IResourceDelta.REMOVED
, or IResourceDelta.CHANGED
.IResourceDelta.ADDED
,
IResourceDelta.REMOVED
,
IResourceDelta.CHANGED
IMarker getMarker()
IResourceDelta.REMOVED
, then this is the old marker,
otherwise this is the new marker. Note that if the marker was deleted,
the value returned cannot be used to access attributes.IResource getResource()
String getType()
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
boolean isSubtypeOf(String superType)
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
true
if the marker's type
is the same as (or a sub-type of) the given type.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.