Package io.protostuff.compiler.model
Class Extension
- java.lang.Object
-
- io.protostuff.compiler.model.AbstractElement
-
- io.protostuff.compiler.model.Extension
-
- All Implemented Interfaces:
Element,FieldContainer,GroupContainer
public class Extension extends AbstractElement implements FieldContainer, GroupContainer
Extension node.- Author:
- Kostiantyn Shchepanovskyi
-
-
Field Summary
Fields Modifier and Type Field Description protected Messageextendeeprotected StringextendeeNameprotected List<Field>fieldsprotected List<Group>groupsprotected Stringnamespace-
Fields inherited from class io.protostuff.compiler.model.AbstractElement
comments, sourceCodeLocation
-
-
Constructor Summary
Constructors Constructor Description Extension(UserTypeContainer parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(Field field)voidaddGroup(Group group)MessagegetExtendee()StringgetExtendeeName()FieldgetField(int tag)FieldgetField(String name)intgetFieldCount()List<Field>getFields()List<Group>getGroups()StringgetNamespace()UserTypeContainergetParent()voidsetExtendee(Message extendee)voidsetExtendeeName(String extendeeName)voidsetFields(List<Field> fields)voidsetGroups(List<Group> groups)voidsetNamespace(String namespace)StringtoString()-
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
-
Extension
public Extension(UserTypeContainer parent)
-
-
Method Detail
-
getParent
public UserTypeContainer getParent()
-
getNamespace
public String getNamespace()
-
setNamespace
public void setNamespace(String namespace)
-
getExtendeeName
public String getExtendeeName()
-
setExtendeeName
public void setExtendeeName(String extendeeName)
-
getExtendee
public Message getExtendee()
-
setExtendee
public void setExtendee(Message extendee)
-
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
@Nullable 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
-
-