Examples of type()


Examples of org.dbwiki.data.provenance.Provenance.type()

    statement.setString(2, version.name());
   
    // FIXME #provenance: Should really put this code into Provenance or Version classes
    Provenance provenance = version.provenance();
   
    statement.setShort(3, provenance.type());
    if (provenance.user() != null) {
      statement.setInt(4, provenance.user().id());
    } else {
      statement.setInt(4, User.UnknownUserID);
    }
View Full Code Here

Examples of org.dbwiki.web.request.HttpRequest.type()

  protected void respondTo(Exchange<?> exchange) throws java.io.IOException, org.dbwiki.exception.WikiException {
    ServerResponseHandler responseHandler = null;
   
    HttpRequest request = new HttpRequest(new RequestURL(exchange,""), users());

    if (request.type().isIndex()) {
      responseHandler = this.getHomepageResponseHandler(request);
    } else if (request.type().isCreate()) {
      responseHandler = new ServerResponseHandler(request, _wikiTitle + " - Create Database Wiki");
      responseHandler.put(HtmlContentGenerator.ContentContent, new DatabaseWikiFormPrinter("Create Database Wiki"));
    } else if (request.type().isEdit()) {
View Full Code Here

Examples of org.dedeler.template.annotation.Logged.type()

    Logged logged = joinPoint.getTarget().getClass().getAnnotation(Logged.class);

    final long endTime;
    long startTime = 0;

    before(joinPoint, logged.type(), logged.level());
    Object returnValue = null;
    startTime = System.nanoTime();
    returnValue = joinPoint.proceed();
    endTime = System.nanoTime();
    final long duration = (endTime - startTime) / 1000000;
View Full Code Here

Examples of org.directwebremoting.annotations.DataTransferObject.type()

            }
            else if (converter != null)
            {
                if (log.isInfoEnabled())
                {
                    log.info("Dwr classpath scanning detected candidate DTO [" + beanDefinitionClass.getName() + "] processed by converter type [" + converter.type() + "]");
                }
                ConverterConfig converterConfig = new ConverterConfig();
                converterConfig.setType(converter.type());
                setIncludes(beanDefinitionClass, converterConfig);
                String javascript = converter.javascript();
View Full Code Here

Examples of org.drools.compiler.lang.api.FieldDescrBuilder.type()

            // type
            String type = type();
            if (state.failed)
                return;
            if (state.backtracking == 0)
                field.type(type);

            if (input.LA(1) == DRL6Lexer.EQUALS_ASSIGN) {
                // EQUALS_ASSIGN
                match(input,
                        DRL6Lexer.EQUALS_ASSIGN,
View Full Code Here

Examples of org.drools.compiler.lang.api.GlobalDescrBuilder.type()

                return null;

            // type
            String type = type();
            if (state.backtracking == 0)
                global.type(type);
            if (state.failed)
                return null;

            // identifier
            Token id = match(input,
View Full Code Here

Examples of org.drools.lang.api.AttributeDescrBuilder.type()

                if ( hasParen ) {
                    value = input.toString( first,
                                            input.LT( -1 ).getTokenIndex() );
                }
                attribute.value( value );
                attribute.type( AttributeDescr.Type.EXPRESSION );
            }

        } finally {
            if ( attribute != null ) {
                helper.end( AttributeDescrBuilder.class,
View Full Code Here

Examples of org.drools.lang.api.DeclareDescrBuilder.type()

            if ( state.failed ) return null;

            // type may be qualified when adding metadata
            String type = qualifiedIdentifier();
            if ( state.failed ) return null;
            if ( state.backtracking == 0 ) declare.type( type );

            if ( helper.validateIdentifierKey( DroolsSoftKeywords.EXTENDS ) ) {
                match( input,
                       DRLLexer.ID,
                       DroolsSoftKeywords.EXTENDS,
View Full Code Here

Examples of org.drools.lang.api.FieldDescrBuilder.type()

                                  fname );

            // type
            String type = type();
            if ( state.failed ) return;
            if ( state.backtracking == 0 ) field.type( type );

            if ( input.LA( 1 ) == DRLLexer.EQUALS_ASSIGN ) {
                // EQUALS_ASSIGN
                match( input,
                       DRLLexer.EQUALS_ASSIGN,
View Full Code Here

Examples of org.drools.lang.api.GlobalDescrBuilder.type()

                   DroolsEditorType.KEYWORD );
            if ( state.failed ) return null;

            // type
            String type = type();
            if ( state.backtracking == 0 ) global.type( type );
            if ( state.failed ) return null;

            // identifier
            Token id = match( input,
                              DRLLexer.ID,
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.