Package org.apache.abdera.ext.serializer.annotation

Examples of org.apache.abdera.ext.serializer.annotation.Extension.simple()


        AccessibleObject[] accessors = objectContext.getAccessors(Extension.class, conventions);
        for (AccessibleObject accessor : accessors) {
            Object value = eval(accessor, source);
            ObjectContext valueContext = new ObjectContext(value, source, accessor);
            Extension extension = valueContext.getAnnotation(Extension.class);
            boolean simple = extension != null ? extension.simple() : false;
            Serializer ser = context.getSerializer(valueContext);
            if (ser == null) {
                if (simple) {
                    QName qname = getQName(accessor);
                    ser = new SimpleElementSerializer(qname);
View Full Code Here


      AccessibleObject[] accessors = objectContext.getAccessors(Extension.class, conventions);
      for (AccessibleObject accessor : accessors) {
        Object value = eval(accessor,source);
        ObjectContext valueContext = new ObjectContext(value,source,accessor);
        Extension extension = valueContext.getAnnotation(Extension.class);
        boolean simple = extension != null ? extension.simple() : false;
        Serializer ser = context.getSerializer(valueContext);
        if (ser == null) {
          if (simple) {
            QName qname = getQName(accessor);
            ser = new SimpleElementSerializer(qname);
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.