Package io.protostuff.compiler.model
Class Oneof
- java.lang.Object
-
- io.protostuff.compiler.model.AbstractElement
-
- io.protostuff.compiler.model.AbstractDescriptor
-
- io.protostuff.compiler.model.Oneof
-
- All Implemented Interfaces:
Descriptor,Element,FieldContainer,GroupContainer
public class Oneof extends AbstractDescriptor implements FieldContainer, GroupContainer
"oneof" tree node.- Author:
- Kostiantyn Shchepanovskyi
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Field>fieldsprotected List<Group>groupsprotected Stringnamespaceprotected Messageparent-
Fields inherited from class io.protostuff.compiler.model.AbstractDescriptor
name, options
-
Fields inherited from class io.protostuff.compiler.model.AbstractElement
comments, sourceCodeLocation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(Field field)voidaddGroup(Group group)DescriptorTypegetDescriptorType()FieldgetField(int tag)FieldgetField(String name)intgetFieldCount()List<Field>getFields()List<Group>getGroups()StringgetNamespace()MessagegetParent()voidsetFields(List<Field> fields)voidsetGroups(List<Group> groups)voidsetNamespace(String namespace)StringtoString()-
Methods inherited from class io.protostuff.compiler.model.AbstractDescriptor
getName, getOptions, setName
-
Methods inherited from class io.protostuff.compiler.model.AbstractElement
addComment, getCommentLines, getComments, getSourceCodeLocation, setComments, setSourceCodeLocation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.protostuff.compiler.model.Element
getCommentLines, getComments, getSourceCodeLocation
-
-
-
-
Constructor Detail
-
Oneof
public Oneof(Message parent)
-
-
Method Detail
-
getDescriptorType
public DescriptorType getDescriptorType()
- Specified by:
getDescriptorTypein interfaceDescriptor
-
getNamespace
public String getNamespace()
-
setNamespace
public void setNamespace(String namespace)
-
getFields
public List<Field> getFields()
- Specified by:
getFieldsin interfaceFieldContainer
-
setFields
public void setFields(List<Field> fields)
- Specified by:
setFieldsin interfaceFieldContainer
-
getFieldCount
public int getFieldCount()
- Specified by:
getFieldCountin interfaceFieldContainer
-
addField
public void addField(Field field)
- Specified by:
addFieldin interfaceFieldContainer
-
getField
public Field getField(String name)
- Specified by:
getFieldin interfaceFieldContainer
-
getField
public Field getField(int tag)
- Specified by:
getFieldin interfaceFieldContainer
-
getGroups
public List<Group> getGroups()
- Specified by:
getGroupsin interfaceGroupContainer
-
setGroups
public void setGroups(List<Group> groups)
- Specified by:
setGroupsin interfaceGroupContainer
-
addGroup
public void addGroup(Group group)
- Specified by:
addGroupin interfaceGroupContainer
-
-