Examples of names()


Examples of com.dotcms.repackage.org.apache.tika.metadata.Metadata.names()

      if(forceMemory){
        // no worry about the limit and less time to process.
        String content = t.parseToString(new FileInputStream(binFile), met);
        metaMap = new HashMap<String, String>();
        for (int i = 0; i < met.names().length; i++) {
          String name = met.names()[i];
          if (UtilMethods.isSet(name) && met.get(name) != null) {
            // we will want to normalize our metadata for searching
            String[] x = translateKey(name);
            for (String y : x)
View Full Code Here

Examples of com.eclipsesource.json.JsonObject.names()

    try
    {
      JsonObject json = Util.getJsonFromFile( file.getPath() );

      boolean containsFields = json.names().contains( "fields" );
      boolean containsSelects = json.names().contains( "selects" );

      if ( containsFields )
      {
        parseTableFromFile( json, name );
View Full Code Here

Examples of com.eclipsesource.json.JsonObject.names()

    try
    {
      JsonObject json = Util.getJsonFromFile( file.getPath() );

      boolean containsFields = json.names().contains( "fields" );
      boolean containsSelects = json.names().contains( "selects" );

      if ( containsFields )
      {
        parseTableFromFile( json, name );
      } else if ( containsSelects )
View Full Code Here

Examples of com.eclipsesource.json.JsonObject.names()

          {
            table.setPrimaryKey( type, info.get( "name" ).asString() );
          }

          ArrayList<Constraint> constraints = new ArrayList<Constraint>();
          if ( info.names().contains( "constraints" ) )
          {
            for ( JsonValue jsonconstaint : info.get( "constraints" ).asArray() )
            {
              JsonObject constraint = (JsonObject) jsonconstaint;
              String definition = constraint.get( "definition" ).asString();
View Full Code Here

Examples of com.eclipsesource.json.JsonObject.names()

                if ( field != null )
                {
                  table.setPrimaryKey( field );
                }
              }
              constraints.add( new Constraint( constraint.names().contains( "name" ) ? constraint.get( "name" ).asString() : null, definition ) );
            }
          }
          table.addField( type, info.get( "name" ).asString(), constraints );
        }
      } catch ( NullPointerException e )
View Full Code Here

Examples of com.eclipsesource.json.JsonObject.names()

              if ( field != null )
              {
                table.setPrimaryKey( field );
              }
            }
            table.addConstraint( info.names().contains( "name" ) ? info.get( "name" ).asString() : null, definition );
          }
        } catch ( NullPointerException e )
        {
          throw new ParserException( "Couldn't parse the constraints in this table." );
        }
View Full Code Here

Examples of com.eclipsesource.json.JsonObject.names()

      try
      {
        for ( JsonValue jsoninfo : jsonview.get( "selects" ).asArray() )
        {
          JsonObject info = (JsonObject) jsoninfo;
          view.addSelect( (info.names().contains( "as" )) ? info.get( "as" ).asString() : null, info.get( "select" ).asString() );
        }
      } catch ( NullPointerException e )
      {
        throw new ParserException( "Couldn't parse the selects in this view." );
      }
View Full Code Here

Examples of com.eclipsesource.json.JsonObject.names()

        if ( jsonview.names().contains( "order" ) )
        {
          for ( JsonValue jsoninfo : jsonview.get( "order" ).asArray() )
          {
            JsonObject info = (JsonObject) jsoninfo;
            view.addOrder( info.get( "by" ).asString(), (info.names().contains( "sort" )) ? info.get( "sort" ).asString() : "ASC" );
          }
        }
      } catch ( NullPointerException e )
      {
        throw new ParserException( "Couldn't parse the ordering in this view." );
View Full Code Here

Examples of com.google.common.jimfs.PathType.ParseResult.names()

  static void assertUriRoundTripsCorrectly(PathType type, String path) {
    ParseResult result = type.parsePath(path);
    URI uri = type.toUri(fileSystemUri, result.root(), result.names());
    ParseResult parsedUri = type.fromUri(uri);
    assertThat(parsedUri.root()).isEqualTo(result.root());
    assertThat(parsedUri.names()).containsExactlyElementsIn(result.names()).inOrder();
  }

  /**
   * Arbitrary path type with $ as the root, / as the separator and \ as an alternate separator.
   */
 
View Full Code Here

Examples of com.sun.grizzly.util.http.MimeHeaders.names()

         * So, as of now the best way to send a response is from here.
         */
        SSLOutputBuffer outputBuffer = (SSLOutputBuffer) response.getOutputBuffer();
        sslErrorBuffer.clear();
        MimeHeaders headers = response.getMimeHeaders();
        Enumeration names = headers.names();
        write(LoadBalancerProxyConstants.HTTP_11, sslErrorBuffer);
        write(response.getStatus() + " ", sslErrorBuffer);
        write(response.getMessage(), sslErrorBuffer);
        write(LoadBalancerProxyConstants.CRLF, sslErrorBuffer);
        while (names.hasMoreElements()) {
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.