Search in sources :

Example 1 with UITabSetPR

use of org.openforis.collect.persistence.xml.internal.unmarshal.UITabSetPR in project collect by openforis.

the class UIOptionsBinder method unmarshalTabSet.

private UITabSet unmarshalTabSet(XmlPullParser parser, UIOptions uiOptions) throws IOException, XmlPullParserException, XmlParseException {
    try {
        UITabSetPR tabSetPR = new UITabSetPR(this, uiOptions);
        tabSetPR.parse(parser);
        UITabSet tabSet = tabSetPR.getTabSet();
        return tabSet;
    } catch (XmlParseException e) {
        if (parser != null && parser.getEventType() == XmlPullParser.END_DOCUMENT) {
            return null;
        } else {
            throw e;
        }
    }
}
Also used : UITabSetPR(org.openforis.collect.persistence.xml.internal.unmarshal.UITabSetPR) UITabSet(org.openforis.collect.metamodel.ui.UITabSet) XmlParseException(org.openforis.idm.metamodel.xml.XmlParseException)

Aggregations

UITabSet (org.openforis.collect.metamodel.ui.UITabSet)1 UITabSetPR (org.openforis.collect.persistence.xml.internal.unmarshal.UITabSetPR)1 XmlParseException (org.openforis.idm.metamodel.xml.XmlParseException)1