|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
javax.xml.bind.annotation Annotation Type XmlMimeType
@Target(value={FIELD, METHOD, PARAMETER})
关联控制属性 XML 表示形式的 MIME 类型。
此注释与绑定到 XML 中 base64-encoded 二进制数据的数据类型(如 Image
或 Source
)一起使用。
如果包含此注释的属性具有绑定到 xmime:contentType 属性的同级属性,并且该属性的实例中有一个值,那么该属性值具有优先权并且将控制编组。
since | JAXB2.0 |
Associates the MIME type that controls the XML representation of the property.
This annotation is used in conjunction with datatypes such as
Image
or Source
that are bound to base64-encoded binary in XML.
If a property that has this annotation has a sibling property bound to the xmime:contentType attribute, and if in the instance the property has a value, the value of the attribute takes precedence and that will control the marshalling.
- Since:
- JAXB2.0
- Author:
- Kohsuke Kawaguchi
Required Element Summary | |
---|---|
String |
value
The textual representation of the MIME type, such as "image/jpeg" "image/*", "text/xml; charset=iso-8859-1" and so on. |
Element Detail |
---|
abstract public String
value()
MIME 类型的文本表现形式,如 "image/jpeg"、"image/*"、"text/xml; charset=iso-8859-1" 等等。
英文文档:
value
public abstract String value
- The textual representation of the MIME type,
such as "image/jpeg" "image/*", "text/xml; charset=iso-8859-1" and so on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!