org.csapi.jr.se
Class AttributeValue

java.lang.Object
  extended byorg.csapi.jr.se.AttributeValue
All Implemented Interfaces:
java.io.Serializable

public final class AttributeValue
extends java.lang.Object
implements java.io.Serializable

This is a tagged choice of data elements to hold attribute values of different complexity.

See Also:
Serialized Form

Constructor Summary
AttributeValue()
          Creates a new AttributeValue.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 AttributeTagInfo getDiscriminator()
          This method returns the discriminator.
 SimpleAttributeValue getSimpleValue()
          This method returns a SimpleValue
 StructuredAttributeValue getStructuredValue()
          This method returns a StructuredValue
 java.lang.String getXMLValue()
          This method returns a XMLValue
 int hashCode()
          Returns a hashcode value for the object.
 void setSimpleValue(SimpleAttributeValue value)
          This method sets a SimpleValue
 void setStructuredValue(StructuredAttributeValue value)
          This method sets a StructuredValue
 void setUndefined(AttributeTagInfo discriminator)
          This method will receive the discriminator as a parameter and will set _object to null
 void setXMLValue(java.lang.String value)
          This method sets a XMLValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeValue

public AttributeValue()
Creates a new AttributeValue. Tagged choice of data elements always have empty constructors

Method Detail

getDiscriminator

public AttributeTagInfo getDiscriminator()
                                  throws InvalidUnionAccessorException
This method returns the discriminator.

Returns:
a AttributeTagInfo value
Throws:
InvalidUnionAccessorException - if an error occurs

getSimpleValue

public SimpleAttributeValue getSimpleValue()
                                    throws InvalidUnionAccessorException
This method returns a SimpleValue

Returns:
a org.csapi.jr.se.SimpleAttributeValue value
Throws:
InvalidUnionAccessorException - if an error occurs

setSimpleValue

public void setSimpleValue(SimpleAttributeValue value)
This method sets a SimpleValue

Parameters:
value - a org.csapi.jr.se.SimpleAttributeValue value

getStructuredValue

public StructuredAttributeValue getStructuredValue()
                                            throws InvalidUnionAccessorException
This method returns a StructuredValue

Returns:
a org.csapi.jr.se.StructuredAttributeValue value
Throws:
InvalidUnionAccessorException - if an error occurs

setStructuredValue

public void setStructuredValue(StructuredAttributeValue value)
This method sets a StructuredValue

Parameters:
value - a org.csapi.jr.se.StructuredAttributeValue value

getXMLValue

public java.lang.String getXMLValue()
                             throws InvalidUnionAccessorException
This method returns a XMLValue

Returns:
a java.lang.String value
Throws:
InvalidUnionAccessorException - if an error occurs

setXMLValue

public void setXMLValue(java.lang.String value)
This method sets a XMLValue

Parameters:
value - a java.lang.String value

setUndefined

public void setUndefined(AttributeTagInfo discriminator)
This method will receive the discriminator as a parameter and will set _object to null

Parameters:
discriminator - a AttributeTagInfo value

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.


hashCode

public int hashCode()
Returns a hashcode value for the object.