XmlMimeType (Java EE 5)

Java EE API


javax.xml.bind.annotation Annotation Type XmlMimeType


@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD,PARAMETER})
public @interface XmlMimeType

Implements: Annotation
@Retention(value=RUNTIME)
@Target(value={FIELD, METHOD, PARAMETER})

关联控制属性 XML 表示形式的 MIME 类型。

此注释与绑定到 XML 中 base64-encoded 二进制数据的数据类型(如 ImageSource)一起使用。

如果包含此注释的属性具有绑定到 xmime:contentType 属性的同级属性,并且该属性的实例中有一个值,那么该属性值具有优先权并且将控制编组。

英文文档:

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
 

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.



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!