Class ObservanceType
java.lang.Object
ietf.params.xml.ns.timezone_service.ObservanceType
In an expanded timezone, the observance element specifies a
single timezone observance.
The utc-offset-from element defines the UTC offset in hours
and minutes before the start of this observance.
The utc-offset-to element defines the UTC offset in hours and
minutes at and after the start of this observance.
Java class for ObservanceType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ObservanceType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="local-name" type="{urn:ietf:params:xml:ns:timezone-service}LocalNameType" maxOccurs="unbounded"/>
<element name="onset" type="{urn:ietf:params:xml:ns:timezone-service}OnsetType"/>
<element name="utc-offset-from" type="{urn:ietf:params:xml:ns:timezone-service}UtcOffsetType"/>
<element name="utc-offset-to" type="{urn:ietf:params:xml:ns:timezone-service}UtcOffsetType"/>
</sequence>
</restriction>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<LocalNameType>protected Stringprotected XMLGregorianCalendarprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the localName property.getName()Gets the value of the name property.getOnset()Gets the value of the onset property.Gets the value of the utcOffsetFrom property.Gets the value of the utcOffsetTo property.voidSets the value of the name property.voidsetOnset(XMLGregorianCalendar value) Sets the value of the onset property.voidsetUtcOffsetFrom(String value) Sets the value of the utcOffsetFrom property.voidsetUtcOffsetTo(String value) Sets the value of the utcOffsetTo property.
-
Field Details
-
name
-
localName
-
onset
-
utcOffsetFrom
-
utcOffsetTo
-
-
Constructor Details
-
ObservanceType
public ObservanceType()
-
-
Method Details
-
getName
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getLocalName
Gets the value of the localName property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the localName property.For example, to add a new item, do as follows:
getLocalName().add(newItem);Objects of the following type(s) are allowed in the list
LocalNameType -
getOnset
Gets the value of the onset property.- Returns:
- possible object is
XMLGregorianCalendar
-
setOnset
Sets the value of the onset property.- Parameters:
value- allowed object isXMLGregorianCalendar
-
getUtcOffsetFrom
Gets the value of the utcOffsetFrom property.- Returns:
- possible object is
String
-
setUtcOffsetFrom
Sets the value of the utcOffsetFrom property.- Parameters:
value- allowed object isString
-
getUtcOffsetTo
Gets the value of the utcOffsetTo property.- Returns:
- possible object is
String
-
setUtcOffsetTo
Sets the value of the utcOffsetTo property.- Parameters:
value- allowed object isString
-