org.jboss.metatype.api.values
Class GenericValueSupport

java.lang.Object
  extended by org.jboss.metatype.api.values.AbstractMetaValue
      extended by org.jboss.metatype.api.values.GenericValueSupport
All Implemented Interfaces:
Serializable, Cloneable, GenericValue, MetaValue

public class GenericValueSupport
extends AbstractMetaValue
implements GenericValue

GenericValue. TODO tests

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
GenericValueSupport(GenericMetaType metaType, Serializable value)
          Create a new GenericValueSupport.
 
Method Summary
 boolean equals(Object obj)
           
 GenericMetaType getMetaType()
          Get the metatype for this value
 Serializable getValue()
          Get the value.
 int hashCode()
           
 void setValue(Serializable value)
          Set the value.
 String toString()
           
 
Methods inherited from class org.jboss.metatype.api.values.AbstractMetaValue
clone
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metatype.api.values.MetaValue
clone
 

Constructor Detail

GenericValueSupport

public GenericValueSupport(GenericMetaType metaType,
                           Serializable value)
Create a new GenericValueSupport.

Parameters:
metaType - the generic meta type
value - the value
Throws:
IllegalArgumentException - for a null generic MetaType
Method Detail

getMetaType

public GenericMetaType getMetaType()
Description copied from interface: MetaValue
Get the metatype for this value

Specified by:
getMetaType in interface GenericValue
Specified by:
getMetaType in interface MetaValue
Returns:
the metatype

getValue

public Serializable getValue()
Get the value.

Specified by:
getValue in interface GenericValue
Returns:
the value.

setValue

public void setValue(Serializable value)
Set the value.

Parameters:
value - the value.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.