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.CloseHint
NEW_ELEMENTS, NO_BODY
CLOSE_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, wait
buildStructure_, 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.Object
public final java.lang.String getName_()
IElementImpl
null
if this element has no name. This is a handle-only method.getName_
in interface IElementImpl
null
if this element has no namepublic final IElement getParent_()
IElementImpl
null
if this element has no parent.
This is a handle-only method.getParent_
in interface IElementImpl
null
if this element has
no parentCopyright (c) 2014, 2018 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0