Examples of addProperty()


Examples of it.unimi.dsi.util.Properties.addProperty()

    //  );
    //map.defaultReturnValue( 2 );
    //DispatchingStrategy strategy = new StringBasedDispatchingStrategy( MetadataKeys.MIMETYPE, map  );
   
    Properties p = new Properties();
    p.addProperty( MetadataKeys.FIELDNAME.name().toLowerCase(), "text,title" );
    p.addProperty( MetadataKeys.KEY.name().toLowerCase(), PropertyBasedDocumentFactory.MetadataKeys.MIMETYPE.name() );
    p.addProperty( MetadataKeys.RULE.name().toLowerCase(), "application/pdf:it.unimi.dsi.mg4j.document.PdfDocumentFactory,text/html:it.unimi.dsi.mg4j.document.HtmlDocumentFactory,?:it.unimi.dsi.mg4j.document.IdentityDocumentFactory" );
    p.addProperty( MetadataKeys.MAP.name().toLowerCase(), "0:-1,0:1,0:-1" );
    p.addProperty( MetadataKeys.MAP.name().toLowerCase(), "0:-1,0:1,0:-1" );
    p.addProperty( MetadataKeys.MAP.name().toLowerCase(), "0:-1,0:1,0:-1" );

Examples of javax.portlet.MimeResponse.addProperty()

      {
        for (Map.Entry<String, ArrayList<String>> entry : headers.entrySet())
        {
          for (String value : entry.getValue())
          {
            mimeResponse.addProperty(entry.getKey(), value);
          }
        }
        headers = null;
      }
      if (isResourceResponse && hasStatus)

Examples of javax.portlet.PortletResponse.addProperty()

    if (mViewRoot.getClass().getAnnotation(PortletNamingContainer.class) != null)
    {
      try
      {
        PortletResponse pr = (PortletResponse) mExternalContext.getResponse();
        pr.addProperty(Bridge.PORTLET_NAMESPACED_RESPONSE_PROPERTY, "true");
      }
      catch (Exception e)
      {
        // TODO: log message
        ; // do nothing -- just forge ahead

Examples of javax.portlet.ResourceResponse.addProperty()

  @Override
  public void addResponseHeader(String name, String value) {

    if (portletResponse instanceof ResourceResponse) {
      ResourceResponse resourceResponse = (ResourceResponse) portletResponse;
      resourceResponse.addProperty(name, value);
    }
    else {
      logger.warn("Unable to call {0} for portletResponse=[{1}] because it is not a ResourceResponse.",
        "portletResponse.addProperty(String, String)", portletResponse.getClass().getName());
    }

Examples of javax.validation.Configuration.addProperty()

        }
      }
    }

    for (Map.Entry<String, String> entry : this.validationPropertyMap.entrySet()) {
      configuration.addProperty(entry.getKey(), entry.getValue());
    }

    this.validatorFactory = configuration.buildValidatorFactory();
    setTargetValidator(this.validatorFactory.getValidator());
  }

Examples of l2p.gameserver.model.L2Player.addProperty()

    if(lastMailTime != null && lastMailTime + (cha.getLevel() >= 20 ? 60000L : 300000L) > curTime)
    {
      cha.sendMessage("Mail is allowed once per " + (cha.getLevel() >= 20 ? "minute." : "5 minutes."));
      return;
    }
    cha.addProperty(PropertyCollection.MailSent, curTime);
    if(_price > 0)
    {
      String tradeBan = cha.getVar("tradeBan");
      if(tradeBan != null && (tradeBan.equals("-1") || Long.parseLong(tradeBan) >= System.currentTimeMillis()))
      {

Examples of net.minecraft.util.com.google.gson.JsonObject.addProperty()

    }

    public JsonElement a(ServerPingServerData serverpingserverdata, Type type, JsonSerializationContext jsonserializationcontext) {
        JsonObject jsonobject = new JsonObject();

        jsonobject.addProperty("name", serverpingserverdata.a());
        jsonobject.addProperty("protocol", Integer.valueOf(serverpingserverdata.b()));
        return jsonobject;
    }

    public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) {

Examples of net.rim.device.api.io.http.HttpHeaders.addProperty()

    private HttpHeaders copyResponseHeaders( HttpConnection response ) {
        HttpHeaders headers = new HttpHeaders();
        try {
            int index = 0;
            while( response.getHeaderFieldKey( index ) != null ) {
                headers.addProperty( response.getHeaderFieldKey( index ), response.getHeaderField( index ) );
                index++;
            }
        } catch( IOException ioe ) {
        }

Examples of net.sf.cglib.beans.BeanGenerator.addProperty()

    for (int i = 0; i < methods.length; i++) {
      final Method m = methods[i];

      if (ReflectUtils.isSetter(m)) {
        beanGenerator.addProperty(ReflectUtils.getPropertyName(m), ReflectUtils.getPropertyType(m));
      }
    }

    //
    // Enhance the class by placing a GetCachingMethodInterceptor

Examples of net.sf.minuteProject.loader.implicitstructure.node.Line.addProperty()

        String token = st.nextToken();
        Property prop = properties.get(i);
        Property property = new Property();
        property.setName(prop.getName());
        property.setValue(token);
        line.addProperty(property);
        i++;
      }
    }
    return line;
  }
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.