com.mockrunner.tag
Class DynamicAttribute

java.lang.Object
  extended by com.mockrunner.tag.DynamicAttribute

public class DynamicAttribute
extends java.lang.Object

This class encapsulates the data for a dynamic tag attribute. You can add it to the paramater map of any NestedTag instance. It is not necessary to use an instance of this class to set dynamic attributes. If the attribute is set directly (like normal attributes), the URI will be set to null, i.e. the attribute has the default namespace.


Constructor Summary
DynamicAttribute()
           
DynamicAttribute(java.lang.String uri, java.lang.Object value)
           
 
Method Summary
 java.lang.String getUri()
          Returns the namespace of the attribute.
 java.lang.Object getValue()
          Returns the value of the attribute.
 void setUri(java.lang.String uri)
          Sets the namespace of the attribute.
 void setValue(java.lang.Object value)
          Sets the value of the attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicAttribute

public DynamicAttribute()

DynamicAttribute

public DynamicAttribute(java.lang.String uri,
                        java.lang.Object value)
Method Detail

getUri

public java.lang.String getUri()
Returns the namespace of the attribute.

Returns:
the namespace of the attribute

setUri

public void setUri(java.lang.String uri)
Sets the namespace of the attribute.

Parameters:
uri - the namespace of the attribute

getValue

public java.lang.Object getValue()
Returns the value of the attribute.

Returns:
the value of the attribute

setValue

public void setValue(java.lang.Object value)
Sets the value of the attribute.

Parameters:
value - the value of the attribute