EMMA Coverage Report (generated Tue Jun 29 17:59:02 CEST 2010)
[all classes][org.jomc.standalone.model]

COVERAGE SUMMARY FOR SOURCE FILE [ParameterType.java]

nameclass, %method, %block, %line, %
ParameterType.java0%   (0/1)0%   (0/20)0%   (0/853)0%   (0/190)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ParameterType0%   (0/1)0%   (0/20)0%   (0/853)0%   (0/190)
ParameterType (): void 0%   (0/1)0%   (0/8)0%   (0/3)
ParameterType (ParameterType): void 0%   (0/1)0%   (0/29)0%   (0/8)
clone (): ParameterType 0%   (0/1)0%   (0/5)0%   (0/1)
copyAny (List, List): void 0%   (0/1)0%   (0/48)0%   (0/11)
copyOFJAXBElement (JAXBElement): JAXBElement 0%   (0/1)0%   (0/27)0%   (0/6)
copyOf (boolean []): boolean [] 0%   (0/1)0%   (0/22)0%   (0/5)
copyOf (byte []): byte [] 0%   (0/1)0%   (0/22)0%   (0/5)
copyOf (char []): char [] 0%   (0/1)0%   (0/22)0%   (0/5)
copyOf (double []): double [] 0%   (0/1)0%   (0/22)0%   (0/5)
copyOf (float []): float [] 0%   (0/1)0%   (0/22)0%   (0/5)
copyOf (int []): int [] 0%   (0/1)0%   (0/22)0%   (0/5)
copyOf (long []): long [] 0%   (0/1)0%   (0/22)0%   (0/5)
copyOf (short []): short [] 0%   (0/1)0%   (0/22)0%   (0/5)
copyOfArray (Object): Object 0%   (0/1)0%   (0/102)0%   (0/23)
copyOfObject (Object): Object 0%   (0/1)0%   (0/274)0%   (0/67)
copyOfSerializable (Serializable): Serializable 0%   (0/1)0%   (0/163)0%   (0/25)
getAny (): List 0%   (0/1)0%   (0/11)0%   (0/3)
getOtherAttributes (): Map 0%   (0/1)0%   (0/3)0%   (0/1)
getType (): String 0%   (0/1)0%   (0/3)0%   (0/1)
setType (String): void 0%   (0/1)0%   (0/4)0%   (0/2)

