| Constructor and Description |
|---|
PropExpressionMap() |
PropExpressionMap(PropExpressionMap orig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigProperty(uk.ac.ed.epcc.webapp.AppContext ctx,
PropertyFinder prev,
java.lang.String table,
PropertyTag tag,
java.lang.String def) |
void |
addConfigProperty(uk.ac.ed.epcc.webapp.AppContext ctx,
PropertyRegistry reg,
PropertyFinder prev,
java.lang.String table,
java.lang.String name,
java.lang.String def)
Register a new definition is the config service
|
void |
addFromProperties(PropertyFinder prev,
uk.ac.ed.epcc.webapp.AppContext ctx,
java.lang.String table) |
void |
addFromProperties(PropertyRegistry reg,
PropertyFinder prev,
uk.ac.ed.epcc.webapp.AppContext ctx,
java.lang.String table)
Populate the PropExpressionMap from configuration properties.
|
void |
clear() |
boolean |
containsKey(PropertyTag t) |
<T> PropExpression<? extends T> |
get(PropertyTag<T> key) |
PropExpressionMap |
getAllFrom(PropExpressionMap m) |
java.util.Set<PropertyTag> |
keySet() |
<T> void |
peer(PropertyTag<T> a,
PropertyTag<T> b)
alias two property tags to each other.
|
<T> void |
put(PropertyTag<T> key,
PropExpression<? extends T> expr) |
<T> void |
remove(PropertyTag<T> key) |
void |
removeConfigProperty(uk.ac.ed.epcc.webapp.AppContext ctx,
java.lang.String table,
PropertyTag tag) |
int |
size() |
public PropExpressionMap()
public PropExpressionMap(PropExpressionMap orig)
public <T> void put(PropertyTag<T> key, PropExpression<? extends T> expr) throws PropertyCastException
PropertyCastExceptionpublic <T> void peer(PropertyTag<T> a, PropertyTag<T> b) throws PropertyCastException
PropertyCastExceptiona - b - public <T> void remove(PropertyTag<T> key)
public <T> PropExpression<? extends T> get(PropertyTag<T> key)
public PropExpressionMap getAllFrom(PropExpressionMap m)
public java.util.Set<PropertyTag> keySet()
public boolean containsKey(PropertyTag t)
public int size()
public void addFromProperties(PropertyRegistry reg, PropertyFinder prev, uk.ac.ed.epcc.webapp.AppContext ctx, java.lang.String table)
reg - PropertyRegistry to add definitions toprev - PropertyFinder to use in parsectx - AppContexttable - table tag to identify property definitionspublic void addFromProperties(PropertyFinder prev, uk.ac.ed.epcc.webapp.AppContext ctx, java.lang.String table)
public void addConfigProperty(uk.ac.ed.epcc.webapp.AppContext ctx,
PropertyRegistry reg,
PropertyFinder prev,
java.lang.String table,
java.lang.String name,
java.lang.String def)
throws ParseException
ParseExceptionctx - AppContextreg - prev - PropertyFinder to use in parsetable - name - String name of new definitiondef - String to parse for prop-expressionpublic void addConfigProperty(uk.ac.ed.epcc.webapp.AppContext ctx,
PropertyFinder prev,
java.lang.String table,
PropertyTag tag,
java.lang.String def)
throws ParseException
ParseExceptionpublic void removeConfigProperty(uk.ac.ed.epcc.webapp.AppContext ctx,
java.lang.String table,
PropertyTag tag)
public void clear()