Package net.morimekta.providence.model
Class ProgramType._Builder
- java.lang.Object
-
- net.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field>
-
- net.morimekta.providence.model.ProgramType._Builder
-
- All Implemented Interfaces:
net.morimekta.providence.PBuilder<ProgramType>,net.morimekta.providence.serializer.binary.BinaryReader
- Enclosing class:
- ProgramType
public static class ProgramType._Builder extends net.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field> implements net.morimekta.providence.serializer.binary.BinaryReader
<namespace>* <include>* <declataion>*
-
-
Constructor Summary
Constructors Constructor Description _Builder()Make a providence_model.ProgramType builder._Builder(ProgramType base)Make a mutating builder off a base providence_model.ProgramType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProgramType._BuilderaddTo(int key, java.lang.Object value)ProgramType._BuilderaddToDecl(Declaration... values)List of declarations in the program file.ProgramType._BuilderaddToIncludes(java.lang.String... values)List of included thrift files.ProgramTypebuild()ProgramType._Builderclear(int key)ProgramType._BuilderclearDecl()List of declarations in the program file.ProgramType._BuilderclearDocumentation()Program documentation must come before the first statement of the header.ProgramType._BuilderclearIncludes()List of included thrift files.ProgramType._BuilderclearNamespaces()Map of language to laguage dependent namespace identifier.ProgramType._BuilderclearProgramName()The program name, deducted from the .thrift IDL file name.net.morimekta.providence.descriptor.PStructDescriptor<ProgramType,ProgramType._Field>descriptor()booleanequals(java.lang.Object o)java.lang.StringgetDocumentation()Program documentation must come before the first statement of the header.java.lang.StringgetProgramName()The program name, deducted from the .thrift IDL file name.inthashCode()booleanisModified(int key)booleanisModifiedDecl()List of declarations in the program file.booleanisModifiedDocumentation()Program documentation must come before the first statement of the header.booleanisModifiedIncludes()List of included thrift files.booleanisModifiedNamespaces()Map of language to laguage dependent namespace identifier.booleanisModifiedProgramName()The program name, deducted from the .thrift IDL file name.booleanisSet(int key)booleanisSetDecl()List of declarations in the program file.booleanisSetDocumentation()Program documentation must come before the first statement of the header.booleanisSetIncludes()List of included thrift files.booleanisSetNamespaces()Map of language to laguage dependent namespace identifier.booleanisSetProgramName()The program name, deducted from the .thrift IDL file name.ProgramType._Buildermerge(ProgramType from)java.util.List<Declaration>mutableDecl()List of declarations in the program file.java.util.List<java.lang.String>mutableIncludes()List of included thrift files.java.util.Map<java.lang.String,java.lang.String>mutableNamespaces()Map of language to laguage dependent namespace identifier.net.morimekta.providence.PMessageBuildermutator(int key)ProgramType._BuilderputInNamespaces(java.lang.String key, java.lang.String value)Map of language to laguage dependent namespace identifier.voidreadBinary(net.morimekta.util.io.BigEndianBinaryReader reader, boolean strict)ProgramType._Builderset(int key, java.lang.Object value)ProgramType._BuildersetDecl(java.util.Collection<Declaration> value)List of declarations in the program file.ProgramType._BuildersetDocumentation(java.lang.String value)Program documentation must come before the first statement of the header.ProgramType._BuildersetIncludes(java.util.Collection<java.lang.String> value)List of included thrift files.ProgramType._BuildersetNamespaces(java.util.Map<java.lang.String,java.lang.String> value)Map of language to laguage dependent namespace identifier.ProgramType._BuildersetProgramName(java.lang.String value)The program name, deducted from the .thrift IDL file name.booleanvalid()voidvalidate()
-
-
-
Constructor Detail
-
_Builder
public _Builder()
Make a providence_model.ProgramType builder.
-
_Builder
public _Builder(ProgramType base)
Make a mutating builder off a base providence_model.ProgramType.- Parameters:
base- The base ProgramType
-
-
Method Detail
-
merge
@Nonnull public ProgramType._Builder merge(ProgramType from)
- Specified by:
mergein classnet.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field>
-
setDocumentation
@Nonnull public ProgramType._Builder setDocumentation(java.lang.String value)
Program documentation must come before the first statement of the header.- Parameters:
value- The new value- Returns:
- The builder
-
isSetDocumentation
public boolean isSetDocumentation()
Program documentation must come before the first statement of the header.- Returns:
- True if documentation has been set.
-
isModifiedDocumentation
public boolean isModifiedDocumentation()
Program documentation must come before the first statement of the header.- Returns:
- True if documentation has been modified.
-
clearDocumentation
@Nonnull public ProgramType._Builder clearDocumentation()
Program documentation must come before the first statement of the header.- Returns:
- The builder
-
getDocumentation
public java.lang.String getDocumentation()
Program documentation must come before the first statement of the header.- Returns:
- The field value
-
setProgramName
@Nonnull public ProgramType._Builder setProgramName(java.lang.String value)
The program name, deducted from the .thrift IDL file name.- Parameters:
value- The new value- Returns:
- The builder
-
isSetProgramName
public boolean isSetProgramName()
The program name, deducted from the .thrift IDL file name.- Returns:
- True if program_name has been set.
-
isModifiedProgramName
public boolean isModifiedProgramName()
The program name, deducted from the .thrift IDL file name.- Returns:
- True if program_name has been modified.
-
clearProgramName
@Nonnull public ProgramType._Builder clearProgramName()
The program name, deducted from the .thrift IDL file name.- Returns:
- The builder
-
getProgramName
public java.lang.String getProgramName()
The program name, deducted from the .thrift IDL file name.- Returns:
- The field value
-
setIncludes
@Nonnull public ProgramType._Builder setIncludes(java.util.Collection<java.lang.String> value)
List of included thrift files. Same as from the actual thrift file.include "<program>.thrift"
- Parameters:
value- The new value- Returns:
- The builder
-
addToIncludes
@Nonnull public ProgramType._Builder addToIncludes(java.lang.String... values)
List of included thrift files. Same as from the actual thrift file.include "<program>.thrift"
- Parameters:
values- The added value- Returns:
- The builder
-
isSetIncludes
public boolean isSetIncludes()
List of included thrift files. Same as from the actual thrift file.include "<program>.thrift"
- Returns:
- True if includes has been set.
-
isModifiedIncludes
public boolean isModifiedIncludes()
List of included thrift files. Same as from the actual thrift file.include "<program>.thrift"
- Returns:
- True if includes has been modified.
-
clearIncludes
@Nonnull public ProgramType._Builder clearIncludes()
List of included thrift files. Same as from the actual thrift file.include "<program>.thrift"
- Returns:
- The builder
-
mutableIncludes
@Nonnull public java.util.List<java.lang.String> mutableIncludes()
List of included thrift files. Same as from the actual thrift file.include "<program>.thrift"
- Returns:
- The field builder
-
setNamespaces
@Nonnull public ProgramType._Builder setNamespaces(java.util.Map<java.lang.String,java.lang.String> value)
Map of language to laguage dependent namespace identifier.namespace <key> <value>
- Parameters:
value- The new value- Returns:
- The builder
-
putInNamespaces
@Nonnull public ProgramType._Builder putInNamespaces(java.lang.String key, java.lang.String value)
Map of language to laguage dependent namespace identifier.namespace <key> <value>
- Parameters:
key- The inserted keyvalue- The inserted value- Returns:
- The builder
-
isSetNamespaces
public boolean isSetNamespaces()
Map of language to laguage dependent namespace identifier.namespace <key> <value>
- Returns:
- True if namespaces has been set.
-
isModifiedNamespaces
public boolean isModifiedNamespaces()
Map of language to laguage dependent namespace identifier.namespace <key> <value>
- Returns:
- True if namespaces has been modified.
-
clearNamespaces
@Nonnull public ProgramType._Builder clearNamespaces()
Map of language to laguage dependent namespace identifier.namespace <key> <value>
- Returns:
- The builder
-
mutableNamespaces
@Nonnull public java.util.Map<java.lang.String,java.lang.String> mutableNamespaces()
Map of language to laguage dependent namespace identifier.namespace <key> <value>
- Returns:
- The field builder
-
setDecl
@Nonnull public ProgramType._Builder setDecl(java.util.Collection<Declaration> value)
List of declarations in the program file. Same order as in the thrift file.- Parameters:
value- The new value- Returns:
- The builder
-
addToDecl
@Nonnull public ProgramType._Builder addToDecl(Declaration... values)
List of declarations in the program file. Same order as in the thrift file.- Parameters:
values- The added value- Returns:
- The builder
-
isSetDecl
public boolean isSetDecl()
List of declarations in the program file. Same order as in the thrift file.- Returns:
- True if decl has been set.
-
isModifiedDecl
public boolean isModifiedDecl()
List of declarations in the program file. Same order as in the thrift file.- Returns:
- True if decl has been modified.
-
clearDecl
@Nonnull public ProgramType._Builder clearDecl()
List of declarations in the program file. Same order as in the thrift file.- Returns:
- The builder
-
mutableDecl
@Nonnull public java.util.List<Declaration> mutableDecl()
List of declarations in the program file. Same order as in the thrift file.- Returns:
- The field builder
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
mutator
public net.morimekta.providence.PMessageBuilder mutator(int key)
- Specified by:
mutatorin classnet.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field>
-
set
@Nonnull public ProgramType._Builder set(int key, java.lang.Object value)
- Specified by:
setin classnet.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field>
-
isSet
public boolean isSet(int key)
- Specified by:
isSetin classnet.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field>
-
isModified
public boolean isModified(int key)
- Specified by:
isModifiedin classnet.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field>
-
addTo
public ProgramType._Builder addTo(int key, java.lang.Object value)
- Specified by:
addToin classnet.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field>
-
clear
@Nonnull public ProgramType._Builder clear(int key)
- Specified by:
clearin classnet.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field>
-
valid
public boolean valid()
- Specified by:
validin classnet.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field>
-
validate
public void validate()
- Specified by:
validatein classnet.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field>
-
descriptor
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<ProgramType,ProgramType._Field> descriptor()
- Specified by:
descriptorin classnet.morimekta.providence.PMessageBuilder<ProgramType,ProgramType._Field>
-
readBinary
public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader, boolean strict) throws java.io.IOException- Specified by:
readBinaryin interfacenet.morimekta.providence.serializer.binary.BinaryReader- Throws:
java.io.IOException
-
build
public ProgramType build()
- Specified by:
buildin interfacenet.morimekta.providence.PBuilder<ProgramType>
-
-