public class JcrPluginConfig extends AbstractValueMap implements IPluginConfig, org.apache.wicket.model.IDetachable
It allows wrapping, so that subclasses can intercept the retrieval of values to e.g. interpolate these.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected JcrNodeModel |
nodeModel |
Constructor and Description |
---|
JcrPluginConfig(JcrNodeModel nodeModel) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
detach() |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object other)
Equivalence of observables; observation will only be started on one instance.
|
Object |
get(Object key) |
boolean |
getBoolean(String key) |
CharSequence |
getCharSequence(String key) |
double |
getDouble(String key) |
double |
getDouble(String key,
double defaultValue) |
org.apache.wicket.util.time.Duration |
getDuration(String key) |
int |
getInt(String key) |
int |
getInt(String key,
int defaultValue) |
String |
getKey(String key) |
long |
getLong(String key) |
long |
getLong(String key,
long defaultValue) |
String |
getName()
The name of the configuration.
|
JcrNodeModel |
getNodeModel() |
protected IObservationContext<? extends IPluginConfig> |
getObservationContext() |
IPluginConfig |
getPluginConfig(Object key)
Retrieve a child config of a particular name.
|
Set<IPluginConfig> |
getPluginConfigSet()
Retrieve a set of child plugin configurations.
|
String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
String[] |
getStringArray(String key) |
org.apache.wicket.util.string.StringValue |
getStringValue(String key) |
org.apache.wicket.util.time.Time |
getTime(String key) |
int |
hashCode() |
boolean |
isImmutable() |
org.apache.wicket.util.value.IValueMap |
makeImmutable() |
Object |
put(String key,
Object value) |
void |
setObservationContext(IObservationContext<? extends IObservable> context)
Before observation is started on the observable, an observation context is injected by
the observer registry.
|
void |
startObservation()
When the first
IObserver of this observable is registered with the observer
registry, observation is started. |
void |
stopObservation()
When the last
IObserver unregisters, observation is stopped. |
protected void |
sync() |
String |
toString()
Generates a
String representation of this object. |
protected Object |
unwrap(Object value) |
protected IHippoMap |
unwrapConfig(IPluginConfig value) |
protected Object |
wrap(Object value) |
protected JcrPluginConfig |
wrapConfig(javax.jcr.Node node) |
add, getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsEnum, getAsEnum, getAsEnum, getAsInteger, getAsInteger, getAsLong, getAsLong, getAsTime, getAsTime, putAll, remove
clone, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsEnum, getAsEnum, getAsEnum, getAsInteger, getAsInteger, getAsLong, getAsLong, getAsTime, getAsTime
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
protected JcrNodeModel nodeModel
public JcrPluginConfig(JcrNodeModel nodeModel)
protected void sync()
public JcrNodeModel getNodeModel()
public String getName()
IPluginConfig
getName
in interface IPluginConfig
public boolean getBoolean(String key) throws org.apache.wicket.util.string.StringValueConversionException
getBoolean
in interface org.apache.wicket.util.value.IValueMap
getBoolean
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getBoolean(String)
public double getDouble(String key) throws org.apache.wicket.util.string.StringValueConversionException
getDouble
in interface org.apache.wicket.util.value.IValueMap
getDouble
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getDouble(String)
public double getDouble(String key, double defaultValue) throws org.apache.wicket.util.string.StringValueConversionException
getDouble
in interface org.apache.wicket.util.value.IValueMap
getDouble
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getDouble(String, double)
public int getInt(String key) throws org.apache.wicket.util.string.StringValueConversionException
getInt
in interface org.apache.wicket.util.value.IValueMap
getInt
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getInt(String)
public int getInt(String key, int defaultValue) throws org.apache.wicket.util.string.StringValueConversionException
getInt
in interface org.apache.wicket.util.value.IValueMap
getInt
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getInt(String, int)
public long getLong(String key) throws org.apache.wicket.util.string.StringValueConversionException
getLong
in interface org.apache.wicket.util.value.IValueMap
getLong
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getLong(String)
public long getLong(String key, long defaultValue) throws org.apache.wicket.util.string.StringValueConversionException
getLong
in interface org.apache.wicket.util.value.IValueMap
getLong
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getLong(String, long)
public String getKey(String key)
getKey
in interface org.apache.wicket.util.value.IValueMap
getKey
in class AbstractValueMap
public String getString(String key)
getString
in interface org.apache.wicket.util.value.IValueMap
getString
in class AbstractValueMap
IValueMap.getString(String)
public String getString(String key, String defaultValue)
getString
in interface org.apache.wicket.util.value.IValueMap
getString
in class AbstractValueMap
IValueMap.getString(String, String)
public String[] getStringArray(String key)
getStringArray
in interface org.apache.wicket.util.value.IValueMap
getStringArray
in class AbstractValueMap
IValueMap.getStringArray(String)
public org.apache.wicket.util.string.StringValue getStringValue(String key)
getStringValue
in interface org.apache.wicket.util.value.IValueMap
getStringValue
in class AbstractValueMap
IValueMap.getStringValue(String)
public IPluginConfig getPluginConfig(Object key)
IPluginConfig
getPluginConfig
in interface IPluginConfig
public Set<IPluginConfig> getPluginConfigSet()
IPluginConfig
getPluginConfigSet
in interface IPluginConfig
public CharSequence getCharSequence(String key)
getCharSequence
in interface org.apache.wicket.util.value.IValueMap
getCharSequence
in class AbstractValueMap
IValueMap.getCharSequence(String)
public org.apache.wicket.util.time.Duration getDuration(String key) throws org.apache.wicket.util.string.StringValueConversionException
getDuration
in interface org.apache.wicket.util.value.IValueMap
getDuration
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getDuration(String)
public org.apache.wicket.util.time.Time getTime(String key) throws org.apache.wicket.util.string.StringValueConversionException
getTime
in interface org.apache.wicket.util.value.IValueMap
getTime
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getTime(String)
public boolean isImmutable()
isImmutable
in interface org.apache.wicket.util.value.IValueMap
isImmutable
in class AbstractValueMap
public org.apache.wicket.util.value.IValueMap makeImmutable()
makeImmutable
in interface org.apache.wicket.util.value.IValueMap
makeImmutable
in class AbstractValueMap
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
public void clear()
public boolean equals(Object other)
IObservable
equals
in interface Map<String,Object>
equals
in interface IObservable
equals
in class AbstractMap<String,Object>
public int hashCode()
hashCode
in interface Map<String,Object>
hashCode
in interface IObservable
hashCode
in class AbstractMap<String,Object>
IObservable.equals(Object)
public String toString()
AbstractValueMap
String
representation of this object.toString
in class AbstractValueMap
String
representation of this ValueMap
consistent with
the tag-attribute style of markup elements. For example:
a="x" b="y" c="z"
.protected JcrPluginConfig wrapConfig(javax.jcr.Node node)
protected IHippoMap unwrapConfig(IPluginConfig value)
public void setObservationContext(IObservationContext<? extends IObservable> context)
IObservable
setObservationContext
in interface IObservable
protected IObservationContext<? extends IPluginConfig> getObservationContext()
public void startObservation()
IObservable
IObserver
of this observable is registered with the observer
registry, observation is started. Implementations must notify observers until observation
is stopped.
An implementation should register listeners with external data sources, when appropriate. It is possible for an observable to register as an observer for another observable.
startObservation
in interface IObservable
public void stopObservation()
IObservable
IObserver
unregisters, observation is stopped. Any listeners
or observers registered by the observable must be unregistered by the implementation.stopObservation
in interface IObservable
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.