src/share/jaxws_classes/javax/xml/bind/annotation/XmlMimeType.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
1 /* 1 /*
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
25 25
26 package javax.xml.bind.annotation; 26 package javax.xml.bind.annotation;
27 27
28 import java.lang.annotation.Retention; 28 import java.lang.annotation.Retention;
29 import java.lang.annotation.Target; 29 import java.lang.annotation.Target;
30 import java.awt.*;
31 import static java.lang.annotation.RetentionPolicy.RUNTIME; 30 import static java.lang.annotation.RetentionPolicy.RUNTIME;
32 import static java.lang.annotation.ElementType.FIELD; 31 import static java.lang.annotation.ElementType.FIELD;
33 import static java.lang.annotation.ElementType.METHOD; 32 import static java.lang.annotation.ElementType.METHOD;
34 import static java.lang.annotation.ElementType.PARAMETER; 33 import static java.lang.annotation.ElementType.PARAMETER;
35 34
38 /** 37 /**
39 * Associates the MIME type that controls the XML representation of the property. 38 * Associates the MIME type that controls the XML representation of the property.
40 * 39 *
41 * <p> 40 * <p>
42 * This annotation is used in conjunction with datatypes such as 41 * This annotation is used in conjunction with datatypes such as
43 * {@link Image} or {@link Source} that are bound to base64-encoded binary in XML. 42 * {@link java.awt.Image} or {@link Source} that are bound to base64-encoded binary in XML.
44 * 43 *
45 * <p> 44 * <p>
46 * If a property that has this annotation has a sibling property bound to 45 * If a property that has this annotation has a sibling property bound to
47 * the xmime:contentType attribute, and if in the instance the property has a value, 46 * the xmime:contentType attribute, and if in the instance the property has a value,
48 * the value of the attribute takes precedence and that will control the marshalling. 47 * the value of the attribute takes precedence and that will control the marshalling.

mercurial