public static class LocalAddeEntry.Builder extends Object
LocalAddeEntry
instances.
Usage example:
LocalAddeEntry entry = new LocalAddeEntry
.Builder(group, name, format, mask)
.realtime("Y")
.range(start, end)
.type(EntryType.POINT)
.build();
Only the values required by the Builder constructor are required.Modifier and Type | Field and Description |
---|---|
private String |
alias |
private String |
descriptor |
private String |
end
Corresponds to RESOLV.SRV's "R2" section.
|
private LocalAddeEntry.AddeFormat |
format
Corresponds to RESOLV.SRV's "MCV" section.
|
private String |
group
Corresponds to RESOLV.SRV's "N1" section.
|
private String |
kind
Corresponds to RESOLV.SRV's "K" section.
|
private String |
mask
Corresponds to RESOLV.SRV's "MASK" section.
|
private String |
name
Corresponds to RESOLV.SRV's "C" section.
|
private boolean |
realtime
Corresponds to RESOLV.SRV's "RT" section.
|
private LocalAddeEntry.ServerName |
safeKind
Defaults to
LocalAddeEntry.ServerName.INVALID . |
private String |
start
Corresponds to RESOLV.SRV's "R1" section.
|
private AddeEntry.EntryStatus |
status
Defaults to
AddeEntry.EntryStatus.INVALID . |
private boolean |
temporary |
private AddeEntry.EntryType |
type
Corresponds to RESOLV.SRV's "TYPE" section.
|
Constructor and Description |
---|
Builder(Map<String,String> map) |
Builder(String name,
String group,
String mask,
LocalAddeEntry.AddeFormat format)
Creates a new
LocalAddeEntry "builder" with the
required fields for a LocalAddeEntry object. |
Modifier and Type | Method and Description |
---|---|
LocalAddeEntry.Builder |
alias(String alias) |
LocalAddeEntry |
build() |
LocalAddeEntry.Builder |
descriptor(String descriptor)
This method is currently a no-op.
|
LocalAddeEntry.Builder |
end(String end) |
LocalAddeEntry.Builder |
kind(String kind) |
LocalAddeEntry.Builder |
range(String start,
String end) |
LocalAddeEntry.Builder |
realtime(boolean realtime) |
LocalAddeEntry.Builder |
realtime(String realtimeAsStr) |
LocalAddeEntry.Builder |
start(String start) |
LocalAddeEntry.Builder |
status(AddeEntry.EntryStatus status) |
LocalAddeEntry.Builder |
status(String status) |
LocalAddeEntry.Builder |
temporary(boolean temporary) |
LocalAddeEntry.Builder |
temporary(String temporary) |
LocalAddeEntry.Builder |
type(AddeEntry.EntryType type) |
private final LocalAddeEntry.AddeFormat format
private String descriptor
private boolean realtime
false
.private AddeEntry.EntryStatus status
AddeEntry.EntryStatus.INVALID
.private AddeEntry.EntryType type
IMAGE
.private LocalAddeEntry.ServerName safeKind
LocalAddeEntry.ServerName.INVALID
.private boolean temporary
public Builder(String name, String group, String mask, LocalAddeEntry.AddeFormat format)
LocalAddeEntry
"builder" with the
required fields for a LocalAddeEntry
object.name
- Name of the local ADDE dataset.group
- ADDE group name.mask
- Local file mask.format
- Type of data.public LocalAddeEntry.Builder descriptor(String descriptor)
descriptor
- Local ADDE entry descriptor. Currently ignored.LocalAddeEntry.Builder
with ADDE descriptor.public LocalAddeEntry.Builder realtime(String realtimeAsStr)
realtimeAsStr
- Whether or not the local ADDE entry is
"real time".LocalAddeEntry.Builder
with ADDE realtime flag.public LocalAddeEntry.Builder realtime(boolean realtime)
realtime
- Whether or not the local ADDE entry is
"real time".LocalAddeEntry.Builder
with ADDE realtime flag.public LocalAddeEntry.Builder type(AddeEntry.EntryType type)
type
- ADDE data type.LocalAddeEntry.Builder
with ADDE data type.public LocalAddeEntry.Builder kind(String kind)
kind
- ADDE server binary used to handle data.LocalAddeEntry.Builder
with ADDE kind.public LocalAddeEntry.Builder start(String start)
start
- Beginning of local ADDE dataset.LocalAddeEntry.Builder
with ADDE dataset
"start".public LocalAddeEntry.Builder end(String end)
end
- End of local ADDE dataset.LocalAddeEntry.Builder
with ADDE dataset
"end".public LocalAddeEntry.Builder range(String start, String end)
start
- Beginning of local ADDE dataset.end
- End of local ADDE dataset.LocalAddeEntry.Builder
with ADDE dataset
"start" and "end" values.public LocalAddeEntry.Builder status(String status)
status
- String representation of local ADDE entry status.LocalAddeEntry.Builder
with
AddeEntry.EntryStatus
.public LocalAddeEntry.Builder status(AddeEntry.EntryStatus status)
status
- Local ADDE entry status.LocalAddeEntry.Builder
with
AddeEntry.EntryStatus
.public LocalAddeEntry.Builder temporary(boolean temporary)
temporary
- Whether or not the local ADDE entry will be saved
between application sessions.LocalAddeEntry.Builder
with the specified temporary
status.public LocalAddeEntry.Builder temporary(String temporary)
public LocalAddeEntry.Builder alias(String alias)
alias
- Set an alias to use for the local ADDE entry.LocalAddeEntry.Builder
with the specified alias.public LocalAddeEntry build()
LocalAddeEntry
instance.