Search in sources :

Example 1 with KeyValue

use of org.apache.tapestry5.internal.KeyValue in project tapestry-5 by apache.

the class ComponentWorker method addParameters.

private void addParameters(MutableEmbeddedComponentModel embedded, String[] parameters) {
    for (String parameter : parameters) {
        KeyValue kv = TapestryInternalUtils.parseKeyValue(parameter);
        embedded.addParameter(kv.getKey(), kv.getValue());
    }
}
Also used : KeyValue(org.apache.tapestry5.internal.KeyValue)

Example 2 with KeyValue

use of org.apache.tapestry5.internal.KeyValue in project tapestry-5 by apache.

the class MetaAnnotationExtractor method extractMetaData.

public void extractMetaData(MutableComponentModel model, Meta annotation) {
    for (String meta : annotation.value()) {
        KeyValue kv = TapestryInternalUtils.parseKeyValue(meta);
        model.setMeta(kv.getKey(), kv.getValue());
    }
}
Also used : KeyValue(org.apache.tapestry5.internal.KeyValue)

Aggregations

KeyValue (org.apache.tapestry5.internal.KeyValue)2