Examples/src/main/java/org/openestate/io/examples/FilemakerReadingExample.java
protected static void printToConsole(FilemakerLayoutDocument doc) throws JAXBException {
        LOGGER.info("> process layout document");
        FMPXMLLAYOUT layout = doc.toObject();

        LOGGER.info("> error code      : " + layout.getERRORCODE());
        if (layout.getPRODUCT() != null) {
            LOGGER.info("> product name    : " + layout.getPRODUCT().getNAME());
            LOGGER.info("> product version : " + layout.getPRODUCT().getVERSION());
            LOGGER.info("> product build   : " + layout.getPRODUCT().getBUILD());
        }
        if (layout.getLAYOUT() != null) {
            LOGGER.info("> database name   : " + layout.getLAYOUT().getDATABASE());
            LOGGER.info("> database layout : " + layout.getLAYOUT().getNAME());
            for (LayoutType.FIELD field : layout.getLAYOUT().getFIELD()) {
                LOGGER.info("> database field  : " + field.getNAME() + " / " + field.getSTYLE().getTYPE() + " / " + field.getSTYLE().getVALUELIST());
            }
        }
        if (layout.getVALUELISTS() != null) {
            for (ValueListsType.VALUELIST valueList : layout.getVALUELISTS().getVALUELIST()) {
                LOGGER.info("> database values : " + valueList.getNAME());
                for (String value : valueList.getVALUE()) {
                    LOGGER.info(">> " + value);
                }
            }
        }
    }
protected static void printToConsole(FilemakerLayoutDocument doc) throws JAXBException {
        LOGGER.info("> process layout document");
        FMPXMLLAYOUT layout = doc.toObject();

        LOGGER.info("> error code      : " + layout.getERRORCODE());
        if (layout.getPRODUCT() != null) {
            LOGGER.info("> product name    : " + layout.getPRODUCT().getNAME());
            LOGGER.info("> product version : " + layout.getPRODUCT().getVERSION());
            LOGGER.info("> product build   : " + layout.getPRODUCT().getBUILD());
        }
        if (layout.getLAYOUT() != null) {
            LOGGER.info("> database name   : " + layout.getLAYOUT().getDATABASE());
            LOGGER.info("> database layout : " + layout.getLAYOUT().getNAME());
            for (LayoutType.FIELD field : layout.getLAYOUT().getFIELD()) {
                LOGGER.info("> database field  : " + field.getNAME() + " / " + field.getSTYLE().getTYPE() + " / " + field.getSTYLE().getVALUELIST());
            }
        }
        if (layout.getVALUELISTS() != null) {
            for (ValueListsType.VALUELIST valueList : layout.getVALUELISTS().getVALUELIST()) {
                LOGGER.info("> database values : " + valueList.getNAME());
                for (String value : valueList.getVALUE()) {
                    LOGGER.info(">> " + value);
                }
            }
        }
    }
protected static void printToConsole ( FilemakerLayoutDocument doc ) throws JAXBException { LOGGER . info ( "> process layout document" ) ; FMPXMLLAYOUT layout = doc . toObject ( ) ; LOGGER . info ( "> error code      : " + layout . getERRORCODE ( ) ) ; if ( layout . getPRODUCT ( ) != null ) { LOGGER . info ( "> product name    : " + layout . getPRODUCT ( ) . getNAME ( ) ) ; LOGGER . info ( "> product version : " + layout . getPRODUCT ( ) . getVERSION ( ) ) ; LOGGER . info ( "> product build   : " + layout . getPRODUCT ( ) . getBUILD ( ) ) ; } if ( layout . getLAYOUT ( ) != null ) { LOGGER . info ( "> database name   : " + layout . getLAYOUT ( ) . getDATABASE ( ) ) ; LOGGER . info ( "> database layout : " + layout . getLAYOUT ( ) . getNAME ( ) ) ; for ( LayoutType . FIELD field : layout . getLAYOUT ( ) . getFIELD ( ) ) { LOGGER . info ( "> database field  : " + field . getNAME ( ) + " / " + field . getSTYLE ( ) . getTYPE ( ) + " / " + field . getSTYLE ( ) . getVALUELIST ( ) ) ; } } if ( layout . getVALUELISTS ( ) != null ) { for ( ValueListsType . VALUELIST valueList : layout . getVALUELISTS ( ) . getVALUELIST ( ) ) { LOGGER . info ( "> database values : " + valueList . getNAME ( ) ) ; for ( String value : valueList . getVALUE ( ) ) { LOGGER . info ( ">> " + value ) ; } } } }
Print some content of a {@link FilemakerLayoutDocument} to console.

@param doc the document to process
@throws JAXBException if XML conversion into Java objects failed
Print some content of a { @link FilemakerLayoutDocument } to console .