info.magnolia.cms.gui.controlx.list
Class DefaultValueProvider

java.lang.Object
  extended by info.magnolia.cms.gui.controlx.list.DefaultValueProvider
All Implemented Interfaces:
ValueProvider
Direct Known Subclasses:
InboxValueProvider

public class DefaultValueProvider
extends Object
implements ValueProvider

Author:
Sameer Charles $Id: DefaultValueProvider.java 41137 2011-01-06 18:19:25Z gjoseph $

Constructor Summary
protected DefaultValueProvider()
          Not allowed to be instanciated outside the scope of this class
 
Method Summary
static ValueProvider getInstance()
          get instance
 String getPath(Content node)
          get path
 String getType(Content node)
          get node type
 Object getValue(String name, Object obj)
          get value - first check for property in this object - then look for the getter for this name - else search in MetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValueProvider

protected DefaultValueProvider()
Not allowed to be instanciated outside the scope of this class

Method Detail

getInstance

public static ValueProvider getInstance()
get instance


getValue

public Object getValue(String name,
                       Object obj)
Description copied from interface: ValueProvider
get value - first check for property in this object - then look for the getter for this name - else search in MetaData

Specified by:
getValue in interface ValueProvider

getType

public String getType(Content node)
get node type

Returns:
node type

getPath

public String getPath(Content node)
get path

Returns:
handle for the ciurrent object


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.