org.opennms.netmgt.mock
Class MockCategoryFactory
java.lang.Object
org.opennms.netmgt.mock.MockCategoryFactory
- All Implemented Interfaces:
- CatFactory
- public class MockCategoryFactory
- extends java.lang.Object
- implements CatFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_config
private Catinfo m_config
CATEGORY_CONFIG
private static final java.lang.String CATEGORY_CONFIG
- See Also:
- Constant Field Values
MockCategoryFactory
public MockCategoryFactory()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
java.io.IOException
MockCategoryFactory
public MockCategoryFactory(java.lang.String config)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
java.io.IOException
getConfig
public Catinfo getConfig()
- Return the categories configuration.
- Specified by:
getConfig
in interface CatFactory
- Returns:
- the categories configuration
getCategory
public Category getCategory(java.lang.String name)
- Specified by:
getCategory
in interface CatFactory
getEffectiveRule
public java.lang.String getEffectiveRule(java.lang.String catlabel)
- Specified by:
getEffectiveRule
in interface CatFactory
getNormal
public double getNormal(java.lang.String catlabel)
- Specified by:
getNormal
in interface CatFactory
getWarning
public double getWarning(java.lang.String catlabel)
- Specified by:
getWarning
in interface CatFactory
Generated by ranger on May 19 2007 2335.