org.dmtf.cim.common.CimDateTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrock-runtime-windows Show documentation
Show all versions of bedrock-runtime-windows Show documentation
Interfaces, classes and resources to construct, inspect and securely
manage remote runtime processes on Windows using WinRM.
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.07.22 at 02:53:45 PM EET
//
package org.dmtf.cim.common;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.Duration;
import javax.xml.datatype.XMLGregorianCalendar;
import javax.xml.namespace.QName;
/**
* Java class for cimDateTime complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="cimDateTime">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice>
* <element name="CIM_DateTime" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Interval" type="{http://www.w3.org/2001/XMLSchema}duration"/>
* <element name="Date" type="{http://www.w3.org/2001/XMLSchema}date"/>
* <element name="Time" type="{http://www.w3.org/2001/XMLSchema}time"/>
* <element name="Datetime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* </choice>
* <anyAttribute processContents='lax'/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cimDateTime", propOrder = {
"cimDateTime",
"interval",
"date",
"time",
"datetime"
})
public class CimDateTime {
@XmlElementRef(name = "CIM_DateTime", namespace = "http://schemas.dmtf.org/wbem/wscim/1/common", type = JAXBElement.class, required = false)
protected JAXBElement cimDateTime;
@XmlElement(name = "Interval")
protected Duration interval;
@XmlElement(name = "Date")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar date;
@XmlElement(name = "Time")
@XmlSchemaType(name = "time")
protected XMLGregorianCalendar time;
@XmlElement(name = "Datetime")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar datetime;
@XmlAnyAttribute
private Map otherAttributes = new HashMap();
/**
* Gets the value of the cimDateTime property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement getCIMDateTime() {
return cimDateTime;
}
/**
* Sets the value of the cimDateTime property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setCIMDateTime(JAXBElement value) {
this.cimDateTime = value;
}
public boolean isSetCIMDateTime() {
return (this.cimDateTime!= null);
}
/**
* Gets the value of the interval property.
*
* @return
* possible object is
* {@link Duration }
*
*/
public Duration getInterval() {
return interval;
}
/**
* Sets the value of the interval property.
*
* @param value
* allowed object is
* {@link Duration }
*
*/
public void setInterval(Duration value) {
this.interval = value;
}
public boolean isSetInterval() {
return (this.interval!= null);
}
/**
* Gets the value of the date property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDate() {
return date;
}
/**
* Sets the value of the date property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDate(XMLGregorianCalendar value) {
this.date = value;
}
public boolean isSetDate() {
return (this.date!= null);
}
/**
* Gets the value of the time property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getTime() {
return time;
}
/**
* Sets the value of the time property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setTime(XMLGregorianCalendar value) {
this.time = value;
}
public boolean isSetTime() {
return (this.time!= null);
}
/**
* Gets the value of the datetime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDatetime() {
return datetime;
}
/**
* Sets the value of the datetime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDatetime(XMLGregorianCalendar value) {
this.datetime = value;
}
public boolean isSetDatetime() {
return (this.datetime!= null);
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
*
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map getOtherAttributes() {
return otherAttributes;
}
}