Java XML JAXB Object to XML getObjects(List objEls)

Here you can find the source of getObjects(List objEls)

Description

get Objects

License

Open Source License

Declaration

@SuppressWarnings({ "rawtypes", "unchecked" })
    public static List getObjects(List<JAXBElement> objEls) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.JAXBElement;

public class Main {
    @SuppressWarnings({ "rawtypes", "unchecked" })
    public static List getObjects(List<JAXBElement> objEls) {
        final List list = new ArrayList();

        for (final JAXBElement objEl : objEls) {
            list.add(objEl.getValue());//from  w  ww .  j ava 2 s.c om
        }

        return list;
    }
}

Related

  1. convertToXml(Object obj)
  2. convertToXml(Object obj)
  3. convertToXml(Object obj, String encoding)
  4. createXML(Object o)
  5. getObjects(List> objEls)
  6. getXmlString(JAXBElement versioningInfo, Boolean formatXml, Schema schema)
  7. getXMLString(Object person, Class clazz)
  8. getXmlString(T jaxbObject)
  9. Object2Xml(Object object)