com.opensymphony.xwork2.util.reflection
Class ReflectionContextState

java.lang.Object
  extended by com.opensymphony.xwork2.util.reflection.ReflectionContextState

public class ReflectionContextState
extends java.lang.Object

Manages variables in the reflection context and returns values to be used by the application.

Author:
Gabe

Field Summary
static java.lang.String CREATE_NULL_OBJECTS
           
static java.lang.String CURRENT_PROPERTY_PATH
           
static java.lang.String DENY_INDEXED_ACCESS_EXECUTION
           
static java.lang.String DENY_METHOD_EXECUTION
           
static java.lang.String FULL_PROPERTY_PATH
           
 
Constructor Summary
ReflectionContextState()
           
 
Method Summary
static void clear(java.util.Map<java.lang.String,java.lang.Object> context)
           
static void clearCurrentPropertyPath(java.util.Map<java.lang.String,java.lang.Object> context)
           
static java.lang.String getCurrentPropertyPath(java.util.Map<java.lang.String,java.lang.Object> context)
          Gets the current property path but not completely.
static java.lang.String getFullPropertyPath(java.util.Map<java.lang.String,java.lang.Object> context)
           
static java.lang.Class getLastBeanClassAccessed(java.util.Map<java.lang.String,java.lang.Object> context)
           
static java.lang.String getLastBeanPropertyAccessed(java.util.Map<java.lang.String,java.lang.Object> context)
           
static java.util.Map<java.lang.Object,java.lang.Object> getSetMap(java.util.Map<java.lang.String,java.lang.Object> context, java.lang.String path)
           
static boolean isCreatingNullObjects(java.util.Map<java.lang.String,java.lang.Object> context)
           
static boolean isDenyMethodExecution(java.util.Map<java.lang.String,java.lang.Object> context)
           
static boolean isGettingByKeyProperty(java.util.Map<java.lang.String,java.lang.Object> context)
           
static boolean isReportingConversionErrors(java.util.Map<java.lang.String,java.lang.Object> context)
           
static void setCreatingNullObjects(java.util.Map<java.lang.String,java.lang.Object> context, boolean creatingNullObjects)
           
static void setDenyMethodExecution(java.util.Map<java.lang.String,java.lang.Object> context, boolean denyMethodExecution)
           
static void setFullPropertyPath(java.util.Map<java.lang.String,java.lang.Object> context, java.lang.String path)
           
static void setGettingByKeyProperty(java.util.Map<java.lang.String,java.lang.Object> context, boolean gettingByKeyProperty)
           
static void setLastBeanClassAccessed(java.util.Map<java.lang.String,java.lang.Object> context, java.lang.Class clazz)
           
static void setLastBeanPropertyAccessed(java.util.Map<java.lang.String,java.lang.Object> context, java.lang.String property)
           
static void setReportingConversionErrors(java.util.Map<java.lang.String,java.lang.Object> context, boolean reportingErrors)
           
static void setSetMap(java.util.Map<java.lang.String,java.lang.Object> context, java.util.Map<java.lang.Object,java.lang.Object> setMap, java.lang.String path)
           
static void updateCurrentPropertyPath(java.util.Map<java.lang.String,java.lang.Object> context, java.lang.Object name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT_PROPERTY_PATH

public static final java.lang.String CURRENT_PROPERTY_PATH
See Also:
Constant Field Values

FULL_PROPERTY_PATH

public static final java.lang.String FULL_PROPERTY_PATH
See Also:
Constant Field Values

CREATE_NULL_OBJECTS

public static final java.lang.String CREATE_NULL_OBJECTS
See Also:
Constant Field Values

DENY_METHOD_EXECUTION

public static final java.lang.String DENY_METHOD_EXECUTION
See Also:
Constant Field Values

DENY_INDEXED_ACCESS_EXECUTION

public static final java.lang.String DENY_INDEXED_ACCESS_EXECUTION
See Also:
Constant Field Values
Constructor Detail

ReflectionContextState

public ReflectionContextState()
Method Detail

isCreatingNullObjects

public static boolean isCreatingNullObjects(java.util.Map<java.lang.String,java.lang.Object> context)

setCreatingNullObjects

public static void setCreatingNullObjects(java.util.Map<java.lang.String,java.lang.Object> context,
                                          boolean creatingNullObjects)

isGettingByKeyProperty

public static boolean isGettingByKeyProperty(java.util.Map<java.lang.String,java.lang.Object> context)

setDenyMethodExecution

public static void setDenyMethodExecution(java.util.Map<java.lang.String,java.lang.Object> context,
                                          boolean denyMethodExecution)

isDenyMethodExecution

public static boolean isDenyMethodExecution(java.util.Map<java.lang.String,java.lang.Object> context)

setGettingByKeyProperty

public static void setGettingByKeyProperty(java.util.Map<java.lang.String,java.lang.Object> context,
                                           boolean gettingByKeyProperty)

isReportingConversionErrors

public static boolean isReportingConversionErrors(java.util.Map<java.lang.String,java.lang.Object> context)

setReportingConversionErrors

public static void setReportingConversionErrors(java.util.Map<java.lang.String,java.lang.Object> context,
                                                boolean reportingErrors)

getLastBeanClassAccessed

public static java.lang.Class getLastBeanClassAccessed(java.util.Map<java.lang.String,java.lang.Object> context)

setLastBeanPropertyAccessed

public static void setLastBeanPropertyAccessed(java.util.Map<java.lang.String,java.lang.Object> context,
                                               java.lang.String property)

getLastBeanPropertyAccessed

public static java.lang.String getLastBeanPropertyAccessed(java.util.Map<java.lang.String,java.lang.Object> context)

setLastBeanClassAccessed

public static void setLastBeanClassAccessed(java.util.Map<java.lang.String,java.lang.Object> context,
                                            java.lang.Class clazz)

getCurrentPropertyPath

public static java.lang.String getCurrentPropertyPath(java.util.Map<java.lang.String,java.lang.Object> context)
Gets the current property path but not completely. It does not use the [ and ] used in some representations of Maps and Lists. The reason for this is that the current property path is only currently used for caching purposes so there is no real reason to have an exact replica.

So if the real path is myProp.myMap['myKey'] this would return myProp.myMap.myKey.

Parameters:
context -

getFullPropertyPath

public static java.lang.String getFullPropertyPath(java.util.Map<java.lang.String,java.lang.Object> context)

setFullPropertyPath

public static void setFullPropertyPath(java.util.Map<java.lang.String,java.lang.Object> context,
                                       java.lang.String path)

updateCurrentPropertyPath

public static void updateCurrentPropertyPath(java.util.Map<java.lang.String,java.lang.Object> context,
                                             java.lang.Object name)

setSetMap

public static void setSetMap(java.util.Map<java.lang.String,java.lang.Object> context,
                             java.util.Map<java.lang.Object,java.lang.Object> setMap,
                             java.lang.String path)

getSetMap

public static java.util.Map<java.lang.Object,java.lang.Object> getSetMap(java.util.Map<java.lang.String,java.lang.Object> context,
                                                                         java.lang.String path)

clearCurrentPropertyPath

public static void clearCurrentPropertyPath(java.util.Map<java.lang.String,java.lang.Object> context)

clear

public static void clear(java.util.Map<java.lang.String,java.lang.Object> context)


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.