/** * Creates a XStream TrAX source, setting the objects to marshal. * * @param source the list of objects to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code> or * empty. * @see #setSourceAsList(java.util.List) */ public TraxSource(List source) { super(new InputSource()); this.setSourceAsList(source); }
/** * Sets the object to marshal. * * @param obj the object to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code>. */ public void setSource(Object obj) { if (obj == null) { throw new IllegalArgumentException("obj"); } List list = new ArrayList(1); list.add(obj); this.setSourceAsList(list); }
/** * Creates a XStream TrAX source, setting the objects to marshal and a configured (with * aliases) XStream facade. * * @param source the list of objects to marshal. * @param xstream a configured XStream facade. * @throws IllegalArgumentException if <code>source</code> or <code>xstream</code> is * <code>null</code> or <code>source</code> is empty. * @see #setSourceAsList(java.util.List) * @see #setXStream(com.thoughtworks.xstream.XStream) */ public TraxSource(List source, XStream xstream) { super(new InputSource()); this.setSourceAsList(source); this.setXStream(xstream); }
/** * Creates a XStream TrAX source, setting the objects to marshal. * * @param source the list of objects to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code> or empty. * @see #setSourceAsList(java.util.List) */ public TraxSource(final List<?> source) { super(new InputSource()); setSourceAsList(source); }
/** * Creates a XStream TrAX source, setting the objects to marshal. * * @param source the list of objects to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code> or * empty. * @see #setSourceAsList(java.util.List) */ public TraxSource(List source) { super(new InputSource()); this.setSourceAsList(source); }
/** * Creates a XStream TrAX source, setting the objects to marshal. * * @param source the list of objects to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code> or * empty. * @see #setSourceAsList(java.util.List) */ public TraxSource(List source) { super(new InputSource()); this.setSourceAsList(source); }
/** * Creates a XStream TrAX source, setting the objects to marshal. * * @param source the list of objects to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code> or * empty. * @see #setSourceAsList(java.util.List) */ public TraxSource(List source) { super(new InputSource()); this.setSourceAsList(source); }
/** * Creates a XStream TrAX source, setting the objects to marshal. * * @param source the list of objects to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code> or * empty. * @see #setSourceAsList(java.util.List) */ public TraxSource(List source) { super(new InputSource()); this.setSourceAsList(source); }
/** * Creates a XStream TrAX source, setting the objects to marshal. * * @param source the list of objects to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code> or * empty. * @see #setSourceAsList(java.util.List) */ public TraxSource(List source) { super(new InputSource()); this.setSourceAsList(source); }
/** * Creates a XStream TrAX source, setting the objects to marshal. * * @param source the list of objects to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code> or * empty. * @see #setSourceAsList(java.util.List) */ public TraxSource(List source) { super(new InputSource()); this.setSourceAsList(source); }
/** * Creates a XStream TrAX source, setting the objects to marshal. * * @param source the list of objects to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code> or * empty. * @see #setSourceAsList(java.util.List) */ public TraxSource(List source) { super(new InputSource()); this.setSourceAsList(source); }
/** * Sets the object to marshal. * * @param obj the object to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code>. */ public void setSource(final Object obj) { if (obj == null) { throw new IllegalArgumentException("obj"); } final List<Object> list = new ArrayList<>(1); list.add(obj); setSourceAsList(list); }
/** * Sets the object to marshal. * * @param obj the object to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code>. */ public void setSource(Object obj) { if (obj == null) { throw new IllegalArgumentException("obj"); } List list = new ArrayList(1); list.add(obj); this.setSourceAsList(list); }
/** * Sets the object to marshal. * * @param obj the object to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code>. */ public void setSource(Object obj) { if (obj == null) { throw new IllegalArgumentException("obj"); } List list = new ArrayList(1); list.add(obj); this.setSourceAsList(list); }
/** * Sets the object to marshal. * * @param obj the object to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code>. */ public void setSource(Object obj) { if (obj == null) { throw new IllegalArgumentException("obj"); } List list = new ArrayList(1); list.add(obj); this.setSourceAsList(list); }
/** * Sets the object to marshal. * * @param obj the object to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code>. */ public void setSource(Object obj) { if (obj == null) { throw new IllegalArgumentException("obj"); } List list = new ArrayList(1); list.add(obj); this.setSourceAsList(list); }
/** * Sets the object to marshal. * * @param obj the object to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code>. */ public void setSource(Object obj) { if (obj == null) { throw new IllegalArgumentException("obj"); } List list = new ArrayList(1); list.add(obj); this.setSourceAsList(list); }
/** * Sets the object to marshal. * * @param obj the object to marshal. * @throws IllegalArgumentException if <code>source</code> is <code>null</code>. */ public void setSource(Object obj) { if (obj == null) { throw new IllegalArgumentException("obj"); } List list = new ArrayList(1); list.add(obj); this.setSourceAsList(list); }
/** * Creates a XStream TrAX source, setting the objects to marshal and a configured (with * aliases) XStream facade. * * @param source the list of objects to marshal. * @param xstream a configured XStream facade. * @throws IllegalArgumentException if <code>source</code> or <code>xstream</code> is * <code>null</code> or <code>source</code> is empty. * @see #setSourceAsList(java.util.List) * @see #setXStream(com.thoughtworks.xstream.XStream) */ public TraxSource(List source, XStream xstream) { super(new InputSource()); this.setSourceAsList(source); this.setXStream(xstream); }
/** * Creates a XStream TrAX source, setting the objects to marshal and a configured (with aliases) XStream facade. * * @param source the list of objects to marshal. * @param xstream a configured XStream facade. * @throws IllegalArgumentException if <code>source</code> or <code>xstream</code> is <code>null</code> or * <code>source</code> is empty. * @see #setSourceAsList(java.util.List) * @see #setXStream(com.thoughtworks.xstream.XStream) */ public TraxSource(final List<?> source, final XStream xstream) { super(new InputSource()); setSourceAsList(source); setXStream(xstream); }