public abstract class TypedProvider<T> extends HierarchicalConfigProvider<T>
Created by Jeff Gaynor
on 1/15/12 at 12:14 PM
Modifier | Constructor and Description |
---|---|
|
TypedProvider() |
|
TypedProvider(org.apache.commons.configuration.tree.ConfigurationNode config,
String type,
String target) |
protected |
TypedProvider(String type,
String target) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkEvent(CfgEvent cfgEvent)
Checks that the event applies to this component.
|
String |
getTarget() |
String |
getType() |
String |
getTypeAttribute(String key)
Get an attribute for this type.
|
protected String |
getTypeAttribute(String key,
String defaultValue) |
boolean |
getTypeBooleanAttribute(String key) |
org.apache.commons.configuration.tree.ConfigurationNode |
getTypeConfig()
This is the parent node for this configuration.
|
int |
getTypeIntAttribute(String key) |
int |
getTypeIntAttribute(String key,
int defaultValue) |
void |
setTarget(String target) |
void |
setType(String type) |
void |
setTypeConfig(org.apache.commons.configuration.tree.ConfigurationNode typeConfig) |
String |
toString() |
addListener, fireComponentFound, getAttribute, getAttribute, getBooleanAttribute, getConfig, getConfigurationAt, getIntAttribute, getIntAttribute, hasA, isA, removeListener, setConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
componentFound
public TypedProvider(org.apache.commons.configuration.tree.ConfigurationNode config, String type, String target)
public TypedProvider()
public String getTarget()
public void setTarget(String target)
public String getType()
public void setType(String type)
public org.apache.commons.configuration.tree.ConfigurationNode getTypeConfig()
public void setTypeConfig(org.apache.commons.configuration.tree.ConfigurationNode typeConfig)
protected boolean checkEvent(CfgEvent cfgEvent)
HierarchicalConfigProvider
CfgEventListener.componentFound(CfgEvent)
method. If checkEvent fails, do no more processing with the event.checkEvent
in class HierarchicalConfigProvider<T>
public String getTypeAttribute(String key)
key
- public int getTypeIntAttribute(String key, int defaultValue)
public int getTypeIntAttribute(String key)
public boolean getTypeBooleanAttribute(String key)
Copyright © 2019. All Rights Reserved.