Package org.opennms.netmgt.model
Class ResourceId
- java.lang.Object
-
- org.opennms.netmgt.model.ResourceId
-
- All Implemented Interfaces:
Comparable<ResourceId>
public class ResourceId extends Object implements Comparable<ResourceId>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ResourceId resourceId)booleanequals(Object o)static ResourceIdfromString(String s)static ResourceIdget(String type, String name)static ResourceIdget(ResourceId parent, String type, String name)StringgetName()ResourceIdgetParent()StringgetType()inthashCode()ResourceIdresolve(String type, String name)StringtoString()
-
-
-
Field Detail
-
parent
public final ResourceId parent
-
type
public final String type
-
name
public final String name
-
-
Method Detail
-
getParent
public ResourceId getParent()
-
resolve
public ResourceId resolve(String type, String name)
-
get
public static ResourceId get(ResourceId parent, String type, String name)
-
get
public static ResourceId get(String type, String name)
-
fromString
public static ResourceId fromString(String s)
-
compareTo
public int compareTo(ResourceId resourceId)
- Specified by:
compareToin interfaceComparable<ResourceId>
-
getType
public String getType()
-
getName
public String getName()
-
-