Class AbstractRef
- java.lang.Object
-
- org.opennms.features.topology.api.topo.AbstractRef
-
- Direct Known Subclasses:
AbstractEdgeRef,DefaultVertexRef
public class AbstractRef extends java.lang.Object implements Ref
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringm_id
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRef(java.lang.String namespace, java.lang.String id, java.lang.String label)protectedAbstractRef(Ref ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Ref o)booleanequals(java.lang.Object obj)java.lang.StringgetId()An identifier unique to the provider that 'owns' this referencejava.lang.StringgetLabel()A human-readable label for the reference.java.lang.StringgetNamespace()A string used to identify the provider this belongs to.inthashCode()voidsetLabel(java.lang.String label)
-
-
-
Constructor Detail
-
AbstractRef
protected AbstractRef(java.lang.String namespace, java.lang.String id, java.lang.String label)
-
AbstractRef
protected AbstractRef(Ref ref)
-
-
Method Detail
-
getId
public final java.lang.String getId()
Description copied from interface:RefAn identifier unique to the provider that 'owns' this reference
-
getNamespace
public final java.lang.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 java.lang.String getLabel()
Description copied from interface:RefA human-readable label for the reference.
-
setLabel
public final void setLabel(java.lang.String label)
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-