COM.hugin.HAPI
Class Attribute

java.lang.Object
  extended byCOM.hugin.HAPI.Attribute

public class Attribute
extends java.lang.Object

Attributes can be used to associate arbitrary data with a node or a NetworkModel (i.e., a Class or a Domain). Attributes are set using the setAttribute method on the NetworkModel and Node classes. Each data object must be a string and attributes are read-only objects. Thus, in order to change the value of a data object or to add a new data object, the setAttribute method must be used. An attribute associated with a NetworkModel or a Node is removed by setting the value to null using setAttribute.


Method Summary
 java.lang.String getKey()
          Returns the key associated with this Attribute.
 java.lang.String getValue()
          Returns the value associated with this Attribute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getKey

public java.lang.String getKey()
                        throws ExceptionHugin
Returns the key associated with this Attribute.

Returns:
A String.
Throws:
ExceptionHugin

getValue

public java.lang.String getValue()
                          throws ExceptionHugin
Returns the value associated with this Attribute.

Returns:
A String.
Throws:
ExceptionHugin