Package ca.jeb.protobuf

Examples of ca.jeb.protobuf.ProtobufEntity


   * @return ProtobufEntity annotation
   * @see ca.jeb.protobuf.ProtobufEntity
   */
  public static final ProtobufEntity getProtobufEntity(Class<?> clazz)
  {
    final ProtobufEntity protoBufEntity = clazz.getAnnotation(ProtobufEntity.class);

    if (protoBufEntity != null)
    {
      return protoBufEntity;
    }
View Full Code Here


   * @return boolean - true, if there is a ProtobufEntity annotation, else, false
   * @see ProtobufEntity
   */
  public static final boolean isProtbufEntity(Class<?> clazz)
  {
    final ProtobufEntity protoBufEntity = getProtobufEntity(clazz);

    if (protoBufEntity != null)
    {
      return true;
    }
View Full Code Here

   * @param clazz - any Class
   * @return Class&lt;? extends GeneratedMessage&gt;
   */
  public static final Class<? extends GeneratedMessage> getProtobufClassFromPojoAnno(Class<?> clazz)
  {
    final ProtobufEntity annotation = getProtobufEntity(clazz);
    final Class<? extends GeneratedMessage> gpbClazz = (Class<? extends GeneratedMessage>)annotation.value();
    if (gpbClazz == null)
    {
      return null;
    }
    return gpbClazz;
View Full Code Here

TOP

Related Classes of ca.jeb.protobuf.ProtobufEntity

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.