Examples of AvailableValues


Examples of org.apache.tapestry5.ioc.util.AvailableValues

            {
                List<String> names = classAdapter.getPropertyNames();

                throw new UnknownValueException(String.format(
                        "Class %s does not contain a property (or public field) named '%s'.", activeType.getName(),
                        propertyName), new AvailableValues("Properties (and public fields)", names));
            }

            return createExpressionTermInfoForProperty(adapter);
        }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

    {
        JavaScriptStack stack = configuration.get(name);

        if (stack == null)
            throw new UnknownValueException(String.format("No JavaScriptStack with name '%s'.", name),
                    new AvailableValues("Configured JavaScript stacks", configuration));

        return stack;
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

    {
        Module module = serviceIdToModule.get(serviceId);

        if (module == null)
            throw new UnknownValueException(String.format("Service id '%s' is not defined by any module.", serviceId),
                    new AvailableValues("Defined service ids", serviceIdToModule));

        return module;
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

    {
        Module module = serviceIdToModule.get(serviceId);

        if (module == null)
            throw new UnknownValueException(String.format("Service id '%s' is not defined by any module.", serviceId),
                    new AvailableValues("Defined service ids", serviceIdToModule));

        return module;
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

        if (result == null)
        {
            String message = String.format("Input '%s' does not identify a value from enumerated type %s.", input,
                    enumClass.getName());

            throw new UnknownValueException(message, new AvailableValues(enumClass.getName() + " enum constants",
                    stringToEnum));
        }

        return result;
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

            {
                final List<String> names = classAdapter.getPropertyNames();
                final String className = activeClass.getName();
                throw new UnknownValueException(String.format(
                        "Class %s does not contain a property (or public field) named '%s'.", className, propertyName),
                        new AvailableValues("Properties (and public fields)", names));
            }
            return adapter;
        }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

        for (List<CoercionTuple> list : sourceTypeToTuple.values())
        {
            masterList.addAll(list);
        }

        return new AvailableValues("Configured coercions", masterList);
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

                    ids.add(child.getId());
                }
            }

            throw new UnknownValueException(String.format("Component %s does not contain embedded component '%s'.",
                    getCompleteId(), embeddedId), new AvailableValues("Embedded components", ids));
        }

        return embeddedElement;
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

        PropertyModel propertyModel = properties.get(propertyName);

        if (propertyModel == null)
            throw new UnknownValueException(String.format(
                    "Bean editor model for %s does not contain a property named '%s'.", beanType.getName(),
                    propertyName), new AvailableValues("Defined properties", propertyNames));

        return propertyModel;
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.AvailableValues

            ids.add(model.getId());
        }

        throw new UnknownValueException(String.format(
                "Bean editor model for %s does not contain a property with id '%s'.", beanType.getName(), propertyId),
                new AvailableValues("Defined property ids", ids));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.