org.databene.commons.accessor
Class FeatureAccessor<C,V>
java.lang.Object
org.databene.commons.accessor.FeatureAccessor<C,V>
- All Implemented Interfaces:
- Accessor<C,V>
public class FeatureAccessor<C,V>
- extends java.lang.Object
- implements Accessor<C,V>
Get values from Maps, Contexts, Composites and JavaBeans.
Created: 12.06.2007 18:36:11
- Author:
- Volker Bergmann
|
Method Summary |
java.lang.String |
getFeatureName()
|
V |
getValue(C target)
|
static java.lang.Object |
getValue(java.lang.Object target,
java.lang.String featureName)
|
static java.lang.Object |
getValue(java.lang.Object target,
java.lang.String featureName,
boolean strict)
|
void |
setFeatureName(java.lang.String featureName)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FeatureAccessor
public FeatureAccessor(java.lang.String featureName)
FeatureAccessor
public FeatureAccessor(java.lang.String featureName,
boolean strict)
getFeatureName
public java.lang.String getFeatureName()
setFeatureName
public void setFeatureName(java.lang.String featureName)
getValue
public V getValue(C target)
- Specified by:
getValue in interface Accessor<C,V>
getValue
public static java.lang.Object getValue(java.lang.Object target,
java.lang.String featureName)
getValue
public static java.lang.Object getValue(java.lang.Object target,
java.lang.String featureName,
boolean strict)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2010. All Rights Reserved.