Class Element
- java.lang.Object
-
- org.eclipse.emf.ecp.internal.core.util.Element
-
- All Implemented Interfaces:
java.lang.Comparable<ECPElement>
,ECPElement
- Direct Known Subclasses:
DefaultProvider
,DefaultUIProvider
,ElementDescriptor
,PropertiesElement
public abstract class Element extends java.lang.Object implements ECPElement
- Author:
- Eike Stepper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(ECPElement o)
boolean
equals(java.lang.Object obj)
java.lang.String
getName()
This returns the unique name of the object.abstract java.lang.String
getType()
This return the type of the object.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Element
public Element(java.lang.String name)
The constructor of anElement
.- Parameters:
name
- the name of the created element
-
-
Method Detail
-
getName
public final java.lang.String getName()
This returns the unique name of the object.- Specified by:
getName
in interfaceECPElement
- Returns:
- the name
-
compareTo
public int compareTo(ECPElement o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ECPElement>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getType
public abstract java.lang.String getType()
This return the type of the object.- Returns:
- the type
-
-