Examples of addAttribute()


Examples of com.liferay.portal.kernel.xml.Element.addAttribute()

        if (uuid) {
            if (columnList.contains(new EntityColumn("companyId"))) {
                Element finderElement = SAXReaderUtil.createElement("finder");

                finderElement.addAttribute("name", "Uuid_C");
                finderElement.addAttribute("return-type", "Collection");

                Element finderColumnElement = finderElement.addElement(
                        "finder-column");

Examples of com.liferay.portlet.expando.model.ExpandoBridge.addAttribute()

    if (localizationUpdated) {
      return;
    }

    try {
      expandoBridge.addAttribute(
        attributeName, ExpandoColumnConstants.BOOLEAN, Boolean.FALSE,
        false);
    }
    catch (DuplicateColumnNameException dcne) {
    }

Examples of com.linkedin.helix.controller.stages.ClusterEvent.addAttribute()

                            List<CurrentState> statesInfo,
                            NotificationContext changeContext)
  {
    LOG.info("START: GenericClusterController.onStateChange()");
    ClusterEvent event = new ClusterEvent("currentStateChange");
    event.addAttribute("helixmanager", changeContext.getManager());
    event.addAttribute("instanceName", instanceName);
    event.addAttribute("changeContext", changeContext);
    event.addAttribute("eventData", statesInfo);
    handleEvent(event);
    LOG.info("END: GenericClusterController.onStateChange()");

Examples of com.linkedin.parseq.trace.ShallowTraceBuilder.addAttribute()

      {
        for(JsonNode node : getField(traceNode, JsonTraceCodec.TRACE_ATTRIBUTES))
        {
          String key = getTextField(node, JsonTraceCodec.TRACE_ATTRIBUTE_KEY);
          String value = getTextField(node, JsonTraceCodec.TRACE_ATTRIBUTE_VALUE);
          shallowBuilder.addAttribute(key, value);
        }
      }

      builder.addTrace(traceId, shallowBuilder.build());
    }

Examples of com.mockey.model.ApiDocRequest.addAttribute()

          "Sets a service plan given a valid plan_id parameter."));
      reqAttributeAction.addFieldValues(new ApiDocFieldValue(API_SETPLAN_PARAMETER_ACTION_VALUE_SET_AS_DEFAULT_PLAN,
          "Sets a service plan to be set as the default state upon a Mockey startup. Set " + API_SETPLAN_PARAMETER_PLAN_ID
          +" to 'none' if no desired default plan is to be set."));
     
      apiDocRequest.addAttribute(reqAttributeAction);

      // Parameter - 'plan_id'
      ApiDocAttribute reqAttributePlanId = new ApiDocAttribute();
      reqAttributePlanId.setFieldName(API_SETPLAN_PARAMETER_PLAN_ID);
      reqAttributePlanId.addFieldValues(new ApiDocFieldValue("[identifier]", "A valid service plan identifier."));

Examples of com.mockey.model.ApiDocResponse.addAttribute()

      // Response attribute 'planId'
      ApiDocAttribute resAttributePlanId = new ApiDocAttribute();
      resAttributePlanId.setFieldName("planId");
      resAttributePlanId.setFieldDescription("Identifier of a Service Plan");
      apiResponse.addAttribute(resAttributePlanId);

      // Response attribute 'planName'
      ApiDocAttribute resAttributePlanName = new ApiDocAttribute();
      resAttributePlanName.setFieldName("planName");
      resAttributePlanName.setFieldDescription("Name of a Service Plan");

Examples of com.mythicscape.batclient.interfaces.ParsedResult.addAttribute()

    return commandMatcher.group(0);
  }

  private void printMerchantWarning(String message) {
    ParsedResult attrMessage = new ParsedResult("MERC: "+message+"\n");
    attrMessage.addAttribute(TextAttribute.FOREGROUND, Color.RED, 0, 5);
    myHandler.getClientGUI().printAttributedString("generic", attrMessage);
   
  }

  @Override

Examples of com.opengamma.component.ComponentInfo.addAttribute()

  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    InterpolatedYieldCurveDefinitionSource source = createInterpolatedYieldCurveDefinitionSource(repo);
   
    ComponentInfo info = new ComponentInfo(InterpolatedYieldCurveDefinitionSource.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteInterpolatedYieldCurveDefinitionSource.class);
    repo.registerComponent(info, source);
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataInterpolatedYieldCurveDefinitionSourceResource(source));
    }

Examples of com.opengamma.core.position.Portfolio.addAttribute()

  public void addAttribute() {
    final Portfolio portfolio = Mockito.mock(Portfolio.class);
    final ResolutionLogger logger = Mockito.mock(ResolutionLogger.class);
    final Portfolio logged = new LoggedResolutionPortfolio(portfolio, logger);
    logged.addAttribute("Foo", "Bar");
    Mockito.verify(portfolio).addAttribute("Foo", "Bar");
    Mockito.verifyZeroInteractions(logger);
  }

  public void getRootNode() {

Examples of com.opengamma.core.position.Trade.addAttribute()

  public void addAttribute() {
    final Trade trade = Mockito.mock(Trade.class);
    final ResolutionLogger logger = Mockito.mock(ResolutionLogger.class);
    final Trade logged = new LoggedResolutionTrade(trade, logger);
    logged.addAttribute("Foo", "Bar");
    Mockito.verify(trade).addAttribute("Foo", "Bar");
    Mockito.verifyZeroInteractions(logger);
  }

  public void getCounterparty() {
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.