com.sas.hls.common
Class Attribute

java.lang.Object
  extended by com.sas.hls.common.Attribute
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FlowParameter

public class Attribute
extends Object
implements Serializable

A local representation of an attribute defined on an object.

See Also:
Serialized Form

Constructor Summary
Attribute()
          Zero-arg constructor for an Attribute.
Attribute(String name, Serializable value)
          Constructs an Attribute object which associates the given attribute name with the given value.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          Returns a String containing the name of the attribute.
 Serializable getValue()
          Returns the serializable value of this attribute.
 int hashCode()
           
 void setName(String name)
          Set the name of this attribute.
 void setValue(Serializable value)
          Set the value of this attribute.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute()
Zero-arg constructor for an Attribute.


Attribute

public Attribute(String name,
                 Serializable value)
Constructs an Attribute object which associates the given attribute name with the given value.

Parameters:
name - A String containing the name of the attribute to be created. Cannot be null.
value - The value which is assigned to the attribute.
Method Detail

setName

public void setName(String name)
Set the name of this attribute.

Parameters:
name - A String containing the name to give to this attribute.

getName

public String getName()
Returns a String containing the name of the attribute.

Returns:
the name of the attribute.

setValue

public void setValue(Serializable value)
Set the value of this attribute.

Parameters:
value - The serializable value to give to this attribute.

getValue

public Serializable getValue()
Returns the serializable value of this attribute.

Returns:
the value of the attribute.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2016, SAS Institute Inc., Cary, NC, USA