/** * Writes the end of the JSON object representing the packet. */ @Override protected void onClose() { getOutput().writeEndObject(); }
/** * Writes the value expressed as a {@code id}, which is the ID of the object described by this packet. IDs do not need to be GUIDs, but they do need to uniquely identify a single object within a CZML source and any other CZML sources loaded into the same scope. If this property is not specified, the client will automatically generate a unique one. However, this prevents later packets from referring to this object in order to add more data to it. * @param value The value. */ public final void writeId(String value) { final String PropertyName = IdPropertyName; getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }
/** * Writes the value expressed as a {@code name}, which is the name of the object. It does not have to be unique and is intended for user consumption. * @param value The value. */ public final void writeName(String value) { final String PropertyName = NamePropertyName; getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }
/** * Writes the start of a new JSON object representing the packet. */ @Override protected void onOpen() { getOutput().writeStartObject(); }
/** * Writes the value expressed as a {@code parent}, which is the ID of the parent object, if any. * @param value The value. */ public final void writeParent(String value) { final String PropertyName = ParentPropertyName; getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }
/** * Writes the value expressed as a {@code delete}, which is whether the client should delete all existing data for this object, identified by ID. If true, all other properties in this packet will be ignored. * @param value The value. */ public final void writeDelete(boolean value) { final String PropertyName = DeletePropertyName; getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }
/** * Writes the value expressed as a {@code version}, which is the CZML version being written. Only valid on the document object. * @param value The value. */ public final void writeVersion(String value) { final String PropertyName = VersionPropertyName; getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }
/** * Writes the value expressed as a {@code availability}, which is the set of time intervals over which data for an object is available. The property can be a single string specifying a single interval, or an array of strings representing intervals. A later Cesium packet can update this availability if it changes or is found to be incorrect. For example, an SGP4 propagator may initially report availability for all time, but then later the propagator throws an exception and the availability can be adjusted to end at that time. If this optional property is not present, the object is assumed to be available for all time. Availability is scoped to a particular CZML stream, so two different streams can list different availability for a single object. Within a single stream, the last availability stated for an object is the one in effect and any availabilities in previous packets are ignored. If an object is not available at a time, the client will not draw that object. If not specified, the default value is 0000-00-00T00:00:00Z/9999-12-31T24:00:00Z. * @param value The interval. */ public final void writeAvailability(TimeInterval value) { final String PropertyName = AvailabilityPropertyName; getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeTimeInterval(getOutput(), value); }
/** * Writes the value expressed as a {@code availability}, which is the set of time intervals over which data for an object is available. The property can be a single string specifying a single interval, or an array of strings representing intervals. A later Cesium packet can update this availability if it changes or is found to be incorrect. For example, an SGP4 propagator may initially report availability for all time, but then later the propagator throws an exception and the availability can be adjusted to end at that time. If this optional property is not present, the object is assumed to be available for all time. Availability is scoped to a particular CZML stream, so two different streams can list different availability for a single object. Within a single stream, the last availability stated for an object is the one in effect and any availabilities in previous packets are ignored. If an object is not available at a time, the client will not draw that object. If not specified, the default value is 0000-00-00T00:00:00Z/9999-12-31T24:00:00Z. * @param value The intervals. */ public final void writeAvailability(List<TimeInterval> value) { final String PropertyName = AvailabilityPropertyName; getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeTimeIntervalCollection(getOutput(), value); }