Package org.opennms.netmgt.model
Class ResourceId
- java.lang.Object
-
- org.opennms.netmgt.model.ResourceId
-
- All Implemented Interfaces:
java.lang.Comparable<ResourceId>
public class ResourceId extends java.lang.Object implements java.lang.Comparable<ResourceId>
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
name
ResourceId
parent
java.lang.String
type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ResourceId resourceId)
boolean
equals(java.lang.Object o)
static ResourceId
fromString(java.lang.String s)
static ResourceId
get(java.lang.String type, java.lang.String name)
static ResourceId
get(ResourceId parent, java.lang.String type, java.lang.String name)
java.lang.String
getName()
ResourceId
getParent()
java.lang.String
getType()
int
hashCode()
ResourceId
resolve(java.lang.String type, java.lang.String name)
java.lang.String
toString()
-
-
-
Field Detail
-
parent
public final ResourceId parent
-
type
public final java.lang.String type
-
name
public final java.lang.String name
-
-
Method Detail
-
getParent
public ResourceId getParent()
-
resolve
public ResourceId resolve(java.lang.String type, java.lang.String name)
-
get
public static ResourceId get(ResourceId parent, java.lang.String type, java.lang.String name)
-
get
public static ResourceId get(java.lang.String type, java.lang.String name)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
fromString
public static ResourceId fromString(java.lang.String s)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(ResourceId resourceId)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ResourceId>
-
getType
public java.lang.String getType()
-
getName
public java.lang.String getName()
-
-