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

COVERAGE SUMMARY FOR SOURCE FILE [ExceptionType.java]

nameclass, %method, %block, %line, %
ExceptionType.java100% (1/1)12%  (3/24)2%   (14/882)2%   (4.5/200)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ExceptionType100% (1/1)12%  (3/24)2%   (14/882)2%   (4.5/200)
ExceptionType (ExceptionType): void 0%   (0/1)0%   (0/38)0%   (0/10)
clone (): ExceptionType 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)
isRollback (): boolean 0%   (0/1)0%   (0/9)0%   (0/3)
setClazz (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
setRollback (Boolean): void 0%   (0/1)0%   (0/4)0%   (0/2)
setTargetClass (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
ExceptionType (): void 100% (1/1)100% (8/8)100% (3/3)
getClazz (): String 100% (1/1)100% (3/3)100% (1/1)
getTargetClass (): String 100% (1/1)100% (3/3)100% (1/1)

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

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