@Override public String toString() { StringBuilder result = new StringBuilder(); String NEW_LINE = System.getProperty("line.separator"); result.append(this.getClass().getName() + " Object {" + NEW_LINE); result.append(" ID: " + getId() + NEW_LINE); result.append(" Name: " + getName() + NEW_LINE); result.append(" Context: " + getContext() + NEW_LINE); if (getEnvelope() != null) { result.append(" Envelope: " + getEnvelope().toString() + NEW_LINE); } result.append(" Point: " + getPoint().toString() + NEW_LINE ); result.append(" Spatial Reference: " + getSpatialReference().toString() + NEW_LINE ); result.append("}"); return result.toString(); } }