Examples of require()


Examples of codetroopers.wicket.web.parsley.validator.ParsleyValidationBehavior.require()

    public void modify(final FormComponent<?> component, final ComponentTag tag, final NotNull annotation) {
        ValidatorBag bag = new ValidatorBag(getLabelString(component));
        final ParsleyValidationBehavior validationBehavior =
                new ParsleyValidationBehavior();
        validationBehavior.error("required", getLocalizedMessage(component, annotation.message(), bag));
        validationBehavior.require(true);
        validationBehavior.onComponentTag(component, tag);
    }

}
View Full Code Here

Examples of com.google.gwt.uibinder.rebind.FieldManager.require()

    if (!uiWriter.isWidgetElement(elem)) {
      return null;
    }

    FieldManager fieldManager = uiWriter.getFieldManager();
    FieldWriter fieldWriter = fieldManager.require(fieldName);

    // Allocate a local variable to hold the dom id for this widget. Note
    // that idHolder is a local variable reference, not a string id. We
    // have to generate the ids at runtime, not compile time, or else
    // we'll reuse ids for any template rendered more than once.
View Full Code Here

Examples of com.google.sitebricks.Respond.require()

  @Test(dataProvider = REQUIRE_TAGS)
  public final void requireWidgetsRenderToHeadTag(final String requireString)
      throws ExpressionCompileException {
    final Respond respond = RespondersForTesting.newRespond();

    respond.require(requireString);
    respond.require(requireString);

    WidgetChain chain = new ProceedingWidgetChain();
    final MvelEvaluatorCompiler compiler = new MvelEvaluatorCompiler(Object.class);
View Full Code Here

Examples of edu.brown.utils.ArgumentsParser.require()

    public static void loadTraceFile()
    {
        ArgumentsParser args = BenchmarkEnv.getExternalArgs();
        try
        {
            args.require(ArgumentsParser.PARAM_CATALOG, ArgumentsParser.PARAM_MARKOV);
            Map<Procedure, MarkovGraph> tmp = null;
//            MarkovUtil.load(args.catalog_db,;
//                                                              args.getParam(ArgumentsParser.PARAM_MARKOV),
//                                                              CatalogUtil.getAllPartitionIds(args.catalog_db)).get(0);
View Full Code Here

Examples of io.apigee.trireme.core.internal.ScriptRunner.require()

    @Override
    public Scriptable registerExports(Context cx, Scriptable scope, NodeRuntime runner)
        throws InvocationTargetException, IllegalAccessException, InstantiationException
    {
        ScriptRunner internalRunner = (ScriptRunner)runner;
        internalRunner.require("stream", cx);

        ScriptableObject.defineClass(scope, ProcessImpl.class, false, true);
        ScriptableObject.defineClass(scope, ProcessModuleImpl.class);

        ProcessModuleImpl exports = (ProcessModuleImpl)cx.newObject(scope, ProcessModuleImpl.CLASS_NAME);
View Full Code Here

Examples of javax.xml.stream.XMLStreamReader.require()

    public void testMinimal() throws XMLStreamException, ConfigurationLoadException {
        String xml = "<interface.wsdl xmlns='http://www.osoa.org/xmlns/sca/0.9'></interface.wsdl>";
        XMLStreamReader reader = getReader(xml);
        WSDLServiceContract sc = (WSDLServiceContract) registry.load(reader, loaderContext);
        reader.require(XMLStreamConstants.END_ELEMENT, INTERFACE_WSDL.getNamespaceURI(), INTERFACE_WSDL.getLocalPart());
        assertEquals(XMLStreamConstants.END_DOCUMENT, reader.next());
        assertNotNull(sc);
    }

    public void testInterface() throws Exception {
View Full Code Here

Examples of javax.xml.stream.XMLStreamReader.require()

    public void testInterface() throws Exception {
        wsdlRegistry.loadDefinition("http://www.example.org", getClass().getResource("example.wsdl"), resourceLoader);
        String xml = "<interface.wsdl xmlns='http://www.osoa.org/xmlns/sca/0.9' interface='http://www.example.org#HelloWorld'></interface.wsdl>";
        XMLStreamReader reader = getReader(xml);
        WSDLServiceContract sc = (WSDLServiceContract) registry.load(reader, loaderContext);
        reader.require(XMLStreamConstants.END_ELEMENT, INTERFACE_WSDL.getNamespaceURI(), INTERFACE_WSDL.getLocalPart());
        assertEquals(XMLStreamConstants.END_DOCUMENT, reader.next());
        assertNotNull(sc);
    }

    public void testInterfaceWithLocation() throws Exception {
View Full Code Here

Examples of javax.xml.stream.XMLStreamReader.require()

                "wsdli:wsdlLocation='http://www.example.org " + getClass().getResource("example.wsdl") + "' "+
                "interface='http://www.example.org#HelloWorld'"+
                "></interface.wsdl>";
        XMLStreamReader reader = getReader(xml);
        WSDLServiceContract sc = (WSDLServiceContract) registry.load(reader, loaderContext);
        reader.require(XMLStreamConstants.END_ELEMENT, INTERFACE_WSDL.getNamespaceURI(), INTERFACE_WSDL.getLocalPart());
        assertEquals(XMLStreamConstants.END_DOCUMENT, reader.next());
        assertNotNull(sc);
    }

    protected void setUp() throws Exception {
View Full Code Here

Examples of javax.xml.stream.XMLStreamReader.require()

    public void testMinimal() throws XMLStreamException, ConfigurationLoadException {
        String xml = "<wire xmlns='http://www.osoa.org/xmlns/sca/0.9'><source.uri>foo/fooService</source.uri><target.uri>bar</target.uri></wire>";
        XMLStreamReader reader = getReader(xml);
        Wire wire = (Wire) registry.load(reader, loaderContext);
        reader.require(XMLStreamConstants.END_ELEMENT, AssemblyConstants.WIRE.getNamespaceURI(), AssemblyConstants.WIRE.getLocalPart());
        assertEquals(XMLStreamConstants.END_DOCUMENT, reader.next());
        assertNotNull(wire);
        assertEquals("foo", wire.getSource().getPartName());
        assertEquals("fooService", wire.getSource().getServiceName());
        assertEquals("bar", wire.getTarget().getPartName());
View Full Code Here

Examples of javax.xml.stream.XMLStreamReader.require()

    public void testCompound() throws XMLStreamException, ConfigurationLoadException {
        String xml = "<wire xmlns='http://www.osoa.org/xmlns/sca/0.9'><source.uri>foo/fooService</source.uri><target.uri>bar/bazService</target.uri></wire>";
        XMLStreamReader reader = getReader(xml);
        Wire wire = (Wire) registry.load(reader, loaderContext);
        reader.require(XMLStreamConstants.END_ELEMENT, AssemblyConstants.WIRE.getNamespaceURI(), AssemblyConstants.WIRE.getLocalPart());
        assertEquals(XMLStreamConstants.END_DOCUMENT, reader.next());
        assertNotNull(wire);
        assertEquals("foo", wire.getSource().getPartName());
        assertEquals("fooService", wire.getSource().getServiceName());
        assertEquals("bar", wire.getTarget().getPartName());
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.