Package org.yaac.shared.property

Examples of org.yaac.shared.property.GeoPtPropertyInfo


      result = new UserPropertyInfo(user.getAuthDomain(), user.getEmail(),
          user.getFederatedIdentity(), user.getUserId(), user.getNickname());
    } else if (obj instanceof GeoPt) {
      float latitude = ((GeoPt) obj).getLatitude();
      float longitude = ((GeoPt) obj).getLongitude();
      result = new GeoPtPropertyInfo(latitude, longitude);
    } else if (obj instanceof ShortBlob) {
      result = new StringPropertyInfo(new String(((ShortBlob) obj).getBytes()));
    } else if (obj instanceof Blob) {
      Blob b = (Blob) obj;
      String fileName = index == null ? propertyName : propertyName + "[" + index + "]";
View Full Code Here


    case DOUBLE:
      return ((DoublePropertyInfo) info).getPayload();
    case EMAIL:
      return new Email(((EmailPropertyInfo) info).getPayload());
    case GEOPT:
      GeoPtPropertyInfo geoPtInfo = (GeoPtPropertyInfo) info;
      return new GeoPt(geoPtInfo.getLatitude(), geoPtInfo.getLongitude());
    case IM_HANDLE:
      // TODO
      return null;
    case KEY:
      return DatastoreUtil.convert((KeyInfo)info);
View Full Code Here

TOP

Related Classes of org.yaac.shared.property.GeoPtPropertyInfo

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.