1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4// Any modifications to this file will be lost upon recompilation of the source schema. 
5// Generated on: 2010.06.29 at 05:55:18 PM CEST 
6//
7 
8 
9package org.jomc.standalone.model;
10 
11import java.io.ByteArrayInputStream;
12import java.io.ByteArrayOutputStream;
13import java.io.IOException;
14import java.io.InvalidClassException;
15import java.io.NotSerializableException;
16import java.io.ObjectInputStream;
17import java.io.ObjectOutputStream;
18import java.io.OptionalDataException;
19import java.io.Serializable;
20import java.io.StreamCorruptedException;
21import java.lang.reflect.Array;
22import java.lang.reflect.InvocationTargetException;
23import java.math.BigDecimal;
24import java.math.BigInteger;
25import java.util.ArrayList;
26import java.util.Calendar;
27import java.util.Currency;
28import java.util.Date;
29import java.util.HashMap;
30import java.util.Iterator;
31import java.util.List;
32import java.util.Locale;
33import java.util.Map;
34import java.util.TimeZone;
35import java.util.UUID;
36import javax.annotation.Generated;
37import javax.xml.bind.JAXBElement;
38import javax.xml.bind.annotation.XmlAccessType;
39import javax.xml.bind.annotation.XmlAccessorType;
40import javax.xml.bind.annotation.XmlAnyAttribute;
41import javax.xml.bind.annotation.XmlAnyElement;
42import javax.xml.bind.annotation.XmlAttribute;
43import javax.xml.bind.annotation.XmlType;
44import javax.xml.datatype.Duration;
45import javax.xml.datatype.XMLGregorianCalendar;
46import javax.xml.namespace.QName;
47import org.w3c.dom.Element;
48 
49 
50/**
51 * Model of a method parameter.
52 * 
53 * <p>Java class for ParameterType complex type.
54 * 
55 * <p>The following schema fragment specifies the expected content contained within this class.
56 * 
57 * <pre>
58 * &lt;complexType name="ParameterType">
59 *   &lt;complexContent>
60 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
61 *       &lt;sequence>
62 *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
63 *       &lt;/sequence>
64 *       &lt;attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
65 *       &lt;anyAttribute processContents='lax'/>
66 *     &lt;/restriction>
67 *   &lt;/complexContent>
68 * &lt;/complexType>
69 * </pre>
70 * 
71 * 
72 */
73@XmlAccessorType(XmlAccessType.FIELD)
74@XmlType(name = "ParameterType", propOrder = {
75    "any"
76})
77@Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
78public class ParameterType implements Cloneable
79{
80 
81    @XmlAnyElement(lax = true)
82    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
83    protected List<Object> any;
84    @XmlAttribute(required = true)
85    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
86    protected String type;
87    @XmlAnyAttribute
88    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
89    private Map<QName, String> otherAttributes = new HashMap<QName, String>();
90 
91    /**
92     * Creates a new {@code ParameterType} instance.
93     * 
94     */
95    public ParameterType() {
96        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
97        super();
98    }
99 
100    /**
101     * Creates a new {@code ParameterType} instance by deeply copying a given {@code ParameterType} instance.
102     * 
103     * 
104     * @param o
105     *     The instance to copy.
106     * @throws NullPointerException
107     *     if {@code o} is {@code null}.
108     */
109    public ParameterType(final ParameterType o) {
110        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
111        super();
112        if (o == null) {
113            throw new NullPointerException("Cannot create a copy of 'ParameterType' from 'null'.");
114        }
115        // 'Any' collection.
116        copyAny(o.getAny(), getAny());
117        // CBuiltinLeafInfo: java.lang.String
118        this.type = o.getType();
119        // Other attributes.
120        this.otherAttributes.putAll(o.otherAttributes);
121    }
122 
123    /**
124     * Gets the value of the any property.
125     * 
126     * <p>
127     * This accessor method returns a reference to the live list,
128     * not a snapshot. Therefore any modification you make to the
129     * returned list will be present inside the JAXB object.
130     * This is why there is not a <CODE>set</CODE> method for the any property.
131     * 
132     * <p>
133     * For example, to add a new item, do as follows:
134     * <pre>
135     *    getAny().add(newItem);
136     * </pre>
137     * 
138     * 
139     * <p>
140     * Objects of the following type(s) are allowed in the list
141     * {@link Element }
142     * {@link Object }
143     * 
144     * 
145     */
146    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
147    public List<Object> getAny() {
148        if (any == null) {
149            any = new ArrayList<Object>();
150        }
151        return this.any;
152    }
153 
154    /**
155     * Type of the parameter.
156     * 
157     * @return
158     *     possible object is
159     *     {@link String }
160     *     
161     */
162    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
163    public String getType() {
164        return type;
165    }
166 
167    /**
168     * Sets the value of the type property.
169     * 
170     * @param value
171     *     allowed object is
172     *     {@link String }
173     *     
174     */
175    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
176    public void setType(String value) {
177        this.type = value;
178    }
179 
180    /**
181     * Gets a map that contains attributes that aren't bound to any typed property on this class.
182     * 
183     * <p>
184     * the map is keyed by the name of the attribute and 
185     * the value is the string value of the attribute.
186     * 
187     * the map returned by this method is live, and you can add new attribute
188     * by updating the map directly. Because of this design, there's no setter.
189     * 
190     * 
191     * @return
192     *     always non-null
193     */
194    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
195    public Map<QName, String> getOtherAttributes() {
196        return otherAttributes;
197    }
198 
199    /**
200     * Copies all values of property {@code Any} deeply.
201     * 
202     * @param target
203     *     The target to copy {@code source} to.
204     * @param source
205     *     The source to copy from.
206     * @throws NullPointerException
207     *     if {@code source} or {@code target} is {@code null}.
208     */
209    @SuppressWarnings("unchecked")
210    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
211    private static void copyAny(final List<Object> source, final List<Object> target) {
212        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
213        if (!source.isEmpty()) {
214            for (Iterator it = source.iterator(); it.hasNext(); ) {
215                final Object next = it.next();
216                if (next instanceof Element) {
217                    // CWildcardTypeInfo: org.w3c.dom.Element
218                    target.add(((Element)((Element) next).cloneNode(true)));
219                    continue;
220                }
221                if (next instanceof Object) {
222                    // CBuiltinLeafInfo: java.lang.Object
223                    target.add(copyOfObject(((Object) next)));
224                    continue;
225                }
226                // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
227                throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'Any' of class 'org.jomc.standalone.model.ParameterType'."));
228            }
229        }
230    }
231 
232    /**
233     * Creates and returns a deep copy of a given object.
234     * 
235     * @param o
236     *     The instance to copy or {@code null}.
237     * @return
238     *     A deep copy of {@code o} or {@code null} if {@code o} is {@code null}.
239     */
240    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
241    private static Object copyOfObject(final Object o) {
242        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
243        if (o!= null) {
244            if (o.getClass().isPrimitive()) {
245                return o;
246            }
247            if (o.getClass().isArray()) {
248                return copyOfArray(o);
249            }
250            if (o instanceof Boolean) {
251                return o;
252            }
253            if (o instanceof Byte) {
254                return o;
255            }
256            if (o instanceof Character) {
257                return o;
258            }
259            if (o instanceof Double) {
260                return o;
261            }
262            if (o instanceof Enum) {
263                return o;
264            }
265            if (o instanceof Float) {
266                return o;
267            }
268            if (o instanceof Integer) {
269                return o;
270            }
271            if (o instanceof Long) {
272                return o;
273            }
274            if (o instanceof Short) {
275                return o;
276            }
277            if (o instanceof String) {
278                return o;
279            }
280            if (o instanceof BigDecimal) {
281                return o;
282            }
283            if (o instanceof BigInteger) {
284                return o;
285            }
286            if (o instanceof UUID) {
287                return o;
288            }
289            if (o instanceof QName) {
290                return o;
291            }
292            if (o instanceof Duration) {
293                return o;
294            }
295            if (o instanceof Currency) {
296                return o;
297            }
298            if (o instanceof XMLGregorianCalendar) {
299                return ((XMLGregorianCalendar) o).clone();
300            }
301            if (o instanceof Date) {
302                return ((Date) o).clone();
303            }
304            if (o instanceof Calendar) {
305                return ((Calendar) o).clone();
306            }
307            if (o instanceof TimeZone) {
308                return ((TimeZone) o).clone();
309            }
310            if (o instanceof Locale) {
311                return ((Locale) o).clone();
312            }
313            if (o instanceof Element) {
314                return ((Element)((Element) o).cloneNode(true));
315            }
316            if (o instanceof JAXBElement) {
317                return copyOFJAXBElement(((JAXBElement) o));
318            }
319            try {
320                return o.getClass().getMethod("clone", ((Class[]) null)).invoke(o, ((Object[]) null));
321            } catch (NoSuchMethodException e) {
322                if (o instanceof Serializable) {
323                    return copyOfSerializable(((Serializable) o));
324                }
325                // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
326                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
327            } catch (IllegalAccessException e) {
328                // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
329                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
330            } catch (InvocationTargetException e) {
331                // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
332                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
333            } catch (SecurityException e) {
334                // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
335                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
336            } catch (IllegalArgumentException e) {
337                // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
338                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
339            } catch (ExceptionInInitializerError e) {
340                // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
341                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
342            }
343        }
344        return null;
345    }
346 
347    /**
348     * Creates and returns a deep copy of a given array.
349     * 
350     * @param array
351     *     The array to copy or {@code null}.
352     * @return
353     *     A deep copy of {@code array} or {@code null} if {@code array} is {@code null}.
354     */
355    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
356    private static Object copyOfArray(final Object array) {
357        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
358        if (array!= null) {
359            if (array.getClass() == boolean[].class) {
360                return copyOf(((boolean[]) array));
361            }
362            if (array.getClass() == byte[].class) {
363                return copyOf(((byte[]) array));
364            }
365            if (array.getClass() == char[].class) {
366                return copyOf(((char[]) array));
367            }
368            if (array.getClass() == double[].class) {
369                return copyOf(((double[]) array));
370            }
371            if (array.getClass() == float[].class) {
372                return copyOf(((float[]) array));
373            }
374            if (array.getClass() == int[].class) {
375                return copyOf(((int[]) array));
376            }
377            if (array.getClass() == long[].class) {
378                return copyOf(((long[]) array));
379            }
380            if (array.getClass() == short[].class) {
381                return copyOf(((short[]) array));
382            }
383            final int len = Array.getLength(array);
384            final Object copy = Array.newInstance(array.getClass().getComponentType(), len);
385            for (int i = (len- 1); (i >= 0); i--) {
386                Array.set(copy, i, copyOfObject(Array.get(array, i)));
387            }
388            return copy;
389        }
390        return null;
391    }
392 
393    /**
394     * Creates and returns a deep copy of a given array.
395     * 
396     * @param array
397     *     The array to copy or {@code null}.
398     * @return
399     *     A deep copy of {@code array} or {@code null} if {@code array} is {@code null}.
400     */
401    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
402    private static boolean[] copyOf(final boolean[] array) {
403        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
404        if (array!= null) {
405            final boolean[] copy = ((boolean[]) Array.newInstance(array.getClass().getComponentType(), array.length));
406            System.arraycopy(array, 0, copy, 0, array.length);
407            return copy;
408        }
409        return null;
410    }
411 
412    /**
413     * Creates and returns a deep copy of a given array.
414     * 
415     * @param array
416     *     The array to copy or {@code null}.
417     * @return
418     *     A deep copy of {@code array} or {@code null} if {@code array} is {@code null}.
419     */
420    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
421    private static byte[] copyOf(final byte[] array) {
422        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
423        if (array!= null) {
424            final byte[] copy = ((byte[]) Array.newInstance(array.getClass().getComponentType(), array.length));
425            System.arraycopy(array, 0, copy, 0, array.length);
426            return copy;
427        }
428        return null;
429    }
430 
431    /**
432     * Creates and returns a deep copy of a given array.
433     * 
434     * @param array
435     *     The array to copy or {@code null}.
436     * @return
437     *     A deep copy of {@code array} or {@code null} if {@code array} is {@code null}.
438     */
439    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
440    private static char[] copyOf(final char[] array) {
441        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
442        if (array!= null) {
443            final char[] copy = ((char[]) Array.newInstance(array.getClass().getComponentType(), array.length));
444            System.arraycopy(array, 0, copy, 0, array.length);
445            return copy;
446        }
447        return null;
448    }
449 
450    /**
451     * Creates and returns a deep copy of a given array.
452     * 
453     * @param array
454     *     The array to copy or {@code null}.
455     * @return
456     *     A deep copy of {@code array} or {@code null} if {@code array} is {@code null}.
457     */
458    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
459    private static double[] copyOf(final double[] array) {
460        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
461        if (array!= null) {
462            final double[] copy = ((double[]) Array.newInstance(array.getClass().getComponentType(), array.length));
463            System.arraycopy(array, 0, copy, 0, array.length);
464            return copy;
465        }
466        return null;
467    }
468 
469    /**
470     * Creates and returns a deep copy of a given array.
471     * 
472     * @param array
473     *     The array to copy or {@code null}.
474     * @return
475     *     A deep copy of {@code array} or {@code null} if {@code array} is {@code null}.
476     */
477    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
478    private static float[] copyOf(final float[] array) {
479        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
480        if (array!= null) {
481            final float[] copy = ((float[]) Array.newInstance(array.getClass().getComponentType(), array.length));
482            System.arraycopy(array, 0, copy, 0, array.length);
483            return copy;
484        }
485        return null;
486    }
487 
488    /**
489     * Creates and returns a deep copy of a given array.
490     * 
491     * @param array
492     *     The array to copy or {@code null}.
493     * @return
494     *     A deep copy of {@code array} or {@code null} if {@code array} is {@code null}.
495     */
496    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
497    private static int[] copyOf(final int[] array) {
498        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
499        if (array!= null) {
500            final int[] copy = ((int[]) Array.newInstance(array.getClass().getComponentType(), array.length));
501            System.arraycopy(array, 0, copy, 0, array.length);
502            return copy;
503        }
504        return null;
505    }
506 
507    /**
508     * Creates and returns a deep copy of a given array.
509     * 
510     * @param array
511     *     The array to copy or {@code null}.
512     * @return
513     *     A deep copy of {@code array} or {@code null} if {@code array} is {@code null}.
514     */
515    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
516    private static long[] copyOf(final long[] array) {
517        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
518        if (array!= null) {
519            final long[] copy = ((long[]) Array.newInstance(array.getClass().getComponentType(), array.length));
520            System.arraycopy(array, 0, copy, 0, array.length);
521            return copy;
522        }
523        return null;
524    }
525 
526    /**
527     * Creates and returns a deep copy of a given array.
528     * 
529     * @param array
530     *     The array to copy or {@code null}.
531     * @return
532     *     A deep copy of {@code array} or {@code null} if {@code array} is {@code null}.
533     */
534    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
535    private static short[] copyOf(final short[] array) {
536        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
537        if (array!= null) {
538            final short[] copy = ((short[]) Array.newInstance(array.getClass().getComponentType(), array.length));
539            System.arraycopy(array, 0, copy, 0, array.length);
540            return copy;
541        }
542        return null;
543    }
544 
545    /**
546     * Creates and returns a deep copy of a given {@code JAXBElement} instance.
547     * 
548     * @param element
549     *     The instance to copy or {@code null}.
550     * @return
551     *     A deep copy of {@code element} or {@code null} if {@code element} is {@code null}.
552     */
553    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
554    private static JAXBElement copyOFJAXBElement(final JAXBElement element) {
555        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
556        if (element!= null) {
557            final JAXBElement copy = new JAXBElement(element.getName(), element.getDeclaredType(), element.getScope(), element.getValue());
558            copy.setNil(element.isNil());
559            copy.setValue(copyOfObject(copy.getValue()));
560            return copy;
561        }
562        return null;
563    }
564 
565    /**
566     * Creates and returns a deep copy of a given {@code Serializable}.
567     * 
568     * @param serializable
569     *     The instance to copy or {@code null}.
570     * @return
571     *     A deep copy of {@code serializable} or {@code null} if {@code serializable} is {@code null}.
572     */
573    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
574    private static Serializable copyOfSerializable(final Serializable serializable) {
575        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
576        if (serializable!= null) {
577            try {
578                final ByteArrayOutputStream byteArrayOutput = new ByteArrayOutputStream();
579                final ObjectOutputStream out = new ObjectOutputStream(byteArrayOutput);
580                out.writeObject(serializable);
581                out.close();
582                final ByteArrayInputStream byteArrayInput = new ByteArrayInputStream(byteArrayOutput.toByteArray());
583                final ObjectInputStream in = new ObjectInputStream(byteArrayInput);
584                final Serializable copy = ((Serializable) in.readObject());
585                in.close();
586                return copy;
587            } catch (SecurityException e) {
588                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
589            } catch (ClassNotFoundException e) {
590                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
591            } catch (InvalidClassException e) {
592                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
593            } catch (NotSerializableException e) {
594                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
595            } catch (StreamCorruptedException e) {
596                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
597            } catch (OptionalDataException e) {
598                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
599            } catch (IOException e) {
600                throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
601            }
602        }
603        return null;
604    }
605 
606    /**
607     * Creates and returns a deep copy of this object.
608     * 
609     * 
610     * @return
611     *     A deep copy of this object.
612     */
613    @Override
614    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
615    public ParameterType clone() {
616        // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
617        return new ParameterType(this);
618    }
619 
620}

[all classes][org.jomc.standalone.model]
EMMA 2.0.5312 (C) Vladimir Roubtsov