@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface XmlInclude
XMLSchemaGenerator
. Example:
@XmlInclude(schema="relay.xsd",type=Type.IMPORT,namespace="urn:jgroups:relay:1.0",alias="relay")results in the following include in the schema element:
<xs:schema... xmlns:relay="urn:jgroups:relay:1.0" /> ... <xs:import schemaLocation="fork-stacks.xsd" namespace="urn:jgroups:relay:1.0" />
限定符和类型 | 可选元素和说明 |
---|---|
java.lang.String |
alias |
java.lang.String |
namespace |
java.lang.String[] |
schema |
XmlInclude.Type |
type |
public abstract XmlInclude.Type type
public abstract java.lang.String[] schema
public abstract java.lang.String namespace
public abstract java.lang.String alias