Examples of Tags


Examples of br.com.caelum.restfulie.opensearch.Tags

  public void marshal(Object value, HierarchicalStreamWriter writer, MarshallingContext context) {
  }

  public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {
   
    Tags tags = new Tags();
    String values = reader.getValue();
   
    if(values.equals("")) {
      return tags;
    }
   
    for (String value : values.trim().split("\\s+")) {
      tags.add(value);
    }
    return tags;
  }
View Full Code Here

Examples of com.changestuffs.shared.constants.Tags

            GWT.log("Some error", caught);
          }

          @Override
          public void onSuccess(LookForResult result) {
            Tags localtag = tag;
            tagEnum = localtag;
            user.getSearchMap().put(localtag, result);
            getView().clearCloud();
            getView().addResults(result.getArticles());
            watchRandomProduct(result);
View Full Code Here

Examples of com.emc.storageos.model.search.Tags

        return getByIds(refIds(refs), filter);
    }

    @Override
    public Set<String> getTags(URI id) {
        Tags tags = client.get(Tags.class, getTagsUrl(), id);
        return tags != null ? tags.getTag() : new HashSet<String>();
    }
View Full Code Here

Examples of cucumber.runtime.arquillian.api.Tags

        final List<Object> filters = new ArrayList<Object>();

        final Class<?> clazz = testInstance.getClass();

        { // our API
            final Tags tags = clazz.getAnnotation(Tags.class);
            if (tags != null) {
                filters.addAll(Arrays.asList(tags.value()));
            }
        }

        { // cucumber-junit
            final Cucumber.Options options = clazz.getAnnotation(Cucumber.Options.class);
View Full Code Here

Examples of gov.nara.nwts.ftappImg.tags.ImageTags.TAGS

 

  public String getTagName(TIFFField tf) {
    if (tiffdir == null) return "";
    int tag = tf.getTag();
    TAGS tags = getTagDef(tf);
    if (tags == TAGS.UNDEFINED) {
      return "Tiff Tag " + tag;
    }
    return tags.name();
  }
View Full Code Here

Examples of org.apache.cxf.jaxrs.resources.Tags

        byte[] bytes =
            "{\"Tags\":{\"list\":[{\"group\":\"b\",\"name\":\"a\"},{\"group\":\"d\",\"name\":\"c\"}]}}"
            .getBytes();
        Object tagsObject = p.readFrom(Tags.class, null, null,
                                          null, null, new ByteArrayInputStream(bytes));
        Tags tags = (Tags)tagsObject;
        List<TagVO> list = tags.getTags();
        assertEquals(2, list.size());
        assertEquals("a", list.get(0).getName());
        assertEquals("b", list.get(0).getGroup());
        assertEquals("c", list.get(1).getName());
        assertEquals("d", list.get(1).getGroup());
View Full Code Here

Examples of org.apache.cxf.jaxrs.resources.Tags

    }
   
    @Test
    public void testWriteToListWithManyValues() throws Exception {
        JSONProvider<Tags> p = new JSONProvider<Tags>();
        Tags tags = new Tags();
        tags.addTag(createTag("a", "b"));
        tags.addTag(createTag("c", "d"));
       
        ByteArrayOutputStream os = new ByteArrayOutputStream();
       
        p.writeTo(tags, Tags.class, Tags.class, Tags.class.getAnnotations(),
                  MediaType.APPLICATION_JSON_TYPE, new MetadataMap<String, Object>(), os);
View Full Code Here

Examples of org.apache.cxf.jaxrs.resources.Tags

    @Test
    public void testWriteToListWithSingleValue() throws Exception {
        JSONProvider<Tags> p = new JSONProvider<Tags>();
        p.setSerializeAsArray(true);
        p.setArrayKeys(Collections.singletonList("list"));
        Tags tags = new Tags();
        tags.addTag(createTag("a", "b"));
       
        ByteArrayOutputStream os = new ByteArrayOutputStream();
       
        p.writeTo(tags, Tags.class, Tags.class, Tags.class.getAnnotations(),
                  MediaType.APPLICATION_JSON_TYPE, new MetadataMap<String, Object>(), os);
View Full Code Here

Examples of org.apache.cxf.jaxrs.resources.Tags

    public void testManyTags() throws Exception {
        JSONProvider<ManyTags> p = new JSONProvider<ManyTags>();
        p.setSerializeAsArray(true);
        p.setArrayKeys(Collections.singletonList("list"));
       
        Tags tags = new Tags();
        tags.addTag(createTag("a", "b"));
        ManyTags many = new ManyTags();
        many.setTags(tags);
       
        ByteArrayOutputStream os = new ByteArrayOutputStream();
       
View Full Code Here

Examples of org.apache.cxf.jaxrs.resources.Tags

            }
        };
        p.setSerializeAsArray(true);
        p.setArrayKeys(Collections.singletonList("list"));
        p.setIgnoreEmptyArrayValues(true);
        Tags tags = new Tags();
        tags.addTag(createTag("a", "b"));
        ManyTags many = new ManyTags();
        many.setTags(tags);
       
        ByteArrayOutputStream os = new ByteArrayOutputStream();
       
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.