Examples of title()


Examples of de.mhus.lib.form.annotations.FormElement.title()

      String xml = element.value();
      if (!MString.isEmpty(xml)) {
        if (!xml.startsWith("<"))
          xml = "<panel " + xml + "/>";
      } else {
        xml = "<panel name='"+ getTarget().getClass().getCanonicalName() + "' title='" + MXml.encode(element.title()) + "' nls='" + MXml.encode(element.nls())+ "' " + element.more() + "/>";
      }
      parser.parse(new ByteArrayInputStream(xml.getBytes()), handler);
     
    }
   
View Full Code Here

Examples of eu.planets_project.services.datatypes.DigitalObject.Builder.title()

          }
            log.info("OAIDigitalObjectManagerDCImpl retrieveAll() found idurl: " + url);
          if (url != null) {
                resultList.add(URI.create(url));
            Builder builder = new DigitalObject.Builder(Content.byReference(new URL(url)));
            builder.title(title);
            String filename = "";
                  if(url != null) {
                      filename = URI.create(url).getPath();
                      log.info("OAIDigitalObjectManagerKBImpl list() filename: " + filename);
                      if(filename != null) {
View Full Code Here

Examples of io.airlift.airline.Arguments.title()

                }

                Arguments argumentsAnnotation = field.getAnnotation(Arguments.class);
                if (field.isAnnotationPresent(Arguments.class)) {
                    String title;
                    if (!argumentsAnnotation.title().isEmpty()) {
                        title = argumentsAnnotation.title();
                    }
                    else {
                        title = field.getName();
                    }
View Full Code Here

Examples of io.airlift.airline.Option.title()

                Option optionAnnotation = field.getAnnotation(Option.class);
                if (optionAnnotation != null) {
                    OptionType optionType = optionAnnotation.type();
                    String name;
                    if (!optionAnnotation.title().isEmpty()) {
                        name = optionAnnotation.title();
                    }
                    else {
                        name = field.getName();
                    }
View Full Code Here

Examples of it.unimi.dsi.mg4j.document.Document.title()

       
        // We try to print a title, preferring the supplied title list if present
        if ( titleList != null ) output.println( " " + titleList.get( document ) );
        else if ( documentCollection != null ) {
          d = documentCollection.document( document );
          output.println( " " + d.title().toString().trim() );
          d.close();
        }
        else output.println();
       
        if ( ( displayMode == OutputType.LONG || displayMode == OutputType.SNIPPET ) && dsi.info != null && queryEngine.intervalSelector != null ) {
View Full Code Here

Examples of it.unimi.dsi.mg4j.document.Document.title()

            resultItems.add( resultItem );

            if ( collection != null ) {
              final Document document = collection.document( dsi.document );
              // If both collection and title list are present, we override the collection title (cfr. Query)
              resultItem.title = StringEscapeUtils.escapeHtml( titleList != null ? titleList.get( resultItem.doc ).toString() : document.title().toString() );
              if ( useUri ) {
                if ( document.uri() != null ) resultItem.uri = StringEscapeUtils.escapeHtml( document.uri().toString() );
              }
              else {
                if ( document.uri() != null ) {
View Full Code Here

Examples of it.unimi.dsi.mg4j.document.Document.title()

    boolean outOfMemoryError = false;

    while ( ( document = iterator.nextDocument() ) != null ) {
     
      long overallTerms = 0;
      if ( building ) builder.startDocument( document.title(), document.uri() );
      for ( int i = 0; i < numberOfIndexedFields; i++ ) {
        switch ( factory.fieldType( indexedField[ i ] ) ) {
        case TEXT:
          reader = (Reader)document.content( indexedField[ i ] );
          wordReader = document.wordReader( indexedField[ i ] );
View Full Code Here

Examples of it.unimi.dsi.mg4j.document.Document.title()

     
      for( int field = 0; field < numberOfFields; field++ ) {
        if ( factory.fieldType( field ) != FieldType.TEXT ) fields.add( StringEscapeUtils.escapeHtml( document.content( field ).toString() ) );
        else fields.add( StringEscapeUtils.escapeHtml( IOUtils.toString( (Reader)document.content( field ) ) ).replaceAll( "\n", "<br>\n" ) );
      }
      context.put( "title", document.title() );
      context.put( "fields", fields );
      context.put( "factory", factory );
      return getTemplate( "it/unimi/dsi/mg4j/query/generic.velocity" );
    }
   
View Full Code Here

Examples of it.unimi.dsi.mg4j.document.Document.title()

        s.replace( LINE_TERMINATORS, SPACES );
        s.writeUTF8( uriStream );
        uriStream.write( '\n' );
      }
      if ( titleStream != null ) {
        s.replace( document.title() );
        s.replace( LINE_TERMINATORS, SPACES );
        s.writeUTF8( titleStream );
        titleStream.write( '\n' );
      }
      progressLogger.lightUpdate();
View Full Code Here

Examples of it.unimi.dsi.mg4j.document.Document.title()

    assertEquals( "New content 2\n", IOUtils.toString( (Reader)d.content( textIndex ) ) );

    d = iter.nextDocument();
    assertNotNull(d);
    assertEquals("http://gx0007/", d.uri());
    assertEquals("GX007", d.title());

    assertEquals( "", IOUtils.toString( (Reader)d.content( textIndex ) ) );

    d = iter.nextDocument();
    assertNull(d);
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.