org.opennms.web.admin.views.parsers
Class Category

java.lang.Object
  extended by org.opennms.web.admin.views.parsers.Category
All Implemented Interfaces:
Cloneable

public class Category
extends Object
implements Cloneable


Constructor Summary
Category()
           
Category(String aDataString)
          Deprecated.  
Category(String aLabel, String aRule, String aNormal, String aWarning)
           
 
Method Summary
 void addService(String name)
          Adds a service to this category
 Category clone()
           
 String getComments()
           
 String getLabel()
           
 String getNormal()
           
 String getRule()
           
 List<String> getServices()
          Returns the list of services in this category
 String getUserManagerFormat()
          Deprecated.  
 String getWarning()
           
 void setComments(String comment)
           
 void setLabel(String aValue)
           
 void setNormal(String aValue)
           
 void setRule(String aValue)
           
 void setServices(List<String> services)
          Sets the list of services
 void setWarning(String aValue)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Category

public Category()

Category

public Category(String aLabel,
                String aRule,
                String aNormal,
                String aWarning)

Category

public Category(String aDataString)
Deprecated. 

This constructor creates a Category by parsing a string in the UserManager format

Parameters:
aDataString - a string in the format "label$normal$warning$rule"
Method Detail

clone

public Category clone()
Overrides:
clone in class Object

setLabel

public void setLabel(String aValue)

getLabel

public String getLabel()

setRule

public void setRule(String aValue)

getRule

public String getRule()

setNormal

public void setNormal(String aValue)

getNormal

public String getNormal()

setWarning

public void setWarning(String aValue)

getWarning

public String getWarning()

addService

public void addService(String name)
Adds a service to this category

Parameters:
name - the service name.

getServices

public List<String> getServices()
Returns the list of services in this category

Returns:
the list of services.

setServices

public void setServices(List<String> services)
Sets the list of services

Parameters:
services - a list of service names

setComments

public void setComments(String comment)

getComments

public String getComments()

getUserManagerFormat

public String getUserManagerFormat()
Deprecated. 



Copyright © 2009. All Rights Reserved.