Annotation Type XmlElement


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface XmlElement
    Annotation to generate an element in the schema created by XMLSchemaGenerator. Example:

     @XmlElement(name="fork-stacks" type="ForkStacksType")
     
    This results in the following schema fragment:
         <xs:element name="fork-stacks" type="ForkStacksType"/>
     
    Since:
    3.5
    Author:
    Bela Ban
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String name  
      java.lang.String type  
    • Element Detail

      • name

        java.lang.String name
      • type

        java.lang.String type