@Override public Collection<QName> getExpectedElements() { try { return UnmarshallingContext.getInstance().getCurrentExpectedElements(); } catch (NullPointerException npe) { // TODO: need to check what could be done in JAXB in order to prevent the npe // thrown from com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext#1206 } // something went wrong - return empty list return Collections.emptyList(); }
@Override public Collection<QName> getExpectedElements() { try { return UnmarshallingContext.getInstance().getCurrentExpectedElements(); } catch (NullPointerException npe) { // TODO: need to check what could be done in JAXB in order to prevent the npe // thrown from com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext#1206 } // something went wrong - return empty list return Collections.emptyList(); }
@Override public Collection<QName> getExpectedElements() { try { return UnmarshallingContext.getInstance().getCurrentExpectedElements(); } catch (NullPointerException npe) { // TODO: need to check what could be done in JAXB in order to prevent the npe // thrown from com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext#1206 } // something went wrong - return empty list return Collections.emptyList(); }
Collection<QName> currExpElems = uctx.getCurrentExpectedElements(); for (QName n : currExpElems) { String nu = n.getNamespaceURI();