public abstract class Element extends org.eclipse.core.runtime.PlatformObject implements IElementImplSupport
IElementImplExtension
to minimize the effort required to implement that interface. Clients might
as well implement ("mix in") IElementImplSupport directly if extending
this class is not possible/desirable for some reason.IElementImplExtension.CloseHintNEW_ELEMENTS, NO_BODYCLOSE_HINT, FORCE_OPEN| Constructor and Description |
|---|
Element(IElement parent,
java.lang.String name)
Constructs a handle for an element with the given parent element
and the given name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName_()
Returns the name of this element, or
null
if this element has no name. |
IElement |
getParent_()
Returns the element directly containing this element,
or
null if this element has no parent. |
int |
hashCode() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitbuildStructure_, canEqual_, close_, defaultEquals_, defaultHashCode_, exists_, findBody_, getChildrenFromBody_, getElementManager_, getModel_, isOpenable_, newDoesNotExistException_, open_, openParent_, peekAtBody_, remove_, removing_, toString_, toStringAncestors_, toStringBody_, toStringChildren_, toStringName_, validateExistence_close_, getBody_, getBody_, getChildren_equalsAndSameParentChain_, getChildrenOfType_, getHandleMemento_, getLocationUri_, getResource_, getRoot_, toDisplayString_getModelManager_public Element(IElement parent, java.lang.String name)
parent - the parent of the element,
or null if the element has no parentname - the name of the element,
or null if the element has no namepublic boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
toString in class java.lang.Objectpublic final java.lang.String getName_()
IElementImplnull
if this element has no name. This is a handle-only method.getName_ in interface IElementImplnull if this element has no namepublic final IElement getParent_()
IElementImplnull if this element has no parent.
This is a handle-only method.getParent_ in interface IElementImplnull if this element has
no parentCopyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0