public Timestamp(final Instant instant) { this.timestamp = new Instant(instant); this.value = toString(); }
public Timestamp(final DateTime datetime) { this.timestamp = datetime.toInstant(); this.value = toString(); }
public Timestamp(final String value) throws IllegalArgumentException, UnsupportedOperationException { this.timestamp = Instant.parse(value, ISO8601_PARSER); this.value = toString(); }
public Timestamp(final Instant instant) { this.timestamp = new Instant(instant); this.value = toString(); }
public Timestamp(final String value) throws IllegalArgumentException, UnsupportedOperationException { this.timestamp = Instant.parse(value, ISO8601_PARSER); this.value = toString(); }
public Timestamp(final DateTime datetime) { this.timestamp = datetime.toInstant(); this.value = toString(); }
public Element asXMLElement(Document document, Element TimestampAnnotation_element) { // Creating XML block for TimestampAnnotation if (TimestampAnnotation_element == null) { TimestampAnnotation_element = document.createElementNS(NAMESPACE, "TimestampAnnotation"); } // Ensure any base annotations add their Elements first super.asXMLElement(document, TimestampAnnotation_element); if (value != null) { // Element property Value which is not complex (has no // sub-elements) Element value_element = document.createElementNS(NAMESPACE, "Value"); value_element.setTextContent(value.toString()); TimestampAnnotation_element.appendChild(value_element); } if (structuredAnnotations != null) { // *** IGNORING *** Skipped back reference StructuredAnnotations_BackReference } return TimestampAnnotation_element; } }
protected Element asXMLElement(Document document, Element TimestampAnnotation_element) { // Creating XML block for TimestampAnnotation if (TimestampAnnotation_element == null) { TimestampAnnotation_element = document.createElementNS(NAMESPACE, "TimestampAnnotation"); } // Ensure any base annotations add their Elements first TimestampAnnotation_element = super.asXMLElement(document, TimestampAnnotation_element); if (value != null) { // Element property Value which is not complex (has no // sub-elements) Element value_element = document.createElementNS(NAMESPACE, "Value"); value_element.setTextContent(value.toString()); TimestampAnnotation_element.appendChild(value_element); } if (structuredAnnotations != null) { // *** IGNORING *** Skipped back reference StructuredAnnotations_BackReference } return TimestampAnnotation_element; } }
acquisitionDate_element.setTextContent(acquisitionDate.toString()); Image_element.appendChild(acquisitionDate_element);
WellSample_element.setAttribute("Timepoint", timepoint.toString());
WellSample_element.setAttribute("Timepoint", timepoint.toString());
acquisitionDate_element.setTextContent(acquisitionDate.toString()); Image_element.appendChild(acquisitionDate_element);