public class RuleCover<T>
extends de.tsl2.nano.bean.def.AttributeCover<T>
AttributeCover, using the RulePool from specification.| Modifier | Constructor and Description |
|---|---|
protected |
RuleCover()
constructor
|
|
RuleCover(String name,
Map<String,String> rules)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkRule(String ruleName) |
Object |
connect(de.tsl2.nano.bean.def.IAttributeDefinition<?> connectionEnd) |
static RuleCover |
cover(Class cls,
String ruleCoverDescriptor)
convenience to create and connect a rulecover to an attribute through a string descriptor.
|
static RuleCover |
cover(Class cls,
String attr,
String child,
String rule)
covers the given child (as member!)
|
static RuleCover |
cover(de.tsl2.nano.bean.def.IAttributeDefinition<?> attr,
String child,
String rule) |
Object |
eval(String propertyPath) |
cover, cover, cover, disconnect, getContext, getName, hasRule, invoke, removeCover, removeCover, resetTypeCache, setContext, toStringcanDelegate, clone, createProxy, getDelegate, getInterfaces, getMethodArgsId, getProperties, initDeserialization, invokeDelegate, setInterfaces, setPropertypublic static RuleCover cover(Class cls, String ruleCoverDescriptor)
syntax:: --> Example: value:presentable.layoutconstraints-->%presValueColor
ruleCoverDescriptor - RuleCover instancepublic static RuleCover cover(Class cls, String attr, String child, String rule)
cls - class holding the attributeattr - class attributechild - child (member!) of attributerule - rule to cover the attribute childRuleCover instancepublic static RuleCover cover(de.tsl2.nano.bean.def.IAttributeDefinition<?> attr, String child, String rule)
public Object connect(de.tsl2.nano.bean.def.IAttributeDefinition<?> connectionEnd)
connect in interface de.tsl2.nano.bean.IConnector<de.tsl2.nano.bean.def.IAttributeDefinition<?>>connect in class de.tsl2.nano.bean.def.AttributeCover<T>protected boolean checkRule(String ruleName)
checkRule in class de.tsl2.nano.bean.def.AttributeCover<T>Copyright © 2012–2020. All rights reserved.