org.apache.aries.blueprint.reflect
Class ValueMetadataImpl

java.lang.Object
  extended by org.apache.aries.blueprint.reflect.ValueMetadataImpl
All Implemented Interfaces:
MutableValueMetadata, Metadata, NonNullMetadata, ValueMetadata

public class ValueMetadataImpl
extends java.lang.Object
implements MutableValueMetadata

Implementation of ValueMetadata

Version:
$Rev: 896324 $, $Date: 2010-01-06 06:05:04 +0000 (Wed, 06 Jan 2010) $

Constructor Summary
ValueMetadataImpl()
           
ValueMetadataImpl(java.lang.String stringValue)
           
ValueMetadataImpl(java.lang.String stringValue, java.lang.String type)
           
ValueMetadataImpl(ValueMetadata source)
           
 
Method Summary
 java.lang.String getStringValue()
          Return the unconverted string representation of the value.
 java.lang.String getType()
          Return the name of the type to which the value should be converted.
 void setStringValue(java.lang.String stringValue)
           
 void setType(java.lang.String typeName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueMetadataImpl

public ValueMetadataImpl()

ValueMetadataImpl

public ValueMetadataImpl(java.lang.String stringValue)

ValueMetadataImpl

public ValueMetadataImpl(java.lang.String stringValue,
                         java.lang.String type)

ValueMetadataImpl

public ValueMetadataImpl(ValueMetadata source)
Method Detail

getStringValue

public java.lang.String getStringValue()
Description copied from interface: ValueMetadata
Return the unconverted string representation of the value. This is specified by the value attribute or text part of the value element.

Specified by:
getStringValue in interface ValueMetadata
Returns:
The unconverted string representation of the value.

setStringValue

public void setStringValue(java.lang.String stringValue)
Specified by:
setStringValue in interface MutableValueMetadata

getType

public java.lang.String getType()
Description copied from interface: ValueMetadata
Return the name of the type to which the value should be converted. This is specified by the type attribute.

Specified by:
getType in interface ValueMetadata
Returns:
The name of the type to which the value should be converted or null if no type is specified.

setType

public void setType(java.lang.String typeName)
Specified by:
setType in interface MutableValueMetadata

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.