Package org.onosproject.ui.model.topo
Class UiElement
- java.lang.Object
-
- org.onosproject.ui.model.topo.UiElement
-
- Direct Known Subclasses:
UiClusterMember
,UiLink
,UiNode
,UiTopology
public abstract class UiElement extends java.lang.Object
Abstract base class of all elements in the UI topology model.
-
-
Constructor Summary
Constructors Constructor Description UiElement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
destroy()
Removes all external references, and prepares the instance for garbage collection.abstract java.lang.String
idAsString()
Returns a string representation of the element identifier.java.lang.String
name()
Returns a friendly name to be used for display purposes.
-
-
-
Method Detail
-
destroy
protected void destroy()
Removes all external references, and prepares the instance for garbage collection. This default implementation does nothing.
-
idAsString
public abstract java.lang.String idAsString()
Returns a string representation of the element identifier.- Returns:
- the element unique identifier
-
name
public java.lang.String name()
Returns a friendly name to be used for display purposes. This default implementation returns the result of callingidAsString()
.- Returns:
- the friendly name
-
-