@Override public UnmarshallerHandler getUnmarshallerHandler() { return this.jaxbUnmarshaller.getUnmarshallerHandler(); }
/** * Creates a new instance that uses the specified * Unmarshaller to unmarshal an object. * * <p> * This JAXBResult object will use the specified Unmarshaller * instance. It is the caller's responsibility not to use the * same Unmarshaller for other purposes while it is being * used by this object. * * <p> * The primary purpose of this method is to allow the client * to configure Unmarshaller. Unless you know what you are doing, * it's easier and safer to pass a JAXBContext. * * @param _unmarshaller the unmarshaller. This parameter must not be null. * @throws JAXBException if an error is encountered while creating the * JAXBResult or the Unmarshaller parameter is null. */ public JAXBResult( Unmarshaller _unmarshaller ) throws JAXBException { if( _unmarshaller == null ) throw new JAXBException( Messages.format( Messages.RESULT_NULL_UNMARSHALLER ) ); this.unmarshallerHandler = _unmarshaller.getUnmarshallerHandler(); super.setHandler(unmarshallerHandler); }
factory.setNamespaceAware(true); XMLReader reader = factory.newSAXParser().getXMLReader(); reader.setContentHandler(unmarshaller.getUnmarshallerHandler()); assertFalse(ClientSideCellSetModel.listenerInvoked); reader.parse(new InputSource(response.getStream()));
public UnmarshallerHandler getUnmarshallerHandler() { return delegate.getUnmarshallerHandler(); }
public UnmarshallerHandler getUnmarshallerHandler() { return this.jaxbUnmarshaller.getUnmarshallerHandler(); }
/** * Delegates to the wrapped unmarshaller. */ @Override public UnmarshallerHandler getUnmarshallerHandler() { return unmarshaller.getUnmarshallerHandler(); }
/** * @see javax.xml.bind.Unmarshaller#getUnmarshallerHandler() */ @Override public UnmarshallerHandler getUnmarshallerHandler() { return fixmUnmarshaller.getUnmarshallerHandler(); }
@Override public UnmarshallerHandler getUnmarshallerHandler() { return unmarshaller.getUnmarshallerHandler(); }
/** * @see javax.xml.bind.Unmarshaller#getUnmarshallerHandler() */ @Override public UnmarshallerHandler getUnmarshallerHandler() { return iwxxmUnmarshaller.getUnmarshallerHandler(); }
protected ContentHandler getExtHandler() throws SAXException { try { handler = context.createUnmarshaller().getUnmarshallerHandler(); } catch (JAXBException e) { throw new SAXException(e); } return handler; }
protected ContentHandler getExtHandler() throws SAXException { try { handler = context.createUnmarshaller().getUnmarshallerHandler(); } catch (JAXBException e) { throw new SAXException(e); } return handler; }
static Martif loadFromString(String data) throws Exception { Unmarshaller unm = TBX_CONTEXT.createUnmarshaller(); SAXParser parser = SAX_FACTORY.newSAXParser(); NamespaceFilter xmlFilter = new NamespaceFilter(parser.getXMLReader()); xmlFilter.setContentHandler(unm.getUnmarshallerHandler()); try (StringReader in = new StringReader(data)) { SAXSource source = new SAXSource(xmlFilter, new InputSource(in)); return (Martif) unm.unmarshal(source); } }
public JAXBResult(JAXBContext context) throws JAXBException { if (context == null) { throw new JAXBException("context must not be null"); } unmarshallerHandler = context.createUnmarshaller().getUnmarshallerHandler(); super.setHandler(unmarshallerHandler); }
public JAXBResult(JAXBContext context) throws JAXBException { if (context == null) { throw new JAXBException("context must not be null"); } unmarshallerHandler = context.createUnmarshaller().getUnmarshallerHandler(); super.setHandler(unmarshallerHandler); }
public JAXBResult(JAXBContext context) throws JAXBException { if (context == null) { throw new JAXBException("context must not be null"); } unmarshallerHandler = context.createUnmarshaller().getUnmarshallerHandler(); super.setHandler(unmarshallerHandler); }
public JAXBResult(JAXBContext context) throws JAXBException { if (context == null) { throw new JAXBException("context must not be null"); } unmarshallerHandler = context.createUnmarshaller().getUnmarshallerHandler(); super.setHandler(unmarshallerHandler); }
public boolean validate(Object pObject) throws JAXBException { JAXBContext jc = getJAXBContextImpl(); Marshaller m = jc.createMarshaller(); Unmarshaller u = jc.createUnmarshaller(); MyEventHandler eh = new MyEventHandler(); u.setEventHandler(eh); UnmarshallerHandler uh = u.getUnmarshallerHandler(); m.marshal(pObject, uh); return !eh.invalid; }
public JAXBResult(Unmarshaller unmarshaller) throws JAXBException { if (unmarshaller == null) { throw new JAXBException("unmarshaller must not be null"); } unmarshallerHandler = unmarshaller.getUnmarshallerHandler(); super.setHandler(unmarshallerHandler); }
public JAXBResult(Unmarshaller unmarshaller) throws JAXBException { if (unmarshaller == null) { throw new JAXBException("unmarshaller must not be null"); } unmarshallerHandler = unmarshaller.getUnmarshallerHandler(); super.setHandler(unmarshallerHandler); }
public JAXBResult(Unmarshaller unmarshaller) throws JAXBException { if (unmarshaller == null) { throw new JAXBException("unmarshaller must not be null"); } unmarshallerHandler = unmarshaller.getUnmarshallerHandler(); super.setHandler(unmarshallerHandler); }