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.String
m_id
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRef(java.lang.String namespace, java.lang.String id, java.lang.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(java.lang.Object obj)
java.lang.String
getId()
An identifier unique to the provider that 'owns' this referencejava.lang.String
getLabel()
A human-readable label for the reference.java.lang.String
getNamespace()
A string used to identify the provider this belongs to.int
hashCode()
void
setLabel(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:Ref
An identifier unique to the provider that 'owns' this reference
-
getNamespace
public final java.lang.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 java.lang.String getLabel()
Description copied from interface:Ref
A human-readable label for the reference.
-
setLabel
public final void setLabel(java.lang.String label)
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-