Package net.morimekta.providence.model
Class TypedefType._Builder
- java.lang.Object
-
- net.morimekta.providence.PMessageBuilder<TypedefType,TypedefType._Field>
-
- net.morimekta.providence.model.TypedefType._Builder
-
- All Implemented Interfaces:
net.morimekta.providence.PBuilder<TypedefType>,net.morimekta.providence.serializer.binary.BinaryReader
- Enclosing class:
- TypedefType
public static class TypedefType._Builder extends net.morimekta.providence.PMessageBuilder<TypedefType,TypedefType._Field> implements net.morimekta.providence.serializer.binary.BinaryReader
typedef <type> <name>
-
-
Constructor Summary
Constructors Constructor Description _Builder()Make a pmodel.TypedefType builder instance._Builder(TypedefType base)Make a mutating builder off a base pmodel.TypedefType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedefType._BuilderaddTo(int key, java.lang.Object value)TypedefTypebuild()TypedefType._Builderclear(int key)TypedefType._BuilderclearDocumentation()Clear thedocumentationfield.TypedefType._BuilderclearEndPos()Clear theend_posfield.TypedefType._BuilderclearName()Clear thenamefield.TypedefType._BuilderclearStartPos()Clear thestart_posfield.TypedefType._BuilderclearType()Clear thetypefield.net.morimekta.providence.descriptor.PStructDescriptor<TypedefType,TypedefType._Field>descriptor()booleanequals(java.lang.Object o)java.lang.StringgetDocumentation()FilePosgetEndPos()The end of the definitionjava.lang.StringgetName()FilePosgetStartPos()The start of the definition (position of 'typedef')java.lang.StringgetType()inthashCode()booleanisModified(int key)booleanisModifiedDocumentation()Checks if thedocumentationfield has been modified since the builder was created.booleanisModifiedEndPos()Checks if theend_posfield has been modified since the builder was created.booleanisModifiedName()Checks if thenamefield has been modified since the builder was created.booleanisModifiedStartPos()Checks if thestart_posfield has been modified since the builder was created.booleanisModifiedType()Checks if thetypefield has been modified since the builder was created.booleanisSet(int key)booleanisSetDocumentation()Checks for presence of thedocumentationfield.booleanisSetEndPos()Checks for presence of theend_posfield.booleanisSetName()Checks for presence of thenamefield.booleanisSetStartPos()Checks for presence of thestart_posfield.booleanisSetType()Checks for presence of thetypefield.TypedefType._Buildermerge(TypedefType from)FilePos._BuildermutableEndPos()Get the builder for the containedend_posmessage field.FilePos._BuildermutableStartPos()Get the builder for the containedstart_posmessage field.net.morimekta.providence.PMessageBuildermutator(int key)voidreadBinary(net.morimekta.util.io.BigEndianBinaryReader reader, boolean strict)TypedefType._Builderset(int key, java.lang.Object value)TypedefType._BuildersetDocumentation(java.lang.String value)Set thedocumentationfield value.TypedefType._BuildersetEndPos(FilePos value)Set theend_posfield value.TypedefType._BuildersetEndPos(FilePos._Builder builder)Set theend_posfield value.TypedefType._BuildersetName(java.lang.String value)Set thenamefield value.TypedefType._BuildersetStartPos(FilePos value)Set thestart_posfield value.TypedefType._BuildersetStartPos(FilePos._Builder builder)Set thestart_posfield value.TypedefType._BuildersetType(java.lang.String value)Set thetypefield value.booleanvalid()voidvalidate()
-
-
-
Constructor Detail
-
_Builder
public _Builder()
Make a pmodel.TypedefType builder instance.
-
_Builder
public _Builder(TypedefType base)
Make a mutating builder off a base pmodel.TypedefType.- Parameters:
base- The base TypedefType
-
-
Method Detail
-
merge
@Nonnull public TypedefType._Builder merge(TypedefType from)
- Specified by:
mergein classnet.morimekta.providence.PMessageBuilder<TypedefType,TypedefType._Field>
-
setDocumentation
@Nonnull public TypedefType._Builder setDocumentation(java.lang.String value)
Set thedocumentationfield value.- Parameters:
value- The new value- Returns:
- The builder
-
isSetDocumentation
public boolean isSetDocumentation()
Checks for presence of thedocumentationfield.- Returns:
- True if documentation has been set.
-
isModifiedDocumentation
public boolean isModifiedDocumentation()
Checks if thedocumentationfield has been modified since the builder was created.- Returns:
- True if documentation has been modified.
-
clearDocumentation
@Nonnull public TypedefType._Builder clearDocumentation()
Clear thedocumentationfield.- Returns:
- The builder
-
getDocumentation
public java.lang.String getDocumentation()
- Returns:
- The
documentationfield value
-
setType
@Nonnull public TypedefType._Builder setType(java.lang.String value)
Set thetypefield value.- Parameters:
value- The new value- Returns:
- The builder
-
isSetType
public boolean isSetType()
Checks for presence of thetypefield.- Returns:
- True if type has been set.
-
isModifiedType
public boolean isModifiedType()
Checks if thetypefield has been modified since the builder was created.- Returns:
- True if type has been modified.
-
clearType
@Nonnull public TypedefType._Builder clearType()
Clear thetypefield.- Returns:
- The builder
-
getType
public java.lang.String getType()
- Returns:
- The
typefield value
-
setName
@Nonnull public TypedefType._Builder setName(java.lang.String value)
Set thenamefield value.- Parameters:
value- The new value- Returns:
- The builder
-
isSetName
public boolean isSetName()
Checks for presence of thenamefield.- Returns:
- True if name has been set.
-
isModifiedName
public boolean isModifiedName()
Checks if thenamefield has been modified since the builder was created.- Returns:
- True if name has been modified.
-
clearName
@Nonnull public TypedefType._Builder clearName()
Clear thenamefield.- Returns:
- The builder
-
getName
public java.lang.String getName()
- Returns:
- The
namefield value
-
setStartPos
@Nonnull public TypedefType._Builder setStartPos(FilePos value)
Set thestart_posfield value.The start of the definition (position of 'typedef')
- Parameters:
value- The new value- Returns:
- The builder
-
setStartPos
@Nonnull public TypedefType._Builder setStartPos(FilePos._Builder builder)
Set thestart_posfield value.The start of the definition (position of 'typedef')
- Parameters:
builder- builder for the new value- Returns:
- The builder
-
isSetStartPos
public boolean isSetStartPos()
Checks for presence of thestart_posfield.- Returns:
- True if start_pos has been set.
-
isModifiedStartPos
public boolean isModifiedStartPos()
Checks if thestart_posfield has been modified since the builder was created.- Returns:
- True if start_pos has been modified.
-
clearStartPos
@Nonnull public TypedefType._Builder clearStartPos()
Clear thestart_posfield.- Returns:
- The builder
-
mutableStartPos
@Nonnull public FilePos._Builder mutableStartPos()
Get the builder for the containedstart_posmessage field.The start of the definition (position of 'typedef')
- Returns:
- The field message builder
-
getStartPos
public FilePos getStartPos()
The start of the definition (position of 'typedef')- Returns:
- The field value
-
setEndPos
@Nonnull public TypedefType._Builder setEndPos(FilePos value)
Set theend_posfield value.The end of the definition
- Parameters:
value- The new value- Returns:
- The builder
-
setEndPos
@Nonnull public TypedefType._Builder setEndPos(FilePos._Builder builder)
Set theend_posfield value.The end of the definition
- Parameters:
builder- builder for the new value- Returns:
- The builder
-
isSetEndPos
public boolean isSetEndPos()
Checks for presence of theend_posfield.- Returns:
- True if end_pos has been set.
-
isModifiedEndPos
public boolean isModifiedEndPos()
Checks if theend_posfield has been modified since the builder was created.- Returns:
- True if end_pos has been modified.
-
clearEndPos
@Nonnull public TypedefType._Builder clearEndPos()
Clear theend_posfield.- Returns:
- The builder
-
mutableEndPos
@Nonnull public FilePos._Builder mutableEndPos()
Get the builder for the containedend_posmessage field.The end of the definition
- Returns:
- The field message builder
-
getEndPos
public FilePos getEndPos()
The end of the definition- Returns:
- The field value
-
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<TypedefType,TypedefType._Field>
-
set
@Nonnull public TypedefType._Builder set(int key, java.lang.Object value)
- Specified by:
setin classnet.morimekta.providence.PMessageBuilder<TypedefType,TypedefType._Field>
-
isSet
public boolean isSet(int key)
- Specified by:
isSetin classnet.morimekta.providence.PMessageBuilder<TypedefType,TypedefType._Field>
-
isModified
public boolean isModified(int key)
- Specified by:
isModifiedin classnet.morimekta.providence.PMessageBuilder<TypedefType,TypedefType._Field>
-
addTo
@Nonnull public TypedefType._Builder addTo(int key, java.lang.Object value)
- Specified by:
addToin classnet.morimekta.providence.PMessageBuilder<TypedefType,TypedefType._Field>
-
clear
@Nonnull public TypedefType._Builder clear(int key)
- Specified by:
clearin classnet.morimekta.providence.PMessageBuilder<TypedefType,TypedefType._Field>
-
valid
public boolean valid()
- Specified by:
validin classnet.morimekta.providence.PMessageBuilder<TypedefType,TypedefType._Field>
-
validate
public void validate()
- Specified by:
validatein classnet.morimekta.providence.PMessageBuilder<TypedefType,TypedefType._Field>
-
descriptor
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<TypedefType,TypedefType._Field> descriptor()
- Specified by:
descriptorin classnet.morimekta.providence.PMessageBuilder<TypedefType,TypedefType._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 TypedefType build()
- Specified by:
buildin interfacenet.morimekta.providence.PBuilder<TypedefType>
-
-