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

Examples of org.apache.abdera.ext.serializer.annotation.Extension


                                   Conventions conventions) {
        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


    protected static boolean isUndefined(String value) {
        return value == null || DEFAULT.equals(value);
    }

    protected static QName getQName(AccessibleObject accessor) {
        Extension ext = accessor.getAnnotation(Extension.class);
        if (ext != null)
            return getQName(ext);
        Attribute attr = accessor.getAnnotation(Attribute.class);
        if (attr != null)
            return getQName(attr);
View Full Code Here

    Conventions conventions) {
      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

  protected static boolean isUndefined(String value) {
    return value == null || DEFAULT.equals(value);
  }
 
  protected static QName getQName(AccessibleObject accessor) {
    Extension ext = accessor.getAnnotation(Extension.class);
    if (ext != null) return getQName(ext);
    Attribute attr = accessor.getAnnotation(Attribute.class);
    if (attr != null) return getQName(attr);
    return new QName(
      accessor instanceof Method ?
View Full Code Here

TOP

Related Classes of org.apache.abdera.ext.serializer.annotation.Extension

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.