public class EnumGroup extends AnnotationContainer implements HasName, HasOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
EnumGroup.Value |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
ENUM_ALLOW_ALIAS
Disabled by default (the earlier protoc 2.x versions enabled this by default, but was changed later on).
|
| Constructor and Description |
|---|
EnumGroup(String name,
Message parentMessage,
Proto proto) |
| Modifier and Type | Method and Description |
|---|---|
<V> V |
getExtraOption(String key) |
LinkedHashMap<String,Object> |
getExtraOptions() |
EnumGroup.Value |
getFirstValue() |
String |
getFullName() |
String |
getJavaFullName() |
String |
getName() |
LinkedHashMap<String,Object> |
getO() |
LinkedHashMap<String,Object> |
getOptions() |
Message |
getParentMessage() |
Proto |
getProto() |
String |
getRelativeName() |
ArrayList<EnumGroup.Value> |
getSortedValues() |
Object |
getStandardOption(String key) |
LinkedHashMap<String,Object> |
getStandardOptions() |
ArrayList<EnumGroup.Value> |
getUniqueSortedValues() |
EnumGroup.Value |
getValue(int index) |
EnumGroup.Value |
getValue(String name) |
int |
getValueCount() |
LinkedHashMap<String,EnumGroup.Value> |
getValueMap() |
Collection<EnumGroup.Value> |
getValues() |
boolean |
isNested() |
void |
putExtraOption(String key,
Object value) |
void |
putStandardOption(String key,
Object value) |
String |
toString() |
add, addAnnotations, addDoc, err, getA, getAnnotation, getAnnotationMap, getAnnotations, getDocs, hasAnnotation, isEmptyApublic static final boolean ENUM_ALLOW_ALIAS
public String getFullName()
public String getJavaFullName()
public String getRelativeName()
public Message getParentMessage()
public boolean isNested()
public void putStandardOption(String key, Object value)
putStandardOption in interface HasOptionspublic void putExtraOption(String key, Object value)
putExtraOption in interface HasOptionspublic LinkedHashMap<String,Object> getStandardOptions()
public LinkedHashMap<String,Object> getExtraOptions()
public LinkedHashMap<String,Object> getO()
public LinkedHashMap<String,Object> getOptions()
getOptions in interface HasOptionspublic <V> V getExtraOption(String key)
public EnumGroup.Value getValue(int index)
public EnumGroup.Value getValue(String name)
public Collection<EnumGroup.Value> getValues()
public LinkedHashMap<String,EnumGroup.Value> getValueMap()
public ArrayList<EnumGroup.Value> getSortedValues()
public EnumGroup.Value getFirstValue()
public int getValueCount()
public ArrayList<EnumGroup.Value> getUniqueSortedValues()
Copyright © 2009–2021. All rights reserved.