Examples of XMLList


Examples of javax.xml.bind.annotation.XmlList

    private NonElement<Type,Class> getXmlType(RuntimeTypeInfoSet tis, TypeReference tr) {
        if(tr==null)
            throw new IllegalArgumentException();

        XmlJavaTypeAdapter xjta = tr.get(XmlJavaTypeAdapter.class);
        XmlList xl = tr.get(XmlList.class);

        Ref<Type,Class> ref = new Ref<Type,Class>(annotationReader, tis.getNavigator(), tr.type, xjta, xl );

        return tis.getTypeInfo(ref);
    }
View Full Code Here

Examples of javax.xml.bind.annotation.XmlList

        for ( Reference ref : rootClasses ) {
            TypeMirror t = ref.type;

            XmlJavaTypeAdapter xjta = ref.annotations.getAnnotation(XmlJavaTypeAdapter.class);
            XmlList xl = ref.annotations.getAnnotation(XmlList.class);

            builder.getTypeInfo(new Ref<TypeMirror, TypeElement>(builder, t, xjta, xl));
        }

        TypeInfoSet<TypeMirror, TypeElement, VariableElement, ExecutableElement> r = builder.link();
View Full Code Here

Examples of javax.xml.bind.annotation.XmlList

    private NonElement<TypeMirror, TypeElement> getXmlType(Reference r) {
        if(r==null)
            throw new IllegalArgumentException();

        XmlJavaTypeAdapter xjta = r.annotations.getAnnotation(XmlJavaTypeAdapter.class);
        XmlList xl = r.annotations.getAnnotation(XmlList.class);

        Ref<TypeMirror, TypeElement> ref = new Ref<TypeMirror, TypeElement>(
            reader,types.getNavigator(),r.type,xjta,xl);

        return types.getTypeInfo(ref);
View Full Code Here

Examples of org.c3s.reflection.XMLList

  public void getGameList(@Parameter("tag") String tag, @Parameter("template") String template,
      @ParameterGet("page") Integer page) throws IllegalArgumentException, IllegalAccessException, InstantiationException, SQLException, XMLException {
    List<DBGamesBean> beans = DbAccess.gamesAccess.getTableRecords();
    Document xml = null;
    if (beans != null) {
      xml = new XMLList(beans, true).toXML("data");
    } else {
      xml = XMLUtils.createXML("data");
    }
    logger.debug(XMLUtils.xml2out(xml));
  }
View Full Code Here

Examples of org.c3s.reflection.XMLList

      @ParameterGet("page") Integer page) throws IllegalArgumentException, IllegalAccessException, InstantiationException, SQLException, XMLException {
   
    List<DBGamesBean> beans = DbAccess.gamesAccess.getTableRecords();
    Document xml = null;
    if (beans != null) {
      xml = new XMLList(beans, true).toXML("data");
    } else {
      xml = XMLUtils.createXML("data");
    }
    ContentObject.getInstance().setData(tag, xml, template, new HashMap<String, Object>() {{
      put("mode", "list");
View Full Code Here

Examples of org.c3s.reflection.XMLList

  public void getList(@Parameter("tag") String tag, @Parameter("template") String template) throws IllegalArgumentException, IllegalAccessException, InstantiationException, SQLException, XMLException {

    List<DBTypesBean> beans = DbAccess.typesAccess.getTableRecords();
    Document xml = null;
    if (beans != null) {
      xml = new XMLList(beans, true).toXML("data");
    } else {
      xml = XMLUtils.createXML("data");
    }
   
    ContentObject.getInstance().setData(tag, xml, template, new HashMap<String, Object>() {{
View Full Code Here

Examples of org.pac4j.oauth.profile.XmlList

        this.clazz = clazz;
    }
   
    public XmlList convert(final Object attribute) {
        if (attribute != null && attribute instanceof String) {
            return new XmlList((String) attribute, this.clazz);
        }
        return null;
    }
View Full Code Here

Examples of org.wso2.javascript.xmlimpl.XMLList

                                throw new DeploymentException(
                                        "Error adding service parameter : " + propertyName,
                                        axisFault);
                            }
                        } else if (propertyValueObject instanceof XMLList) {
                            XMLList list = (XMLList) propertyValueObject;
                            OMNode[] omNodes = list.getAxiomFromXML();
                            try {
                                OMFactory factory = OMAbstractFactory.getOMFactory();
                                OMElement parameterElement = factory.createOMElement("parameter", null);
                                parameterElement.addAttribute("name", propertyName, null);
                                for (OMNode node : omNodes) {
View Full Code Here

Examples of org.wso2.javascript.xmlimpl.XMLList

                    if (response instanceof XML) {
                        element = (OMElement) ((XML) response).getAxiomFromXML();
                    } else if (response instanceof XMLList) {
                        OMFactory omFactory = OMAbstractFactory.getOMFactory();
                        element = omFactory.createOMElement("return", null);
                        XMLList list = (XMLList) response;
                        OMNode[] omNodes = list.getAxiomFromXML();
                        if (omNodes.length == 1) {

                            // If the XMLList returned has only one child we annotate it as XML
                            element.addChild(omNodes[0]);
                        } else {
View Full Code Here

Examples of org.wso2.javascript.xmlimpl.XMLList

                element.addAttribute("type", "xml", namespace);
                element.declareNamespace(xsNamespace);
                element.addAttribute("type", "xs:anyType", xsiNamespace);
            }
        } else if (jsObject instanceof XMLList) {
            XMLList list = (XMLList) jsObject;
            OMNode[] omNodes = list.getAxiomFromXML();
            if (omNodes.length == 0) {
                return element;
            } else if (omNodes.length == 1) {

                // If the XMLList returned has only one child we annotate it as XML
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.