Eclipse Platform
2.0

org.eclipse.core.runtime.model
Class PluginModelObject

java.lang.Object
  |
  +--org.eclipse.core.runtime.model.PluginModelObject
Direct Known Subclasses:
ConfigurationElementModel, ConfigurationPropertyModel, ExtensionModel, ExtensionPointModel, LibraryModel, PluginModel, PluginPrerequisiteModel, URLModel

public abstract class PluginModelObject
extends Object

An object which has the general characteristics of all elements in a plug-in manifest.

This class may be subclassed.


Constructor Summary
PluginModelObject()
           
 
Method Summary
protected  void assertIsWriteable()
          Checks that this model object is writeable.
 String getName()
          Returns the name of this element.
 boolean isReadOnly()
          Returns whether or not this model object is read-only.
 void markReadOnly()
          Sets this model object and all of its descendents to be read-only.
 void setName(String value)
          Sets the name of this element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginModelObject

public PluginModelObject()
Method Detail

assertIsWriteable

protected final void assertIsWriteable()
Checks that this model object is writeable. A runtime exception is thrown if it is not.


getName

public String getName()
Returns the name of this element.

Returns:
the name of this element or null

isReadOnly

public boolean isReadOnly()
Returns whether or not this model object is read-only.

Returns:
true if this model object is read-only, false otherwise
See Also:
markReadOnly()

markReadOnly

public void markReadOnly()
Sets this model object and all of its descendents to be read-only. Subclasses may extend this implementation.

See Also:
isReadOnly()

setName

public void setName(String value)
Sets the name of this element.

Parameters:
value - the new name of this element. May be null.

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.