Annotation Type XmlInclude


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface XmlInclude
    Used to include other schemas by 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" />
     
    Since:
    3.5
    Author:
    Bela Ban
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String alias  
      java.lang.String namespace  
      java.lang.String[] schema  
      XmlInclude.Type type  
    • Element Detail

      • type

        XmlInclude.Type type
        Default:
        org.jgroups.annotations.XmlInclude.Type.INCLUDE
      • schema

        java.lang.String[] schema
        Default:
        {}
      • namespace

        java.lang.String namespace
        Default:
        ""
      • alias

        java.lang.String alias
        Default:
        ""