Brooklyn

brooklyn.event.basic
[Java] Class AbstractStructuredConfigKey

java.lang.Object
  brooklyn.event.basic.BasicConfigKey
      brooklyn.event.basic.AbstractStructuredConfigKey
All Implemented Interfaces:
StructuredConfigKey

public abstract class AbstractStructuredConfigKey
extends BasicConfigKey

Field Summary
java.lang.Class subType

 
Constructor Summary
AbstractStructuredConfigKey(java.lang.Class type, java.lang.Class subType, java.lang.String name, java.lang.String description, java.lang.Object defaultValue)

 
Method Summary
boolean acceptsKeyMatch(java.lang.Object contender)

boolean acceptsSubkey(java.lang.Object contender)

boolean acceptsSubkeyStronglyTyped(java.lang.Object contender)

java.lang.String extractSubKeyName(java.lang.Object o)

protected RawT extractValue(java.util.Map vals, ExecutionContext exec, boolean coerce, boolean unmodifiable)

java.lang.Object extractValue(java.util.Map vals, ExecutionContext exec)

protected RawT extractValueMatchingThisKey(java.lang.Object potentialBase, ExecutionContext exec, boolean coerce)

returns value against *this* key, if it is of an acceptable type (ignoring subkeys which are added on top)

protected static java.lang.String getKeyName(java.lang.Object contender)

boolean isSet(java.util.Map vals)

protected RawT merge(RawT base, java.util.Map subkeys, boolean unmodifiable)

RawT rawValue(java.util.Map vals)

returns the entries in the map against this config key and any sub-config-keys, without resolving (like extractValue(Map, ExecutionContext) but without resolving/coercing; useful because values in this "map" are actually stored against SubElementConfigKeys

protected ConfigKey subKey(java.lang.String subName)

protected ConfigKey subKey(java.lang.String subName, java.lang.String description)

 
Methods inherited from class BasicConfigKey
BasicConfigKey, BasicConfigKey, BasicConfigKey, BasicConfigKey, BasicConfigKey, BasicConfigKey, BasicConfigKey, BasicConfigKey, builder, builder, equals, extractValue, getDefaultValue, getDescription, getName, getNameParts, getType, getTypeName, getTypeToken, hasDefaultValue, hashCode, isReconfigurable, isSet, resolveValue, toString
 

Field Detail

subType

public final java.lang.Class subType


 
Constructor Detail

AbstractStructuredConfigKey

public AbstractStructuredConfigKey(java.lang.Class type, java.lang.Class subType, java.lang.String name, java.lang.String description, java.lang.Object defaultValue)


 
Method Detail

acceptsKeyMatch

public boolean acceptsKeyMatch(java.lang.Object contender)


acceptsSubkey

public boolean acceptsSubkey(java.lang.Object contender)


acceptsSubkeyStronglyTyped

@java.lang.Overridepublic boolean acceptsSubkeyStronglyTyped(Object contender) {
public boolean acceptsSubkeyStronglyTyped(java.lang.Object contender)


extractSubKeyName

public java.lang.String extractSubKeyName(java.lang.Object o)


extractValue

protected RawT extractValue(java.util.Map vals, ExecutionContext exec, boolean coerce, boolean unmodifiable)


extractValue

@java.lang.SuppressWarnings@Override
@java.lang.Overridepublic T extractValue(Map vals, ExecutionContext exec) {
public java.lang.Object extractValue(java.util.Map vals, ExecutionContext exec)


extractValueMatchingThisKey

protected RawT extractValueMatchingThisKey(java.lang.Object potentialBase, ExecutionContext exec, boolean coerce)
returns value against *this* key, if it is of an acceptable type (ignoring subkeys which are added on top)


getKeyName

protected static java.lang.String getKeyName(java.lang.Object contender)


isSet

@java.lang.Overridepublic boolean isSet(Map vals) {
public boolean isSet(java.util.Map vals)


merge

protected RawT merge(RawT base, java.util.Map subkeys, boolean unmodifiable)


rawValue

public RawT rawValue(java.util.Map vals)
returns the entries in the map against this config key and any sub-config-keys, without resolving (like extractValue(Map, ExecutionContext) but without resolving/coercing; useful because values in this "map" are actually stored against SubElementConfigKeys


subKey

protected ConfigKey subKey(java.lang.String subName)


subKey

protected ConfigKey subKey(java.lang.String subName, java.lang.String description)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.