Package org.opennms.netmgt.model
Class StringPropertyAttribute
- java.lang.Object
-
- org.opennms.netmgt.model.StringPropertyAttribute
-
- All Implemented Interfaces:
OnmsAttribute
public class StringPropertyAttribute extends java.lang.Object implements OnmsAttribute
StringPropertyAttribute class.
- Version:
- $Id: $
- Author:
- DJ Gregor
-
-
Constructor Summary
Constructors Constructor Description StringPropertyAttribute(java.lang.String name, java.lang.String value)
Constructor for StringPropertyAttribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getName()
Get the name for this attribute.OnmsResource
getResource()
getResourcejava.lang.String
getValue()
Get the value for this attribute.int
hashCode()
void
setResource(OnmsResource resource)
setResource
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name for this attribute. This is the property name from the properties file.- Specified by:
getName
in interfaceOnmsAttribute
- Returns:
- a
String
object. - See Also:
OnmsAttribute.getName()
-
getValue
public java.lang.String getValue()
Get the value for this attribute. This is the property value from the properties file.- Returns:
- a
String
object.
-
getResource
public OnmsResource getResource()
getResource
- Specified by:
getResource
in interfaceOnmsAttribute
- Returns:
- a
OnmsResource
object. - See Also:
OnmsAttribute.getResource()
-
setResource
public void setResource(OnmsResource resource)
setResource
- Specified by:
setResource
in interfaceOnmsAttribute
- Parameters:
resource
- aOnmsResource
object.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-