Package java.util

Examples of java.util.AbstractMap.entrySet()


  @SuppressWarnings("rawtypes")
  public void marshal(Object value, HierarchicalStreamWriter writer,
      MarshallingContext context) {
    AbstractMap map = (AbstractMap) value;
    for (Object obj : map.entrySet()) {
      Entry entry = (Entry) obj;
      writer.startNode(entry.getKey().toString());
      if (entry.getValue() instanceof String) {
        writer.setValue(entry.getValue().toString());
      } else if (entry.getValue() instanceof Map) {
View Full Code Here


  @SuppressWarnings("rawtypes")
  public void marshal(Object value, HierarchicalStreamWriter writer,
      MarshallingContext context) {
    AbstractMap map = (AbstractMap) value;
    for (Object obj : map.entrySet()) {
      Entry entry = (Entry) obj;
      writer.startNode(entry.getKey().toString());
      if (entry.getValue() instanceof String) {
        writer.setValue(entry.getValue().toString());
      } else if (entry.getValue() instanceof Map) {
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.