public static class ProgramMeta._Builder extends PMessageBuilder<ProgramMeta,ProgramMeta._Field> implements BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a pmodel.ProgramMeta builder instance.
|
_Builder(ProgramMeta base)
Make a mutating builder off a base pmodel.ProgramMeta.
|
| Modifier and Type | Method and Description |
|---|---|
ProgramMeta._Builder |
addTo(int key,
Object value) |
ProgramMeta._Builder |
addToFileLines(String... values)
Adds entries to the
file_lines list. |
ProgramMeta |
build() |
ProgramMeta._Builder |
clear(int key) |
ProgramMeta._Builder |
clearFileLines()
Clear the
file_lines field. |
ProgramMeta._Builder |
clearFilePath()
Clear the
file_path field. |
ProgramMeta._Builder |
clearIncludes()
Clear the
includes field. |
ProgramMeta._Builder |
clearProgram()
Clear the
program field. |
PStructDescriptor<ProgramMeta,ProgramMeta._Field> |
descriptor() |
boolean |
equals(Object o) |
String |
getFilePath()
Full absolute path to the file.
|
ProgramType |
getProgram()
The program type definition
|
int |
hashCode() |
boolean |
isModified(int key) |
boolean |
isModifiedFileLines()
Checks if the
file_lines field has been modified since the
builder was created. |
boolean |
isModifiedFilePath()
Checks if the
file_path field has been modified since the
builder was created. |
boolean |
isModifiedIncludes()
Checks if the
includes field has been modified since the
builder was created. |
boolean |
isModifiedProgram()
Checks if the
program field has been modified since the
builder was created. |
boolean |
isSet(int key) |
boolean |
isSetFileLines()
Checks for presence of the
file_lines field. |
boolean |
isSetFilePath()
Checks for presence of the
file_path field. |
boolean |
isSetIncludes()
Checks for presence of the
includes field. |
boolean |
isSetProgram()
Checks for presence of the
program field. |
ProgramMeta._Builder |
merge(ProgramMeta from) |
List<String> |
mutableFileLines()
Get the builder for the contained
file_lines message field. |
Map<String,ProgramMeta> |
mutableIncludes()
Get the builder for the contained
includes message field. |
ProgramType._Builder |
mutableProgram()
Get the builder for the contained
program message field. |
PMessageBuilder |
mutator(int key) |
ProgramMeta._Builder |
putInIncludes(String key,
ProgramMeta value)
Adds a mapping to the
includes map. |
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
ProgramMeta._Builder |
set(int key,
Object value) |
ProgramMeta._Builder |
setFileLines(Collection<String> value)
Set the
file_lines field value. |
ProgramMeta._Builder |
setFilePath(String value)
Set the
file_path field value. |
ProgramMeta._Builder |
setIncludes(Map<String,ProgramMeta> value)
Set the
includes field value. |
ProgramMeta._Builder |
setProgram(ProgramType._Builder builder)
Set the
program field value. |
ProgramMeta._Builder |
setProgram(ProgramType value)
Set the
program field value. |
boolean |
valid() |
void |
validate() |
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, setpublic _Builder()
public _Builder(ProgramMeta base)
base - The base ProgramMeta@Nonnull public ProgramMeta._Builder merge(ProgramMeta from)
merge in class PMessageBuilder<ProgramMeta,ProgramMeta._Field>@Nonnull public ProgramMeta._Builder setFilePath(String value)
file_path field value.
Full absolute path to the file.
value - The new valuepublic boolean isSetFilePath()
file_path field.public boolean isModifiedFilePath()
file_path field has been modified since the
builder was created.@Nonnull public ProgramMeta._Builder clearFilePath()
file_path field.public String getFilePath()
file_path field value@Nonnull public ProgramMeta._Builder setFileLines(Collection<String> value)
file_lines field value.
The lines of the program file
value - The new value@Nonnull public ProgramMeta._Builder addToFileLines(String... values)
file_lines list.
The lines of the program file
values - The added valuepublic boolean isSetFileLines()
file_lines field.public boolean isModifiedFileLines()
file_lines field has been modified since the
builder was created.@Nonnull public ProgramMeta._Builder clearFileLines()
file_lines field.@Nonnull public List<String> mutableFileLines()
file_lines message field.
The lines of the program file
@Nonnull public ProgramMeta._Builder setProgram(ProgramType value)
program field value.
The program type definition
value - The new value@Nonnull public ProgramMeta._Builder setProgram(ProgramType._Builder builder)
program field value.
The program type definition
builder - builder for the new valuepublic boolean isSetProgram()
program field.public boolean isModifiedProgram()
program field has been modified since the
builder was created.@Nonnull public ProgramMeta._Builder clearProgram()
program field.@Nonnull public ProgramType._Builder mutableProgram()
program message field.
The program type definition
public ProgramType getProgram()
@Nonnull public ProgramMeta._Builder setIncludes(Map<String,ProgramMeta> value)
includes field value.
Map of program name to meta of included programs
value - The new value@Nonnull public ProgramMeta._Builder putInIncludes(String key, ProgramMeta value)
includes map.
Map of program name to meta of included programs
key - The inserted keyvalue - The inserted valuepublic boolean isSetIncludes()
includes field.public boolean isModifiedIncludes()
includes field has been modified since the
builder was created.@Nonnull public ProgramMeta._Builder clearIncludes()
includes field.@Nonnull public Map<String,ProgramMeta> mutableIncludes()
includes message field.
Map of program name to meta of included programs
public PMessageBuilder mutator(int key)
mutator in class PMessageBuilder<ProgramMeta,ProgramMeta._Field>@Nonnull public ProgramMeta._Builder set(int key, Object value)
set in class PMessageBuilder<ProgramMeta,ProgramMeta._Field>public boolean isSet(int key)
isSet in class PMessageBuilder<ProgramMeta,ProgramMeta._Field>public boolean isModified(int key)
isModified in class PMessageBuilder<ProgramMeta,ProgramMeta._Field>public ProgramMeta._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<ProgramMeta,ProgramMeta._Field>@Nonnull public ProgramMeta._Builder clear(int key)
clear in class PMessageBuilder<ProgramMeta,ProgramMeta._Field>public boolean valid()
valid in class PMessageBuilder<ProgramMeta,ProgramMeta._Field>public void validate()
validate in class PMessageBuilder<ProgramMeta,ProgramMeta._Field>@Nonnull public PStructDescriptor<ProgramMeta,ProgramMeta._Field> descriptor()
descriptor in class PMessageBuilder<ProgramMeta,ProgramMeta._Field>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface BinaryReaderIOExceptionpublic ProgramMeta build()
build in interface PBuilder<ProgramMeta>Copyright © 2015–2018 morimekta.net. All rights reserved.