Class ObservanceType

java.lang.Object
ietf.params.xml.ns.timezone_service.ObservanceType

public class ObservanceType extends Object
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 Details

  • Constructor Details

    • ObservanceType

      public ObservanceType()
  • Method Details

    • getName

      public String getName()
      Gets the value of the name property.
      Returns:
      possible object is String
    • setName

      public void setName(String value)
      Sets the value of the name property.
      Parameters:
      value - allowed object is String
    • getLocalName

      public List<LocalNameType> 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 set method 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

      public XMLGregorianCalendar getOnset()
      Gets the value of the onset property.
      Returns:
      possible object is XMLGregorianCalendar
    • setOnset

      public void setOnset(XMLGregorianCalendar value)
      Sets the value of the onset property.
      Parameters:
      value - allowed object is XMLGregorianCalendar
    • getUtcOffsetFrom

      public String getUtcOffsetFrom()
      Gets the value of the utcOffsetFrom property.
      Returns:
      possible object is String
    • setUtcOffsetFrom

      public void setUtcOffsetFrom(String value)
      Sets the value of the utcOffsetFrom property.
      Parameters:
      value - allowed object is String
    • getUtcOffsetTo

      public String getUtcOffsetTo()
      Gets the value of the utcOffsetTo property.
      Returns:
      possible object is String
    • setUtcOffsetTo

      public void setUtcOffsetTo(String value)
      Sets the value of the utcOffsetTo property.
      Parameters:
      value - allowed object is String