Examples of addAttribute()


Examples of com.google.gdata.model.ElementCreator.addAttribute()

    // The builder for this element
    ElementCreator builder = registry.build(KEY);

    // Local properties
    builder.addAttribute(LABEL);
    builder.addAttribute(PRIMARY);
    builder.addAttribute(REL);
    builder.addAttribute(URI);
  }

Examples of com.google.jstestdriver.idea.execution.tc.TCMessage.addAttribute()

  public TCMessage createStartedMessage() {
    TCMessage message = TC.newBrowserErrorStartedMessage(this);
    ConfigNode configNode = getParent().getParent();
    String basePath = configNode.getAbsoluteBasePath();
    if (basePath != null) {
      message.addAttribute(TCAttribute.NODE_TYPE, "browserError");
      message.addAttribute(TCAttribute.NODE_ARGS, basePath);
    }
    return message;
  }

Examples of com.google.step2.openid.ax2.FetchResponse2.addAttribute()

        // Try adding an AX Fetch Response
        String email = (String) session.getAttribute("email");
        FetchResponse2 fetchResponse = new FetchResponse2();
        try {
          if (email != null) {
            fetchResponse.addAttribute(Step2.AxSchema.EMAIL.getShortName(),
                Step2.AxSchema.EMAIL.getUri(), email);
          }
          String country = (String) session.getAttribute("country");
          if (country != null) {
            fetchResponse.addAttribute(Step2.AxSchema.COUNTRY.getShortName(),

Examples of com.google.walkaround.proto.ProtocolDocumentOperation.Component.ElementStart.addAttribute()

  private static ElementStart createElementStart(String type, Attributes attrs) {
    ElementStart elementStart = MessageFactoryHelper.createDocumentElementStart();
    elementStart.setType(type);
    for (Map.Entry<String, String> attribute : attrs.entrySet()) {
      elementStart.addAttribute(
          createKeyValuePair(attribute.getKey(), attribute.getValue()));
    }
    return elementStart;
  }

Examples of com.googlecode.psiprobe.model.ApplicationSession.addAttribute()

                        saBean.setName(name);
                        saBean.setType(ClassUtils.getQualifiedName(o.getClass()));
                        saBean.setValue(o);
                        saBean.setSize(oSize);
                        saBean.setSerializable(o instanceof Serializable);
                        sbean.addAttribute(saBean);
                    }
                    attributeCount++;
                    size += oSize;
                }
                String lastAccessedIP = (String) httpSession.getAttribute(ApplicationSession.LAST_ACCESSED_BY_IP);

Examples of com.ibm.richtext.textlayout.attributes.AttributeMap.addAttribute()

            }
        }

        AttributeMap bigMap = new AttributeMap(new TestAttribute("4"), "value");
        for (int i=0; i < Math.min(attributes.length, values.length); i++) {
            bigMap = bigMap.addAttribute(attributes[i], values[values.length-i-1]);
        }
        maps = maps.addElement(bigMap);

        sets = AttributeSet.EMPTY_SET;

Examples of com.icl.saxon.tree.AttributeCollection.addAttribute()

  if (!unicodeFont.equals("")) {
    if (foStylesheet) {
      inName = namePool.allocate("fo", foURI, "inline");
      inAttr = new AttributeCollection(namePool);
      inAttr.addAttribute("", "", "font-family", "CDATA", unicodeFont);
    } else {
      inName = namePool.allocate("", "", "font");
      inAttr = new AttributeCollection(namePool);
      inAttr.addAttribute("", "", "face", "CDATA", unicodeFont);
    }

Examples of com.iqser.core.model.Content.addAttribute()

  public void testPerformActionPostContent() throws IQserTechnicalException, IOException {
    //create facebook note
    String contentUrl = URLUtils.makeContentURL("122788341354", "note");
    Content content = createDummyContentFromUrl(contentUrl);
    content.addAttribute(new Attribute("subject", "note subject", Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("message", "note message", Attribute.ATTRIBUTE_TYPE_TEXT));
   
    //check if documents exists in object graph
    assertTrue(repo.getContentByProvider(fbcp.getId(), true).size() == 0);
       

Examples of com.l2jfrozen.gameserver.network.gameserverpackets.ServerStatus.addAttribute()

              Config.saveHexid(_serverID, hexToString(_hexID));
              _log.info("Registered on login as Server " + _serverID + " : " + _serverName);
              ServerStatus st = new ServerStatus();
              if(Config.SERVER_LIST_BRACKET)
              {
                st.addAttribute(ServerStatus.SERVER_LIST_SQUARE_BRACKET, ServerStatus.ON);
              }
              else
              {
                st.addAttribute(ServerStatus.SERVER_LIST_SQUARE_BRACKET, ServerStatus.OFF);
              }

Examples of com.l2jfrozen.gameserver.network.serverpackets.StatusUpdate.addAttribute()

    {
      sendPacket(new ItemList(activeChar, true));
    }
   
    StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
    su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
    activeChar.sendPacket(su);
   
    // L2World world = L2World.getInstance();
    // world.removeObject(removedItem);
  }
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.