/** * Convenience method for programmatically adding a binding. * * @param propertyName Name of property in this component to be bound. * @param binding The binding to apply. */ public void bind(String propertyName, IBinding binding) { getDefinition().setProperty(this, propertyName, binding); }
/** * We override this because the schema constrains children to snippets only, but we want to be * able to dynamically add children of any type. */ @Override protected void validateChild(BaseComponent child) { child.getDefinition().validateParent(getDefinition()); }
@Override protected void validateChild(BaseComponent child) { child.getDefinition().validateParent(getDefinition()); }
TreeMap<String, String> properties = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); Class<?> clazz = root.getClass(); ComponentDefinition def = root.getDefinition(); String cmpname = def.getTag();