static String templateBindingForReservedParameter(IComponent loadComponent, String parameterName, IComponent component) { return _formatter.format("template-binding-for-reserved-parameter", loadComponent .getExtendedId(), parameterName, component.getExtendedId()); }
static String inheritInformalInvalidContainerFormalOnly( IComponent container, IComponent component) { return _formatter.format( "inherit-informal-invalid-container-formal-only", container .getExtendedId(), component.getExtendedId()); }
static String formIdMismatch(IComponent form, int mismatchIndex, String expectedId, String actualId, IComponent component) { return _formatter.format("form-id-mismatch", new Object[] { form.getExtendedId(), new Integer(mismatchIndex + 1), expectedId, actualId, component.getExtendedId() }); }
public String toString() { StringBuffer buffer = new StringBuffer("MessageBinding"); buffer.append('['); buffer.append(_component.getExtendedId()); buffer.append(' '); buffer.append(_description); buffer.append(']'); return buffer.toString(); } }
static String initializationError(IComponent component, String beanName, String propertyName, Throwable cause) { return _formatter.format("initialization-error", new Object[] { propertyName, beanName, component.getExtendedId(), cause }); }
static String missingBeanClass(IComponent component, String beanName, String className, String packageList) { return _formatter.format("missing-bean-class", new Object[] { beanName, component.getExtendedId(), className, packageList }); } }
static String formalParametersOnly(IComponent component, String parameterName) { return _formatter.format("formal-parameters-only", component .getExtendedId(), parameterName); }
public boolean isRewound(IComponent component) { // If not rewinding ... if (!_rewinding) return false; // OK, we're there, is the page is good order? if (component == _targetComponent) return true; // Woops. Mismatch. throw new StaleLinkException(component, Integer.toHexString(_targetActionId), _targetComponent.getExtendedId()); }
static String formTooFewIds(IComponent form, int remainingCount, String nextExpectedId) { return _formatter.format("form-too-few-ids", form.getExtendedId(), new Integer( remainingCount), nextExpectedId); }
static String encodingTypeContention(IComponent form, String establishedEncodingType, String newEncodingType) { return _formatter.format( "encoding-type-contention", form.getExtendedId(), establishedEncodingType, newEncodingType); }
static String formTooFewIds(IComponent form, int remainingCount, String nextExpectedId) { return _formatter.format("form-too-few-ids", form.getExtendedId(), new Integer( remainingCount), nextExpectedId); }
static String keySqueezeError(IComponent component, Object value, Throwable cause) { return _formatter.format("squeeze-primary-key-error", component.getExtendedId(), value, cause); } }
static String componentNotDirect(IComponent component) { return _formatter.format("component-not-direct", component.getExtendedId()); } }
static String inheritInformalInvalidComponentFormalOnly(IComponent component) { return _formatter.format( "inherit-informal-invalid-component-formal-only", component .getExtendedId()); }
static String initializationError(IComponent component, String beanName, String propertyName, Throwable cause) { return _formatter.format("initialization-error", new Object[] { propertyName, beanName, component.getExtendedId(), cause }); }
static String requiredParameterNotBound(String name, IComponent component) { return _formatter.format("required-parameter-not-bound", name, component.getExtendedId()); }
static String unableToInstantiateComponent(IComponent container, Throwable cause) { return _formatter.format("unable-to-instantiate-component", container .getExtendedId(), cause); }
static String invalidTableSource(IComponent component, Object sourceValue) { return _formatter.format("invalid-table-source", component.getExtendedId(), ClassFabUtils .getJavaClassName(sourceValue.getClass())); }
/** @since 3.0 * */ public static ApplicationRuntimeException createNoSuchComponentException(IComponent component, String id, Location location) { return new ApplicationRuntimeException(format("no-such-component", component.getExtendedId(), id), component, location, null); }
public Object getObject() { IAsset asset = component.getAsset(_description); if (asset == null) throw new BindingException("Component " + component.getExtendedId() + " does not contain an asset named ''" + _description + "''.", component, getLocation(), this, null); return new AbsoluteAsset(asset, absoluteURLBuilder); }