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

Category class.

Since:
1.8.1
Version:
$Id: $
Author:
ranger

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

Constructor Detail

Category

public Category()

Constructor for Category.


Category

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

Constructor for Category.

Parameters:
aLabel - a String object.
aRule - a String object.
aNormal - a String object.
aWarning - a String object.

Category

public Category(String aDataString)
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()

clone

Overrides:
clone in class Object
Returns:
a Category object.

setLabel

public void setLabel(String aValue)

setLabel

Parameters:
aValue - a String object.

getLabel

public String getLabel()

getLabel

Returns:
a String object.

setRule

public void setRule(String aValue)

setRule

Parameters:
aValue - a String object.

getRule

public String getRule()

getRule

Returns:
a String object.

setNormal

public void setNormal(String aValue)

setNormal

Parameters:
aValue - a String object.

getNormal

public String getNormal()

getNormal

Returns:
a String object.

setWarning

public void setWarning(String aValue)

setWarning

Parameters:
aValue - a String object.

getWarning

public String getWarning()

getWarning

Returns:
a String object.

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)

setComments

Parameters:
comment - a String object.

getComments

public String getComments()

getComments

Returns:
a String object.

getUserManagerFormat

public String getUserManagerFormat()

getUserManagerFormat

Returns:
a String object.


Copyright © 2011. All Rights Reserved.