org.chromattic.core.bean
Class SimpleValueInfo<V>

java.lang.Object
  extended by org.chromattic.core.bean.ValueInfo
      extended by org.chromattic.core.bean.SimpleValueInfo<V>

public class SimpleValueInfo<V>
extends ValueInfo

Version:
$Revision$
Author:
Julien Viet

Field Summary
 
Fields inherited from class org.chromattic.core.bean.ValueInfo
typeInfo
 
Method Summary
static SimpleValueInfo<?> create(org.reflext.api.ClassTypeInfo typeInfo, Annotation defaultValue)
          Build a simple value info meta data.
static SimpleValueInfo<String> createPath(org.reflext.api.ClassTypeInfo typeInfo)
           
 List<V> getDefaultValue()
           
 SimpleType<V> getSimpleType()
           
 String toString()
           
 
Methods inherited from class org.chromattic.core.bean.ValueInfo
getTypeInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSimpleType

public SimpleType<V> getSimpleType()

getDefaultValue

public List<V> getDefaultValue()

toString

public String toString()
Overrides:
toString in class Object

createPath

public static SimpleValueInfo<String> createPath(org.reflext.api.ClassTypeInfo typeInfo)

create

public static SimpleValueInfo<?> create(org.reflext.api.ClassTypeInfo typeInfo,
                                        Annotation defaultValue)
                                 throws BuilderException
Build a simple value info meta data.

Parameters:
typeInfo - the type info
defaultValue - the default value
Returns:
the simple value info
Throws:
BuilderException - any exception that may prevent the correct building such as having a default value that does not match the type


Copyright © 2009 eXo Platform SAS. All Rights Reserved.