com.dyuproject.protostuff
Annotation Type Tag


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Tag

A field annotation to configure the field number explicitly.

Author:
Brice Jaglin, David Yu
Date created:
Mar 30, 2012

Required Element Summary
 int value
           
 
Optional Element Summary
 java.lang.String alias
          Overrides the field name (useful for non-binary formats like json/xml/yaml).
 int groupFilter
          A value of 0x1F means the first 5 groups (1,2,4,8,16 - bits) will include this field.
 

Element Detail

value

public abstract int value

alias

public abstract java.lang.String alias
Overrides the field name (useful for non-binary formats like json/xml/yaml). Optional.

Default:
""

groupFilter

public abstract int groupFilter
A value of 0x1F means the first 5 groups (1,2,4,8,16 - bits) will include this field. A negative value of 0x1F means the first 5 groups will exclude this field. Optional.

Default:
0


Copyright © 2009-2013. All Rights Reserved.