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 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 voiddestroy()Removes all external references, and prepares the instance for garbage collection.abstract StringidAsString()Returns a string representation of the element identifier.Stringname()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 String idAsString()
Returns a string representation of the element identifier.- Returns:
 - the element unique identifier
 
 
- 
name
public String name()
Returns a friendly name to be used for display purposes. This default implementation returns the result of callingidAsString().- Returns:
 - the friendly name
 
 
 - 
 
 -