/** * Copies this instance and returns the copy. * @return The copy. */ @Override public CustomPropertiesCesiumWriter clone() { return new CustomPropertiesCesiumWriter(this); }
/** * Opens and returns a new writer for a {@code CustomProperty} property. A {@code CustomProperty} property defines a custom property. * @param name The name of the new property writer. */ public final CustomPropertyCesiumWriter openCustomPropertyProperty(String name) { openIntervalIfNecessary(); return this.<CustomPropertyCesiumWriter> openAndReturn(new CustomPropertyCesiumWriter(name)); } }
try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_property"); try { ArrayList<cesiumlanguagewriter.JulianDate> dates = new ArrayList<cesiumlanguagewriter.JulianDate>();
try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_property"); try { customPropertyWriter.writeInterpolationAlgorithm(CesiumInterpolationAlgorithm.HERMITE);
public cesiumlanguagewriter.CustomPropertiesCesiumWriter invoke() { return new CustomPropertiesCesiumWriter(PropertiesPropertyName); } }, false);
try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_boolean"); try { customPropertyWriter.writeBoolean(true); cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_cartesian"); try { customPropertyWriter.writeCartesian(new Cartesian(1D, 2D, 3D));
@Override protected CesiumPropertyWriter<CustomPropertiesCesiumWriter> createPropertyWriter(String propertyName) { return new CustomPropertiesCesiumWriter(propertyName); }
@Test public final void customPropertyBooleanConstant() { { final PacketCesiumWriter usingExpression_0 = (getPacket()); try { { cesiumlanguagewriter.CustomPropertiesCesiumWriter customPropertiesWriter = getPacket().openPropertiesProperty(); try { { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_property"); try { customPropertyWriter.writeBoolean(true); } finally { DisposeHelper.dispose(customPropertyWriter); } } } finally { DisposeHelper.dispose(customPropertiesWriter); } } } finally { DisposeHelper.dispose(usingExpression_0); } } Assert.assertEquals("{\"properties\":{\"custom_property\":true}}", getStringWriter().toString()); }
@Test public final void customPropertyCartesianConstant() { { final PacketCesiumWriter usingExpression_2 = (getPacket()); try { { cesiumlanguagewriter.CustomPropertiesCesiumWriter customPropertiesWriter = getPacket().openPropertiesProperty(); try { { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_property"); try { customPropertyWriter.writeCartesian(new Cartesian(1D, 2D, 3D)); } finally { DisposeHelper.dispose(customPropertyWriter); } } } finally { DisposeHelper.dispose(customPropertiesWriter); } } } finally { DisposeHelper.dispose(usingExpression_2); } } Assert.assertEquals("{\"properties\":{\"custom_property\":{\"cartesian\":[1,2,3]}}}", getStringWriter().toString()); }
try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_property"); try {
try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_boolean"); try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_cartesian"); try { ArrayList<cesiumlanguagewriter.JulianDate> dates = new ArrayList<cesiumlanguagewriter.JulianDate>();