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 protectedAbstractRef(String namespace, String id, String label)protectedAbstractRef(Ref ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Ref o)booleanequals(Object obj)StringgetId()An identifier unique to the provider that 'owns' this referenceStringgetLabel()A human-readable label for the reference.StringgetNamespace()A string used to identify the provider this belongs to.inthashCode()voidsetLabel(String label)
-
-
-
Field Detail
-
m_id
protected String m_id
-
-
Method Detail
-
getId
public final String getId()
Description copied from interface:RefAn identifier unique to the provider that 'owns' this reference
-
getNamespace
public final String getNamespace()
Description copied from interface:RefA 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:
getNamespacein interfaceRef
-
getLabel
public final String getLabel()
Description copied from interface:RefA human-readable label for the reference.
-
setLabel
public final void setLabel(String label)
-
compareTo
public int compareTo(Ref o)
- Specified by:
compareToin interfaceComparable<Ref>
-
-