Package ehistory.server.api.model

Examples of ehistory.server.api.model.Place


        List<HObject> objects = clientBean.getBackendBean().getMap(filter);

        StringBuilder objectsBuilder = new StringBuilder();
        StringBuilder objectTitlesBuilder = new StringBuilder();
        for (HObject object : objects) {
            Place place = null;

            if (object.getProperties() == null) {
                continue;
            }

            for (Property property : object.getProperties()) {
                if (PLACE_NAME.equals(property.getName())) {
                    place = property.getPlace();
                    break;
                }
            }
            if (place == null) {
                continue;
            }

            StringBuilder objectB = new StringBuilder();
            if (place.getPoint() != null) {
                objectB.append("p:").append(place.getPoint().getX()).append(":").append(place.getPoint().getY());
            } else if (place.getArea() != null) {
                objectB.append(object.getUid()).append(MAP_SEPARATOR);
                objectB.append(AREA_CONSTANT).append(MAP_SEPARATOR);
                String coords = convertCoordinates(place.getArea());
                if (coords == null) {
                    continue;
                }
                objectB.append(coords);
            } else {
View Full Code Here

TOP

Related Classes of ehistory.server.api.model.Place

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.