|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.resources.SystemRemoteMarker
This class is an internal implementation of the ISystemRemoteMarker interface. It is not intended to be implemented by clients.
Field Summary | |
---|---|
static String |
Copyright
|
protected long |
id
The marker id. |
protected ISystemRemoteResource |
resource
Resource with which this marker is associated. |
Fields inherited from interface com.ibm.etools.systems.core.resources.ISystemRemoteMarker |
---|
EXTENSION_POINT_ID |
Constructor Summary | |
---|---|
SystemRemoteMarker(ISystemRemoteResource resource,
long id)
Constructor for SystemRemoteMarker. |
Method Summary | |
---|---|
void |
delete()
Deletes this marker from its associated resource. |
boolean |
equals(Object object)
Tests this marker for equality with the given object. |
boolean |
exists()
Returns whether this marker exists. |
Object |
getAttribute(String attributeName)
Returns the 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 |
getAttributes()
Returns a map with all the attributes for the marker. |
Object[] |
getAttributes(String[] attributeNames)
Returns the attributes with the given names. |
long |
getCreationTime()
Returns the time at which this marker was created. |
long |
getId()
Returns the id of the marker. |
ISystemRemoteResource |
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 subtype of the given marker type. |
void |
setAttribute(String attributeName,
boolean value)
Sets the boolean-valued attribute with the given name. |
void |
setAttribute(String attributeName,
int value)
Sets the integer-valued attribute with the given name. |
void |
setAttribute(String attributeName,
Object value)
Sets the attribute with the given name. |
void |
setAttributes(Map attributes)
Sets the attributes for this marker to be the ones contained in the given table. |
void |
setAttributes(String[] attributeNames,
Object[] values)
Sets the given attribute key-value pairs on this marker. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
protected ISystemRemoteResource resource
protected long id
Constructor Detail |
public SystemRemoteMarker(ISystemRemoteResource resource, long id)
Method Detail |
public void delete()
ISystemRemoteMarker
delete
in interface ISystemRemoteMarker
ISystemRemoteMarker.delete()
public boolean equals(Object object)
ISystemRemoteMarker
equals
in interface ISystemRemoteMarker
ISystemRemoteMarker.equals(Object)
public boolean exists()
ISystemRemoteMarker
exists
in interface ISystemRemoteMarker
true
if this marker exists, otherwise
false
ISystemRemoteMarker.exists()
public Object getAttribute(String attributeName)
ISystemRemoteMarker
String
, Integer
,
or Boolean
.
Returns null
if the attribute is undefined.
getAttribute
in interface ISystemRemoteMarker
attributeName
- the name of the attribute
null
if the attribute is undefined.ISystemRemoteMarker.getAttribute(String)
public int getAttribute(String attributeName, int defaultValue)
ISystemRemoteMarker
getAttribute
in interface ISystemRemoteMarker
attributeName
- the name of the attributedefaultValue
- the value to use if no value is found
ISystemRemoteMarker.getAttribute(String, int)
public String getAttribute(String attributeName, String defaultValue)
ISystemRemoteMarker
getAttribute
in interface ISystemRemoteMarker
attributeName
- the name of the attributedefaultValue
- the value to use if no value is found
ISystemRemoteMarker.getAttribute(String, String)
public boolean getAttribute(String attributeName, boolean defaultValue)
ISystemRemoteMarker
getAttribute
in interface ISystemRemoteMarker
attributeName
- the name of the attributedefaultValue
- the value to use if no value is found
ISystemRemoteMarker.getAttribute(String, boolean)
public Map getAttributes()
ISystemRemoteMarker
null
is returned.
getAttributes
in interface ISystemRemoteMarker
String
value type : String
, Integer
, or
Boolean
) or null
.ISystemRemoteMarker.getAttributes()
public Object[] getAttributes(String[] attributeNames)
ISystemRemoteMarker
null
or an instance of one
of the following classes: String
, Integer
,
or Boolean
.
getAttributes
in interface ISystemRemoteMarker
attributeNames
- the names of the attributes
ISystemRemoteMarker.getAttributes(String[])
public long getCreationTime()
ISystemRemoteMarker
getCreationTime
in interface ISystemRemoteMarker
ISystemRemoteMarker.getCreationTime()
public long getId()
ISystemRemoteMarker
getId
in interface ISystemRemoteMarker
ISystemRemoteMarker.getId()
public ISystemRemoteResource getResource()
ISystemRemoteMarker
getResource
in interface ISystemRemoteMarker
ISystemRemoteMarker.getResource()
public String getType()
ISystemRemoteMarker
getType
in interface ISystemRemoteMarker
ISystemRemoteMarker.getType()
public boolean isSubtypeOf(String superType)
ISystemRemoteMarker
isSubtypeOf
in interface ISystemRemoteMarker
true
if the marker's type
is the same as (or a subtype of) the given type.ISystemRemoteMarker.isSubtypeOf(String)
public void setAttribute(String attributeName, int value)
ISystemRemoteMarker
setAttribute
in interface ISystemRemoteMarker
attributeName
- the name of the attributevalue
- the valueISystemRemoteMarker.setAttribute(String, int)
public void setAttribute(String attributeName, Object value)
ISystemRemoteMarker
null
or
an instance of one of the following classes:
String
, Integer
, or Boolean
.
If the value is null
, the attribute is considered to be undefined.
setAttribute
in interface ISystemRemoteMarker
attributeName
- the name of the attributevalue
- the value, or null
if the attribute is to be undefinedISystemRemoteMarker.setAttribute(String, Object)
public void setAttribute(String attributeName, boolean value)
ISystemRemoteMarker
setAttribute
in interface ISystemRemoteMarker
attributeName
- the name of the attributevalue
- the valueISystemRemoteMarker.setAttribute(String, boolean)
public void setAttributes(String[] attributeNames, Object[] values)
ISystemRemoteMarker
null
or an instance of
one of the following classes: String
,
Integer
, or Boolean
.
If a value is null
, the new value of the
attribute is considered to be undefined.
setAttributes
in interface ISystemRemoteMarker
attributeNames
- an array of attribute namesvalues
- an array of attribute valuesISystemRemoteMarker.setAttributes(String[], Object[])
public void setAttributes(Map attributes)
ISystemRemoteMarker
String
, Integer
, or Boolean
.
Attributes previously set on the marker but not included in the given map
are considered to be removals. Setting the given map to be null
is equivalent to removing all marker attributes.
setAttributes
in interface ISystemRemoteMarker
attributes
- a map of attribute names to attribute values
(key type : String
value type : String
,
Integer
, or Boolean
) or null
ISystemRemoteMarker.setAttributes(Map)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |