Examples/src/main/java/org/openestate/io/examples/ImmobiliareItReadingExample.java
protected static void printToConsole(ImmobiliareItDocument doc) throws JAXBException {
        LOGGER.info("> process document in version "
                + doc.getDocumentVersion());

        Feed feed = doc.toObject();

        // process properties
        if (feed.getProperties() != null) {
            for (Property object : feed.getProperties().getProperty()) {
                // get object nr
                String objectNr = StringUtils.trimToNull(object.getUniqueId());
                if (objectNr == null) objectNr = "???";

                // get object description
                String objectInfo = (object.getFeatures() != null && !object.getFeatures().getDescription().isEmpty()) ?
                        StringUtils.trimToNull(object.getFeatures().getDescription().get(0).getValue()) : null;
                if (objectInfo == null) objectInfo = "???";

                // print object information to console
                LOGGER.info("> found object "
                        + "'" + objectNr + "': " + objectInfo);
            }
        }
    }
protected static void printToConsole(ImmobiliareItDocument doc) throws JAXBException {
        LOGGER.info("> process document in version "
                + doc.getDocumentVersion());

        Feed feed = doc.toObject();

        // process properties
        if (feed.getProperties() != null) {
            for (Property object : feed.getProperties().getProperty()) {
                // get object nr
                String objectNr = StringUtils.trimToNull(object.getUniqueId());
                if (objectNr == null) objectNr = "???";

                // get object description
                String objectInfo = (object.getFeatures() != null && !object.getFeatures().getDescription().isEmpty()) ?
                        StringUtils.trimToNull(object.getFeatures().getDescription().get(0).getValue()) : null;
                if (objectInfo == null) objectInfo = "???";

                // print object information to console
                LOGGER.info("> found object "
                        + "'" + objectNr + "': " + objectInfo);
            }
        }
    }
Print some content of an {@link ImmobiliareItDocument} to console.

@param doc the document to process
@throws JAXBException if XML conversion into Java objects failed