Examples of type()


Examples of org.eclipse.orion.server.core.resources.annotations.ResourceDescription.type()

          result.put(property.getName(), value);
        }
      }
      final ResourceDescription resourceShapeDescription = resource.getClass().getAnnotation(ResourceDescription.class);
      // TODO: org.eclipse.orion.internal.server.servlets.ProtocolConstants.KEY_TYPE
      result.put("Type", resourceShapeDescription.type()); //$NON-NLS-1$
    } catch (JSONException e) {
      // should never happen
    }
    return result;
  }
View Full Code Here

Examples of org.eclipse.persistence.expressions.Expression.type()

     * Generate the a new EclipseLink TableEntryExpression for this node.
     */
    public Expression generateExpression(GenerationContext context) {
        Expression owningExpression = getLeft().generateExpression(context);
       
        return owningExpression.type();
    }
   
    public void validate(ParseTreeContext context) {
        left.validate(context);
        setType(Class.class);
View Full Code Here

Examples of org.eclipse.persistence.oxm.annotations.XmlVariableNode.type()

        }
     
        if(helper.isAnnotationPresent(javaHasAnnotations, XmlVariableNode.class)){
            XmlVariableNode variableNode = (XmlVariableNode) helper.getAnnotation(javaHasAnnotations, XmlVariableNode.class);
            if(variableNode.type() != XmlVariableNode.DEFAULT.class){
              property.setVariableClassName(variableNode.type().getName());             
                             
              JavaClass componentType = helper.getJavaClass(variableNode.type());
             
              if(helper.isCollectionType(ptype)){
                property.setGenericType(componentType);
View Full Code Here

Examples of org.eclipse.sapphire.Element.type()

                }
            }
        }
        catch( Exception e )
        {
            final String msg = failure.format( element.type().getSimpleName(), property.name(), e.getMessage() );
            throw new RuntimeException( msg, e );
        }
    }
   
    /**
 
View Full Code Here

Examples of org.eclipse.sapphire.java.JavaTypeConstraint.type()

            kind.add( k );
        }
       
        final Set<String> type = new HashSet<String>();
       
        for( String t : javaTypeConstraintAnnotation.type() )
        {
            if( t != null )
            {
                t = t.trim();
               
View Full Code Here

Examples of org.eclipse.sapphire.modeling.ElementPropertyBinding.type()

                T contentBefore;
                T contentAfter = null;
               
                if( resourceAfter != null )
                {
                    final ElementType type = binding.type( resourceAfter );
                    contentAfter = type.instantiate( this, resourceAfter );
                }

                PropertyContentEvent event = null;
               
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequest.type()

    @Override
    public void handleRequest(final RestRequest request, final RestChannel channel, final Client client) {
        String[] nodesIds = Strings.splitStringByCommaToArray(request.param("nodeId"));
        NodesHotThreadsRequest nodesHotThreadsRequest = new NodesHotThreadsRequest(nodesIds);
        nodesHotThreadsRequest.threads(request.paramAsInt("threads", nodesHotThreadsRequest.threads()));
        nodesHotThreadsRequest.type(request.param("type", nodesHotThreadsRequest.type()));
        nodesHotThreadsRequest.interval(TimeValue.parseTimeValue(request.param("interval"), nodesHotThreadsRequest.interval()));
        nodesHotThreadsRequest.snapshots(request.paramAsInt("snapshots", nodesHotThreadsRequest.snapshots()));
        client.admin().cluster().nodesHotThreads(nodesHotThreadsRequest, new RestResponseListener<NodesHotThreadsResponse>(channel) {
            @Override
            public RestResponse buildResponse(NodesHotThreadsResponse response) throws Exception {
View Full Code Here

Examples of org.elasticsearch.action.admin.indices.mapping.delete.DeleteMappingRequest.type()

        controller.registerHandler(DELETE, "/{index}/{type}", this);
    }

    @Override public void handleRequest(final RestRequest request, final RestChannel channel) {
        DeleteMappingRequest deleteMappingRequest = deleteMappingRequest(splitIndices(request.param("index")));
        deleteMappingRequest.type(request.param("type"));
        client.admin().indices().deleteMapping(deleteMappingRequest, new ActionListener<DeleteMappingResponse>() {
            @Override public void onResponse(DeleteMappingResponse response) {
                try {
                    XContentBuilder builder = RestXContentBuilder.restContentBuilder(request);
                    builder.startObject()
View Full Code Here

Examples of org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequest.type()

        controller.registerHandler(POST, "/{index}/{type}/_mapping", this);
    }

    @Override public void handleRequest(final RestRequest request, final RestChannel channel) {
        PutMappingRequest putMappingRequest = putMappingRequest(splitIndices(request.param("index")));
        putMappingRequest.type(request.param("type"));
        putMappingRequest.source(request.contentAsString());
        putMappingRequest.timeout(request.paramAsTime("timeout", timeValueSeconds(10)));
        putMappingRequest.ignoreConflicts(request.paramAsBoolean("ignore_conflicts", putMappingRequest.ignoreConflicts()));
        client.admin().indices().putMapping(putMappingRequest, new ActionListener<PutMappingResponse>() {
            @Override public void onResponse(PutMappingResponse response) {
View Full Code Here

Examples of org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsRequest.type()

                });
            }
        }
        if (updateMapping) {
            PutMappingRequest request = new PutMappingRequest(indices);
            request.type(Constants.DEFAULT_MAPPING_TYPE);
            request.source(analysis.tableParameter().mappings());
            final SettableFuture<?> future = SettableFuture.create();
            results.add(future);
            transportPutMappingAction.execute(request, new ActionListener<PutMappingResponse>() {
                @Override
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.