public class TimezoneConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
add |
static boolean |
DEFAULT_ADD |
static int |
DEFAULT_HOURS |
static int |
DEFAULT_MINUTES |
int |
hours |
int |
minutes |
Constructor and Description |
---|
TimezoneConfig() |
TimezoneConfig(TimezoneConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this TimezoneConfig.
|
static TimezoneConfig |
fromString(java.lang.String s)
String representation of this TimezoneConfig.
|
int |
getHours()
Difference of hours to apply.
|
int |
getMinutes()
Difference of minutes to apply.
|
boolean |
isAdd()
If true, the hours and minutes will be added.
|
TimezoneConfig |
makeCopy()
Creates and returns a deep copy of this TimezoneConfig.
|
static TimezoneConfig |
readFrom(java.io.InputStream is)
Read this TimezoneConfig from an XML fragment.
|
void |
setAdd(boolean add)
If true, the hours and minutes will be added.
|
void |
setHours(int hours)
Difference of hours to apply.
|
void |
setMinutes(int minutes)
Difference of minutes to apply.
|
java.lang.String |
toString()
String representation of this TimezoneConfig.
|
TimezoneConfig |
withAdd(boolean add) |
TimezoneConfig |
withAdd(java.lang.Boolean add) |
TimezoneConfig |
withHours(int hours) |
TimezoneConfig |
withHours(java.lang.Integer hours) |
TimezoneConfig |
withMinutes(int minutes) |
TimezoneConfig |
withMinutes(java.lang.Integer minutes) |
void |
writeTo(java.io.OutputStream os)
Write this TimezoneConfig as an XML fragment
|
public boolean add
public static final boolean DEFAULT_ADD
public int hours
public static final int DEFAULT_HOURS
public int minutes
public static final int DEFAULT_MINUTES
public TimezoneConfig()
public TimezoneConfig(TimezoneConfig o)
public void setAdd(boolean add)
public boolean isAdd()
public TimezoneConfig withAdd(boolean add)
public TimezoneConfig withAdd(java.lang.Boolean add)
public void setHours(int hours)
public int getHours()
public TimezoneConfig withHours(int hours)
public TimezoneConfig withHours(java.lang.Integer hours)
public void setMinutes(int minutes)
public int getMinutes()
public TimezoneConfig withMinutes(int minutes)
public TimezoneConfig withMinutes(java.lang.Integer minutes)
public TimezoneConfig makeCopy()
public static TimezoneConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static TimezoneConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.