Examples of StringAttribute


Examples of com.esri.gpt.framework.collection.StringAttribute

  for (int i = 0; i < nlParameters.getLength(); i++) {
    Node ndParameter = nlParameters.item(i);
    String sKey = Val.chkStr(xpath.evaluate("@key", ndParameter));
    String sValue = Val.chkStr(xpath.evaluate("@value", ndParameter));
    if (sKey.length() > 0) {
      parameters.add(new StringAttribute(sKey, sValue));
    }
  }
}
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201306.o.StringAttribute

    // Display related keywords.
    if (page.getEntries() != null && page.getEntries().length > 0) {
      for (TargetingIdea targetingIdea : page.getEntries()) {
        Map<AttributeType, Attribute> data = Maps.toMap(targetingIdea.getData());
        StringAttribute keyword = (StringAttribute) data.get(AttributeType.KEYWORD_TEXT);

        IntegerSetAttribute categories =
            (IntegerSetAttribute) data.get(AttributeType.CATEGORY_PRODUCTS_AND_SERVICES);
        String categoriesString = "(none)";
        if (categories != null && categories.getValue() != null) {
          categoriesString = Joiner.on(", ").join(Ints.asList(categories.getValue()));
        }
        Long averageMonthlySearches =
            ((LongAttribute) data.get(AttributeType.SEARCH_VOLUME))
                .getValue();
        System.out.println("Keyword with text '" + keyword.getValue()
            + "', and average monthly search volume '" + averageMonthlySearches
            + "' was found with categories: " + categoriesString);
      }
    } else {
      System.out.println("No related keywords were found.");
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201309.o.StringAttribute

    // Display related keywords.
    if (page.getEntries() != null && page.getEntries().length > 0) {
      for (TargetingIdea targetingIdea : page.getEntries()) {
        Map<AttributeType, Attribute> data = Maps.toMap(targetingIdea.getData());
        StringAttribute keyword = (StringAttribute) data.get(AttributeType.KEYWORD_TEXT);

        IntegerSetAttribute categories =
            (IntegerSetAttribute) data.get(AttributeType.CATEGORY_PRODUCTS_AND_SERVICES);
        String categoriesString = "(none)";
        if (categories != null && categories.getValue() != null) {
          categoriesString = Joiner.on(", ").join(Ints.asList(categories.getValue()));
        }
        Long averageMonthlySearches =
            ((LongAttribute) data.get(AttributeType.SEARCH_VOLUME))
                .getValue();
        System.out.println("Keyword with text '" + keyword.getValue()
            + "', and average monthly search volume '" + averageMonthlySearches
            + "' was found with categories: " + categoriesString);
      }
    } else {
      System.out.println("No related keywords were found.");
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.o.StringAttribute

    // Display related keywords.
    if (page.getEntries() != null && page.getEntries().length > 0) {
      for (TargetingIdea targetingIdea : page.getEntries()) {
        Map<AttributeType, Attribute> data = Maps.toMap(targetingIdea.getData());
        StringAttribute keyword = (StringAttribute) data.get(AttributeType.KEYWORD_TEXT);

        IntegerSetAttribute categories =
            (IntegerSetAttribute) data.get(AttributeType.CATEGORY_PRODUCTS_AND_SERVICES);
        String categoriesString = "(none)";
        if (categories != null && categories.getValue() != null) {
          categoriesString = Joiner.on(", ").join(Ints.asList(categories.getValue()));
        }
        Long averageMonthlySearches =
            ((LongAttribute) data.get(AttributeType.SEARCH_VOLUME))
                .getValue();
        System.out.println("Keyword with text '" + keyword.getValue()
            + "', and average monthly search volume '" + averageMonthlySearches
            + "' was found with categories: " + categoriesString);
      }
    } else {
      System.out.println("No related keywords were found.");
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.o.StringAttribute

    // Display related keywords.
    if (page.getEntries() != null && page.getEntries().length > 0) {
      for (TargetingIdea targetingIdea : page.getEntries()) {
        Map<AttributeType, Attribute> data = Maps.toMap(targetingIdea.getData());
        StringAttribute keyword = (StringAttribute) data.get(AttributeType.KEYWORD_TEXT);

        IntegerSetAttribute categories =
            (IntegerSetAttribute) data.get(AttributeType.CATEGORY_PRODUCTS_AND_SERVICES);
        String categoriesString = "(none)";
        if (categories != null && categories.getValue() != null) {
          categoriesString = Joiner.on(", ").join(Ints.asList(categories.getValue()));
        }
        Long averageMonthlySearches =
            ((LongAttribute) data.get(AttributeType.SEARCH_VOLUME))
                .getValue();
        System.out.println("Keyword with text '" + keyword.getValue()
            + "', and average monthly search volume '" + averageMonthlySearches
            + "' was found with categories: " + categoriesString);
      }
    } else {
      System.out.println("No related keywords were found.");
View Full Code Here

Examples of com.google.api.adwords.v201306.o.StringAttribute

      // Display related keywords.
      if (page.getEntries() != null && page.getEntries().length > 0) {
        for (TargetingIdea targetingIdea : page.getEntries()) {
          Map<AttributeType, Attribute> data = MapUtils.toMap(targetingIdea.getData());
          StringAttribute keyword = (StringAttribute) data.get(AttributeType.KEYWORD_TEXT);
          IntegerSetAttribute categories =
              (IntegerSetAttribute) data.get(AttributeType.CATEGORY_PRODUCTS_AND_SERVICES);
          String categoriesString = "(none)";
          if (categories != null && categories.getValue() != null) {
            categoriesString = StringUtils.join(ArrayUtils.toObject(categories.getValue()), ", ");
          }
          Long averageMonthlySearches =
              ((LongAttribute) data.get(AttributeType.SEARCH_VOLUME))
                  .getValue();
          System.out.println("Keyword with text '" + keyword.getValue() +
              "' and average monthly search volume '"
              + averageMonthlySearches + "' was found with categories: " + categoriesString);
        }
      } else {
        System.out.println("No related keywords were found.");
View Full Code Here

Examples of com.google.api.adwords.v201309.o.StringAttribute

      // Display related keywords.
      if (page.getEntries() != null && page.getEntries().length > 0) {
        for (TargetingIdea targetingIdea : page.getEntries()) {
          Map<AttributeType, Attribute> data = MapUtils.toMap(targetingIdea.getData());
          StringAttribute keyword = (StringAttribute) data.get(AttributeType.KEYWORD_TEXT);
          IntegerSetAttribute categories =
              (IntegerSetAttribute) data.get(AttributeType.CATEGORY_PRODUCTS_AND_SERVICES);
          String categoriesString = "(none)";
          if (categories != null && categories.getValue() != null) {
            categoriesString = StringUtils.join(ArrayUtils.toObject(categories.getValue()), ", ");
          }
          Long averageMonthlySearches =
              ((LongAttribute) data.get(AttributeType.SEARCH_VOLUME))
                  .getValue();
          System.out.println("Keyword with text '" + keyword.getValue() +
              "' and average monthly search volume '"
              + averageMonthlySearches + "' was found with categories: " + categoriesString);
        }
      } else {
        System.out.println("No related keywords were found.");
View Full Code Here

Examples of com.sun.xacml.attr.StringAttribute

    }

    protected void addAction(Set<Attribute> actions) {
        actions.add(new Attribute(XACMLConstants.ActionAttributeURI, null, null,
                new StringAttribute(action)));
    }
View Full Code Here

Examples of openwfe.org.engine.workitem.StringAttribute

    {
        try
        {
            wi.addAttribute
                ("personal message",
                 new StringAttribute("This workitem will self-destruct in... 10 seconds..."));

            return wi;
        }
        catch (AttributeException ae)
        {
View Full Code Here

Examples of org.apache.jetspeed.portlets.security.users.JetspeedUserBean.StringAttribute

                JetspeedUserBean bean = new JetspeedUserBean(user);
                Preferences attributes = user.getUserAttributes();
                Iterator userAttrIter = bean.getAttributes().iterator();
                while (userAttrIter.hasNext())
                {
                    StringAttribute userAttr = (StringAttribute) userAttrIter.next();
                    for(int ix = 0; ix < userAttrNames.length; ix++)
                    {
                        String userAttrName = userAttrNames[ix];
                        if(userAttr.getName().equals(userAttrName))
                        {
                            deletes.add(userAttrName);
                            break;
                        }
                    }
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.