|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.model.OnmsResource
public class OnmsResource
| Constructor Summary | |
|---|---|
OnmsResource(String name,
String label,
OnmsResourceType resourceType,
Set<OnmsAttribute> attributes)
|
|
OnmsResource(String name,
String label,
OnmsResourceType resourceType,
Set<OnmsAttribute> attributes,
List<OnmsResource> resources)
|
|
| Method Summary | |
|---|---|
int |
compareTo(OnmsResource o)
|
static String |
createResourceId(String... resources)
|
Set<OnmsAttribute> |
getAttributes()
|
List<OnmsResource> |
getChildResources()
|
OnmsEntity |
getEntity()
|
Map<String,String> |
getExternalValueAttributes()
Get the external value attributes for this resource, if any. |
String |
getId()
|
String |
getLabel()
|
String |
getLink()
|
String |
getName()
|
OnmsResource |
getParent()
|
OnmsResourceType |
getResourceType()
|
Map<String,RrdGraphAttribute> |
getRrdGraphAttributes()
Get the RRD graph attributes for this resource, if any. |
Map<String,String> |
getStringPropertyAttributes()
Get the string property attributes for this resource, if any. |
void |
setEntity(OnmsEntity entity)
|
void |
setLink(String link)
|
void |
setParent(OnmsResource parent)
|
static List<OnmsResource> |
sortIntoResourceList(List<OnmsResource> resources)
Sorts the List of Resources and returns a new List of the generic type Resource. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OnmsResource(String name,
String label,
OnmsResourceType resourceType,
Set<OnmsAttribute> attributes)
public OnmsResource(String name,
String label,
OnmsResourceType resourceType,
Set<OnmsAttribute> attributes,
List<OnmsResource> resources)
| Method Detail |
|---|
public String getName()
public String getLabel()
public OnmsResourceType getResourceType()
public Set<OnmsAttribute> getAttributes()
public List<OnmsResource> getChildResources()
public int compareTo(OnmsResource o)
compareTo in interface Comparable<OnmsResource>public static List<OnmsResource> sortIntoResourceList(List<OnmsResource> resources)
resources - list of Resource objects. This will be
sorted using Collections.sort, and note that this will modify
the provided list.
public void setParent(OnmsResource parent)
public OnmsResource getParent()
public String getId()
public String getLink()
public void setLink(String link)
public static String createResourceId(String... resources)
public Map<String,RrdGraphAttribute> getRrdGraphAttributes()
public Map<String,String> getStringPropertyAttributes()
public Map<String,String> getExternalValueAttributes()
public String toString()
toString in class Objectpublic OnmsEntity getEntity()
public void setEntity(OnmsEntity entity)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||