public class LocalAndGlobalData extends ChainedData
DelegatedData.DelegatedIterator
DEBUG_MULTIPLE_ASSIGNMENTS, logger
Constructor and Description |
---|
LocalAndGlobalData(Data local,
Data global)
Creates a Data object that encapsulates both request-scoped local HDF and an application
global-scoped HDF that can be read from the template renderer.
|
LocalAndGlobalData(Data local,
Data global,
boolean allowGlobalDataModification)
Creates a Data object that encapsulates both request-scoped local HDF and an application
global-scoped HDF that can be read from the template renderer.
|
Modifier and Type | Method and Description |
---|---|
Data |
createChild(String path)
Retrieves the HDF object that is the root of the subtree at hdfpath, create the subtree if it
doesn't exist
|
getBooleanValue, getChild, getIntValue, getIntValue, getValue, getValue, newInstance, optimize, toString, write
copy, copy, getAttribute, getAttributeCount, getAttributes, getBooleanValue, getChildCount, getChildren, getDelegate, getEscapeMode, getFullPath, getIntValue, getName, getNextSibling, getParent, getRoot, getSymlink, getValue, hasAttribute, isFirstSibling, isLastSibling, newChildIterator, removeTree, setAttribute, setEscapeMode, setSymlink, setSymlink, setSymlink, setValue, setValue, toString, unwrap
public LocalAndGlobalData(Data local, Data global)
local
- the request-specific HDF data that takes priority.global
- application global HDF data that should be read but not written to from the
template renderer.public LocalAndGlobalData(Data local, Data global, boolean allowGlobalDataModification)
local
- the request-specific HDF data that takes priority.global
- application global HDF data that should be read but not written to from the
template renderer.allowGlobalDataModification
- if true
then enable legacy mode where we do not wrap
the global Data with an Unmodifiable wrapper. Should not be set to true
unless
incompatibilities or performance issues found. Note, that setting to true
could
introduce bugs in templates that acquire local references to the global data structure
and then try to modify them, which is not the intended behavior.public Data createChild(String path)
Data
createChild
in interface Data
createChild
in class ChainedData
Copyright © 2010-2013 Google. All Rights Reserved.