public static class EnumValue._Builder extends PMessageBuilder<EnumValue,EnumValue._Field> implements BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a pmodel.EnumValue builder instance.
|
_Builder(EnumValue base)
Make a mutating builder off a base pmodel.EnumValue.
|
| Modifier and Type | Method and Description |
|---|---|
EnumValue._Builder |
addTo(int key,
Object value) |
EnumValue |
build() |
EnumValue._Builder |
clear(int key) |
EnumValue._Builder |
clearAnnotations()
Clear the
annotations field. |
EnumValue._Builder |
clearDocumentation()
Clear the
documentation field. |
EnumValue._Builder |
clearEndPos()
Clear the
end_pos field. |
EnumValue._Builder |
clearId()
Clear the
id field. |
EnumValue._Builder |
clearName()
Clear the
name field. |
EnumValue._Builder |
clearStartPos()
Clear the
start_pos field. |
PStructDescriptor<EnumValue,EnumValue._Field> |
descriptor() |
boolean |
equals(Object o) |
String |
getDocumentation() |
FilePos |
getEndPos()
The end of the definition (position of ';' or last pos of value)
|
int |
getId() |
String |
getName() |
FilePos |
getStartPos()
The start of the definition (position of 'name')
|
int |
hashCode() |
boolean |
isModified(int key) |
boolean |
isModifiedAnnotations()
Checks if the
annotations field has been modified since the
builder was created. |
boolean |
isModifiedDocumentation()
Checks if the
documentation field has been modified since the
builder was created. |
boolean |
isModifiedEndPos()
Checks if the
end_pos field has been modified since the
builder was created. |
boolean |
isModifiedId()
Checks if the
id field has been modified since the
builder was created. |
boolean |
isModifiedName()
Checks if the
name field has been modified since the
builder was created. |
boolean |
isModifiedStartPos()
Checks if the
start_pos field has been modified since the
builder was created. |
boolean |
isSet(int key) |
boolean |
isSetAnnotations()
Checks for presence of the
annotations field. |
boolean |
isSetDocumentation()
Checks for presence of the
documentation field. |
boolean |
isSetEndPos()
Checks for presence of the
end_pos field. |
boolean |
isSetId()
Checks for presence of the
id field. |
boolean |
isSetName()
Checks for presence of the
name field. |
boolean |
isSetStartPos()
Checks for presence of the
start_pos field. |
EnumValue._Builder |
merge(EnumValue from) |
Map<String,String> |
mutableAnnotations()
Get the builder for the contained
annotations message field. |
FilePos._Builder |
mutableEndPos()
Get the builder for the contained
end_pos message field. |
FilePos._Builder |
mutableStartPos()
Get the builder for the contained
start_pos message field. |
PMessageBuilder |
mutator(int key) |
EnumValue._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to the
annotations map. |
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
EnumValue._Builder |
set(int key,
Object value) |
EnumValue._Builder |
setAnnotations(Map<String,String> value)
Set the
annotations field value. |
EnumValue._Builder |
setDocumentation(String value)
Set the
documentation field value. |
EnumValue._Builder |
setEndPos(FilePos._Builder builder)
Set the
end_pos field value. |
EnumValue._Builder |
setEndPos(FilePos value)
Set the
end_pos field value. |
EnumValue._Builder |
setId(int value)
Set the
id field value. |
EnumValue._Builder |
setName(String value)
Set the
name field value. |
EnumValue._Builder |
setStartPos(FilePos._Builder builder)
Set the
start_pos field value. |
EnumValue._Builder |
setStartPos(FilePos value)
Set the
start_pos field value. |
boolean |
valid() |
void |
validate() |
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, setpublic _Builder()
public _Builder(EnumValue base)
base - The base EnumValue@Nonnull public EnumValue._Builder merge(EnumValue from)
merge in class PMessageBuilder<EnumValue,EnumValue._Field>@Nonnull public EnumValue._Builder setDocumentation(String value)
documentation field value.value - The new valuepublic boolean isSetDocumentation()
documentation field.public boolean isModifiedDocumentation()
documentation field has been modified since the
builder was created.@Nonnull public EnumValue._Builder clearDocumentation()
documentation field.public String getDocumentation()
documentation field value@Nonnull public EnumValue._Builder setName(String value)
name field value.value - The new valuepublic boolean isSetName()
name field.public boolean isModifiedName()
name field has been modified since the
builder was created.@Nonnull public EnumValue._Builder clearName()
name field.public String getName()
name field value@Nonnull public EnumValue._Builder setId(int value)
id field value.value - The new valuepublic boolean isSetId()
id field.public boolean isModifiedId()
id field has been modified since the
builder was created.@Nonnull public EnumValue._Builder clearId()
id field.public int getId()
id field value@Nonnull public EnumValue._Builder setAnnotations(Map<String,String> value)
annotations field value.value - The new value@Nonnull public EnumValue._Builder putInAnnotations(String key, String value)
annotations map.key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
annotations field.public boolean isModifiedAnnotations()
annotations field has been modified since the
builder was created.@Nonnull public EnumValue._Builder clearAnnotations()
annotations field.@Nonnull public Map<String,String> mutableAnnotations()
annotations message field.@Nonnull public EnumValue._Builder setStartPos(FilePos value)
start_pos field value.
The start of the definition (position of 'name')
value - The new value@Nonnull public EnumValue._Builder setStartPos(FilePos._Builder builder)
start_pos field value.
The start of the definition (position of 'name')
builder - builder for the new valuepublic boolean isSetStartPos()
start_pos field.public boolean isModifiedStartPos()
start_pos field has been modified since the
builder was created.@Nonnull public EnumValue._Builder clearStartPos()
start_pos field.@Nonnull public FilePos._Builder mutableStartPos()
start_pos message field.
The start of the definition (position of 'name')
public FilePos getStartPos()
@Nonnull public EnumValue._Builder setEndPos(FilePos value)
end_pos field value.
The end of the definition (position of ';' or last pos of value)
value - The new value@Nonnull public EnumValue._Builder setEndPos(FilePos._Builder builder)
end_pos field value.
The end of the definition (position of ';' or last pos of value)
builder - builder for the new valuepublic boolean isSetEndPos()
end_pos field.public boolean isModifiedEndPos()
end_pos field has been modified since the
builder was created.@Nonnull public EnumValue._Builder clearEndPos()
end_pos field.@Nonnull public FilePos._Builder mutableEndPos()
end_pos message field.
The end of the definition (position of ';' or last pos of value)
public FilePos getEndPos()
public PMessageBuilder mutator(int key)
mutator in class PMessageBuilder<EnumValue,EnumValue._Field>@Nonnull public EnumValue._Builder set(int key, Object value)
set in class PMessageBuilder<EnumValue,EnumValue._Field>public boolean isSet(int key)
isSet in class PMessageBuilder<EnumValue,EnumValue._Field>public boolean isModified(int key)
isModified in class PMessageBuilder<EnumValue,EnumValue._Field>public EnumValue._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<EnumValue,EnumValue._Field>@Nonnull public EnumValue._Builder clear(int key)
clear in class PMessageBuilder<EnumValue,EnumValue._Field>public boolean valid()
valid in class PMessageBuilder<EnumValue,EnumValue._Field>public void validate()
validate in class PMessageBuilder<EnumValue,EnumValue._Field>@Nonnull public PStructDescriptor<EnumValue,EnumValue._Field> descriptor()
descriptor in class PMessageBuilder<EnumValue,EnumValue._Field>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface BinaryReaderIOExceptionCopyright © 2015–2018 morimekta.net. All rights reserved.