Package br.com.caelum.restfulie.opensearch

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


  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

TOP

Related Classes of br.com.caelum.restfulie.opensearch.Tags

Copyright © 2018 www.massapicom. 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.