public abstract class NamedHandleObject extends HandleObject
Command
, Context
and Scheme
.Modifier and Type | Field and Description |
---|---|
protected String |
description
The description for this handle.
|
protected String |
name
The name of this handle.
|
defined, id, string
Modifier | Constructor and Description |
---|---|
protected |
NamedHandleObject(String id)
Constructs a new instance of
NamedHandleObject . |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description for this handle.
|
String |
getName()
Returns the name for this handle.
|
equals, getId, hashCode, isDefined, toString, undefine
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
protected String description
null
if
the handle is undefined or has no description.protected String name
null
unless the handle is undefined.protected NamedHandleObject(String id)
NamedHandleObject
.id
- The identifier for this handle; must not be null
.public String getDescription() throws NotDefinedException
null
if there is no
description.NotDefinedException
- If the handle is not currently defined.public String getName() throws NotDefinedException
null
.NotDefinedException
- If the handle is not currently defined.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.