Package io.protostuff.compiler.model
Class AbstractUserTypeContainer
- java.lang.Object
-
- io.protostuff.compiler.model.AbstractElement
-
- io.protostuff.compiler.model.AbstractDescriptor
-
- io.protostuff.compiler.model.AbstractUserTypeContainer
-
- All Implemented Interfaces:
Descriptor,Element,EnumContainer,ExtensionContainer,MessageContainer,UserTypeContainer
public abstract class AbstractUserTypeContainer extends AbstractDescriptor implements UserTypeContainer
Container for user types. Protocol buffers have two main elements that can contain children - proto file node and message.- Author:
- Kostiantyn Shchepanovskyi
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Extension>declaredExtensionsprotected List<Enum>enumsprotected List<Message>messagesprotected UserTypeContainerparent-
Fields inherited from class io.protostuff.compiler.model.AbstractDescriptor
name, options
-
Fields inherited from class io.protostuff.compiler.model.AbstractElement
comments, sourceCodeLocation
-
-
Constructor Summary
Constructors Constructor Description AbstractUserTypeContainer(UserTypeContainer parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDeclaredExtension(Extension extension)voidaddEnum(Enum e)voidaddMessage(Message message)List<Extension>getDeclaredExtensions()List<Enum>getEnums()List<Message>getMessages()UserTypeContainergetParent()voidsetEnums(List<Enum> enums)-
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, toString, wait, wait, wait
-
Methods inherited from interface io.protostuff.compiler.model.Descriptor
getDescriptorType, getName, getOptions
-
Methods inherited from interface io.protostuff.compiler.model.Element
getCommentLines, getComments, getSourceCodeLocation
-
Methods inherited from interface io.protostuff.compiler.model.EnumContainer
getEnum
-
Methods inherited from interface io.protostuff.compiler.model.MessageContainer
getMessage
-
Methods inherited from interface io.protostuff.compiler.model.UserTypeContainer
getNamespace
-
-
-
-
Constructor Detail
-
AbstractUserTypeContainer
public AbstractUserTypeContainer(UserTypeContainer parent)
-
-
Method Detail
-
getParent
public UserTypeContainer getParent()
-
getMessages
public List<Message> getMessages()
- Specified by:
getMessagesin interfaceMessageContainer
-
addMessage
public void addMessage(Message message)
- Specified by:
addMessagein interfaceMessageContainer
-
getEnums
public List<Enum> getEnums()
- Specified by:
getEnumsin interfaceEnumContainer
-
addEnum
public void addEnum(Enum e)
- Specified by:
addEnumin interfaceEnumContainer
-
getDeclaredExtensions
public List<Extension> getDeclaredExtensions()
- Specified by:
getDeclaredExtensionsin interfaceExtensionContainer
-
addDeclaredExtension
public void addDeclaredExtension(Extension extension)
- Specified by:
addDeclaredExtensionin interfaceExtensionContainer
-
-