|
||||||||||
| 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
OnmsResource class.
| Constructor Summary | |
|---|---|
OnmsResource(String name,
String label,
OnmsResourceType resourceType,
Set<OnmsAttribute> attributes)
Constructor for OnmsResource. |
|
OnmsResource(String name,
String label,
OnmsResourceType resourceType,
Set<OnmsAttribute> attributes,
List<OnmsResource> resources)
Constructor for OnmsResource. |
|
| Method Summary | |
|---|---|
int |
compareTo(OnmsResource o)
compareTo |
static String |
createResourceId(String... resources)
createResourceId |
Set<OnmsAttribute> |
getAttributes()
getAttributes |
List<OnmsResource> |
getChildResources()
getChildResources |
OnmsEntity |
getEntity()
getEntity |
Map<String,String> |
getExternalValueAttributes()
Get the external value attributes for this resource, if any. |
String |
getId()
getId |
String |
getLabel()
getLabel |
String |
getLink()
getLink |
String |
getName()
getName |
OnmsResource |
getParent()
getParent |
OnmsResourceType |
getResourceType()
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)
setEntity |
void |
setLink(String link)
setLink |
void |
setParent(OnmsResource parent)
setParent |
static List<OnmsResource> |
sortIntoResourceList(List<OnmsResource> resources)
Sorts the List of Resources and returns a new List of the generic type Resource. |
String |
toString()
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)
Constructor for OnmsResource.
name - a String object.label - a String object.resourceType - a OnmsResourceType object.attributes - a Set object.
public OnmsResource(String name,
String label,
OnmsResourceType resourceType,
Set<OnmsAttribute> attributes,
List<OnmsResource> resources)
Constructor for OnmsResource.
name - a String object.label - a String object.resourceType - a OnmsResourceType object.attributes - a Set object.resources - a List object.| Method Detail |
|---|
public String getName()
getName
String object.public String getLabel()
getLabel
String object.public OnmsResourceType getResourceType()
getResourceType
OnmsResourceType object.public Set<OnmsAttribute> getAttributes()
getAttributes
Set object.public List<OnmsResource> getChildResources()
getChildResources
List object.public int compareTo(OnmsResource o)
compareTo
compareTo in interface Comparable<OnmsResource>o - a OnmsResource object.
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)
setParent
parent - a OnmsResource object.public OnmsResource getParent()
getParent
OnmsResource object.public String getId()
getId
String object.public String getLink()
getLink
String object.public void setLink(String link)
setLink
link - a String object.public static String createResourceId(String... resources)
createResourceId
resources - a String object.
String object.public Map<String,RrdGraphAttribute> getRrdGraphAttributes()
Map object.public Map<String,String> getStringPropertyAttributes()
Map object.public Map<String,String> getExternalValueAttributes()
Map object.public String toString()
toString
toString in class ObjectString object.public OnmsEntity getEntity()
getEntity
OnmsEntity object.public void setEntity(OnmsEntity entity)
setEntity
entity - a OnmsEntity object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||