public SearchHandle() { super(); super.setFormat(Format.XML); }
static private <T> T withFormat(T handle, Format format, Class<T> as) { if (handle != null) { if (!(handle instanceof BaseHandle)) { throw new IllegalArgumentException( "cannot set format on handle of "+handle.getClass().getName() ); } ((BaseHandle) handle).setFormat(format); } return handle; }
StructuredQueryXMLWriter(StructuredQueryDefinition[] queries) { super(); super.setResendable(true); super.setFormat(Format.XML); this.queries = queries; } @Override
/** * Zero-argument constructor. */ public XMLEventReaderHandle() { super(); super.setFormat(Format.XML); setResendable(false); } /**
/** * Zero-argument constructor. */ public JacksonHandle() { super(); super.setFormat(Format.JSON); setResendable(true); } /**
/** * Zero-argument constructor. */ public GSONHandle() { super(); super.setFormat(Format.JSON); setResendable(true); } /**
public TuplesHandle() { super(); super.setFormat(Format.XML); try { jc = JAXBContext.newInstance(TuplesBuilder.Tuples.class); unmarshaller = jc.createUnmarshaller(); } catch (JAXBException e) { throw new MarkLogicBindingException(e); } }
StructuredQueryXMLWriter(StructuredQueryDefinition[] queries) { super(); super.setResendable(true); super.setFormat(Format.XML); this.queries = queries; } @Override
/** * Zero-argument constructor. */ public XMLEventReaderHandle() { super(); super.setFormat(Format.XML); setResendable(false); } /**
@SuppressWarnings("rawtypes") static private void setHandleStructuredFormat(BaseHandle handle, Format format) { if (format != Format.JSON && format != Format.XML) { throw new IllegalArgumentException("Received "+format.name()+" format instead of JSON or XML"); } handle.setFormat(format); }
@SuppressWarnings("rawtypes") static private void setHandleStructuredFormat(BaseHandle handle, Format format) { if (format != Format.JSON && format != Format.XML) { throw new IllegalArgumentException("Received "+format.name()+" format instead of JSON or XML"); } handle.setFormat(format); } }
/** * Zero-argument constructor. */ public JDOMHandle() { super(); super.setFormat(Format.XML); setResendable(true); } /**
/** * Zero-argument constructor. */ public DOMHandle() { super(); super.setFormat(Format.XML); setResendable(true); } /**
/** * Zero-argument constructor. */ public XMLStreamReaderHandle() { super(); super.setFormat(Format.XML); setResendable(false); } /**
/** * Zero-argument constructor. */ public XOMHandle() { super(); super.setFormat(Format.XML); setResendable(true); } /**
/** * Zero-argument constructor. */ public XMLStreamReaderHandle() { super(); super.setFormat(Format.XML); setResendable(false); } /**
/** * Zero-argument constructor. */ public ValuesHandle() { super(); super.setFormat(Format.XML); try { jc = JAXBContext.newInstance(ValuesBuilder.Values.class); unmarshaller = jc.createUnmarshaller(); } catch (JAXBException e) { throw new MarkLogicBindingException(e); } }
/** * Zero-argument constructor. */ public InputSourceHandle() { super(); super.setFormat(Format.XML); setResendable(false); } /**
/** * Zero-argument constructor. */ public DocumentMetadataHandle() { super(); super.setFormat(Format.XML); setResendable(true); }
/** * Zero-argument constructor. */ public DOM4JHandle() { super(); super.setFormat(Format.XML); setResendable(true); } /**