Class AbstractRef
- java.lang.Object
-
- org.opennms.features.topology.api.topo.AbstractRef
-
- All Implemented Interfaces:
Comparable<Ref>
,Ref
- Direct Known Subclasses:
AbstractEdgeRef
,DefaultVertexRef
public class AbstractRef extends Object implements Ref
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRef(String namespace, String id, String label)
protected
AbstractRef(Ref ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Ref o)
boolean
equals(Object obj)
String
getId()
An identifier unique to the provider that 'owns' this referenceString
getLabel()
A human-readable label for the reference.String
getNamespace()
A string used to identify the provider this belongs to.int
hashCode()
void
setLabel(String label)
-
-
-
Field Detail
-
m_id
protected String m_id
-
-
Method Detail
-
getId
public final String getId()
Description copied from interface:Ref
An identifier unique to the provider that 'owns' this reference
-
getNamespace
public final String getNamespace()
Description copied from interface:Ref
A string used to identify the provider this belongs to. May only container characters that make for a reasonable java identifier such as letters digits and underscore (no colons, periods, commas etc.)- Specified by:
getNamespace
in interfaceRef
-
getLabel
public final String getLabel()
Description copied from interface:Ref
A human-readable label for the reference.
-
setLabel
public final void setLabel(String label)
-
compareTo
public int compareTo(Ref o)
- Specified by:
compareTo
in interfaceComparable<Ref>
-
-