org.opennms.netmgt.model
Class StringPropertyAttribute

java.lang.Object
  extended by org.opennms.netmgt.model.StringPropertyAttribute
All Implemented Interfaces:
OnmsAttribute

public class StringPropertyAttribute
extends Object
implements OnmsAttribute

Author:
DJ Gregor

Constructor Summary
StringPropertyAttribute(String name, String value)
           
 
Method Summary
 String getName()
          Get the name for this attribute.
 OnmsResource getResource()
           
 String getValue()
          Get the value for this attribute.
 void setResource(OnmsResource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPropertyAttribute

public StringPropertyAttribute(String name,
                               String value)
Parameters:
name - the name
value - the value
Method Detail

getName

public String getName()
Get the name for this attribute. This is the property name from the properties file.

Specified by:
getName in interface OnmsAttribute
See Also:
OnmsAttribute.getName()

getValue

public String getValue()
Get the value for this attribute. This is the property value from the properties file.


getResource

public OnmsResource getResource()
Specified by:
getResource in interface OnmsAttribute
See Also:
OnmsAttribute.getResource()

setResource

public void setResource(OnmsResource resource)
Specified by:
setResource in interface OnmsAttribute
See Also:
OnmsAttribute.setResource(org.opennms.netmgt.model.OnmsResource)


Copyright © 2009. All Rights Reserved.