/** * INTERNAL: Add and initialize a new session to the list of sessions * associated with this XMLContext. */ public void addSession(DatabaseSession sessionToAdd) { getXMLContextState().addSession(sessionToAdd); }
/** * INTERNAL: * Return true if any session held onto by this context has a document preservation * policy that requires unmarshalling from a Node. */ public boolean hasDocumentPreservation() { return getXMLContextState().hasDocumentPreservation(); }
/** * INTERNAL: Add and initialize a new session to the list of sessions * associated with this XMLContext. */ public void addSession(DatabaseSession sessionToAdd) { getXMLContextState().addSession(sessionToAdd); }
/** * INTERNAL: <code> * XMLContext xmlContext = new XMLContext("path0:path1");<br> * DatabaseSession session = xmlContext.getSession(0); // returns session for path0<br> * </code> */ public DatabaseSession getSession(int index) { return getXMLContextState().getSession(index); }
/** * INTERNAL: * Return true if any session held onto by this context has a document preservation * policy that requires unmarshalling from a Node. */ public boolean hasDocumentPreservation() { return getXMLContextState().hasDocumentPreservation(); }
/** * INTERNAL: <code> * XMLContext xmlContext = new XMLContext("path0:path1");<br> * DatabaseSession session = xmlContext.getSession(0); // returns session for path0<br> * </code> */ public DatabaseSession getSession(int index) { return getXMLContextState().getSession(index); }
public void setupDocumentPreservationPolicy(DatabaseSession session) { getXMLContextState().setupDocumentPreservationPolicy(session); }
public void setupDocumentPreservationPolicy(DatabaseSession session) { getXMLContextState().setupDocumentPreservationPolicy(session); }
/** * INTERNAL: Return the EclipseLink session used to marshal. */ public List getSessions() { return getXMLContextState().getSessions(); }
/** * INTERNAL: Return the EclipseLink session used to marshal. */ public List getSessions() { return getXMLContextState().getSessions(); }
public XMLBinder(XMLContext context, XMLMarshaller marshaller, XMLUnmarshaller unmarshaller) { this.context = new XMLContext(context.getXMLContextState()); this.marshaller = marshaller; this.unmarshaller = unmarshaller; initialize(); }
public XMLBinder(XMLContext context, XMLMarshaller marshaller, XMLUnmarshaller unmarshaller) { this.context = new XMLContext(context.getXMLContextState()); this.marshaller = marshaller; this.unmarshaller = unmarshaller; initialize(); }
public XMLBinder(XMLContext context) { this.context = new XMLContext(context.getXMLContextState()); marshaller = this.context.createMarshaller(); unmarshaller = this.context.createUnmarshaller(); initialize(); }
public XMLBinder(XMLContext context) { this.context = new XMLContext(context.getXMLContextState()); marshaller = this.context.createMarshaller(); unmarshaller = this.context.createUnmarshaller(); initialize(); }
/** * INTERNAL: * Build a new JAXBContextState from the current JAXBContextInput. */ private JAXBContextState newContextState() throws javax.xml.bind.JAXBException { if (null == contextInput) { return null; } synchronized (this) { JAXBContextState newState = contextInput.createContextState(); XMLContext xmlContext = getXMLContext(); xmlContext.setXMLContextState(newState.getXMLContext().getXMLContextState()); newState.setXMLContext(xmlContext); newState.setTypeToTypeMappingInfo(contextState.getTypeToTypeMappingInfo()); return newState; } }
/** * INTERNAL: * Build a new JAXBContextState from the current JAXBContextInput. */ private JAXBContextState newContextState() throws javax.xml.bind.JAXBException { if (null == contextInput) { return null; } synchronized (this) { JAXBContextState newState = contextInput.createContextState(); XMLContext xmlContext = getXMLContext(); xmlContext.setXMLContextState(newState.getXMLContext().getXMLContextState()); newState.setXMLContext(xmlContext); newState.setTypeToTypeMappingInfo(contextState.getTypeToTypeMappingInfo()); return newState; } }