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

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


        Pattern regex = isCaseSensitive ? Pattern.compile(pattern) : Pattern.compile(pattern, Pattern.CASE_INSENSITIVE);
        conventions.put(annotationType, regex);
    }

    public void setConvention(Class<? extends Annotation> annotationType) {
        Convention conv = annotationType.getAnnotation(Convention.class);
        if (conv == null)
            throw new IllegalArgumentException("No Convention Annotation [" + annotationType + "]");
        setConvention(conv.value(), annotationType);
    }
View Full Code Here


        conventions.put(annotationType, regex);
  }
 
  public void setConvention(
    Class<? extends Annotation> annotationType) {
      Convention conv = annotationType.getAnnotation(Convention.class);
      if (conv == null)
        throw new IllegalArgumentException(
          "No Convention Annotation [" + annotationType + "]");
      setConvention(conv.value(),annotationType);
  }
View Full Code Here

TOP

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

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.