Annotation Type Named


@Retention(RUNTIME)
@Target({TYPE,FIELD})
@Documented
public @interface Named
Annotation that can be placed on a class that should be serialized to control under which name it is exposed.
Author:
Andreas Holstenson
  • Required Element Summary

    Required Elements 
    Modifier and Type Required Element Description
    String name
    Name of the class.
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    String namespace
    Optional namespace of the class.
  • Element Details

    • namespace

      String namespace
      Optional namespace of the class.
      Returns:
      Default:
      ""