Package org.opennms.netmgt.model
Class StringPropertyAttribute
- java.lang.Object
-
- org.opennms.netmgt.model.StringPropertyAttribute
-
- All Implemented Interfaces:
OnmsAttribute
public class StringPropertyAttribute extends Object implements OnmsAttribute
StringPropertyAttribute class.
- Version:
- $Id: $
- Author:
- DJ Gregor
-
-
Constructor Summary
Constructors Constructor Description StringPropertyAttribute(String name, String value)Constructor for StringPropertyAttribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetName()Get the name for this attribute.OnmsResourcegetResource()getResourceStringgetValue()Get the value for this attribute.inthashCode()voidsetResource(OnmsResource resource)setResource
-
-
-
Method Detail
-
getName
public String getName()
Get the name for this attribute. This is the property name from the properties file.- Specified by:
getNamein interfaceOnmsAttribute- Returns:
- a
Stringobject. - See Also:
OnmsAttribute.getName()
-
getValue
public String getValue()
Get the value for this attribute. This is the property value from the properties file.- Returns:
- a
Stringobject.
-
getResource
public OnmsResource getResource()
getResource
- Specified by:
getResourcein interfaceOnmsAttribute- Returns:
- a
OnmsResourceobject. - See Also:
OnmsAttribute.getResource()
-
setResource
public void setResource(OnmsResource resource)
setResource
- Specified by:
setResourcein interfaceOnmsAttribute- Parameters:
resource- aOnmsResourceobject.
-
-