org.jboss.aop.metadata
Class SimpleMetaData.MetaDataValue

java.lang.Object
  extended by org.jboss.aop.metadata.SimpleMetaData.MetaDataValue
All Implemented Interfaces:
Serializable
Enclosing class:
SimpleMetaData

public class SimpleMetaData.MetaDataValue
extends Object
implements Serializable

Contains the value of a metadata attribute.

See Also:
Serialized Form

Field Summary
 PayloadKey type
           
 Object value
           
 
Constructor Summary
SimpleMetaData.MetaDataValue(PayloadKey type, Object value)
          Constructs a metada data entry with the initial value value.
 
Method Summary
 Object get()
          Returns the value of this entry.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public final PayloadKey type

value

public Object value
Constructor Detail

SimpleMetaData.MetaDataValue

public SimpleMetaData.MetaDataValue(PayloadKey type,
                                    Object value)
Constructs a metada data entry with the initial value value.

Parameters:
type - payload type
value - the initial value of this entry
Method Detail

get

public Object get()
           throws IOException,
                  ClassNotFoundException
Returns the value of this entry.

Returns:
the value of this metadata entry.
Throws:
IOException - may be thrown during unmarshalling proccess (only if payload key type is PayloadKey.MARSHALLED)
ClassNotFoundException - may be thrown during unmarshalling proccess (only if payload key type is PayloadKey.MARSHALLED)

toString

public String toString()
Overrides:
toString in class Object


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