The following document contains the results of PMD's CPD 6.13.0.
File | Line |
---|---|
fr/paris/lutece/plugins/leaflet/business/GeolocItem.java | 226 |
fr/paris/lutece/plugins/leaflet/business/GeolocItemPolygon.java | 207 |
} /** * Returns the Icon * * @return The icon */ public String getIcon( ) { return _icon; } /** * Returns the Layer * * @return The layer */ public String getLayer( ) { return _layer; } /** * Sets the Icon * * @param icon the icon */ public void setIcon( String icon ) { _icon = icon; } /** * Writes the geojson to a String * * @return The geojseon String */ public String toJSON( ) { try { return _objectMapper.writeValueAsString( this ); } catch ( IOException e ) { // Writing to strings should not produce exceptions throw new RuntimeException( e ); } } /** * Writes the xml to a String. This is a non standard representation. * * @return The xml String */ public String toXML( ) { StringBuffer stringBuffer = new StringBuffer( ); XmlUtil.beginElement( stringBuffer, XML_ROOT ); XmlUtil.addElement( stringBuffer, XML_LON, _lonlat.get( 0 ).toString( ) ); XmlUtil.addElement( stringBuffer, XML_LAT, _lonlat.get( 1 ).toString( ) ); if ( _address != null ) |