org.gedcomx.rt.json
Annotation Type JsonElementWrapper


@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public @interface JsonElementWrapper

Provides a custom name for a wrapper element for JSON serialization.

Author:
Ryan Heaton

Required Element Summary
 String name
          The name of the JSON property for arrays of this element.
 
Optional Element Summary
 String namespace
          The namespace of the JSON property if this element is added as an extension element.
 

Element Detail

name

public abstract String name
The name of the JSON property for arrays of this element.

Returns:
The name of the JSON property for arrays of this element.

namespace

public abstract String namespace
The namespace of the JSON property if this element is added as an extension element. The namespace will be prepended to the name during JSON serialization. Note the default value is the empty string, which overrides the namespace of @XmlRootElement and @XmlSchema.

Returns:
The namespace of the JSON property if this element is added as an extension element.
Default:
""


Copyright © 2016. All rights reserved.