Package org.bedework.timezones.common.db
Class TzDbSpec
- All Implemented Interfaces:
Serializable,Comparable<TzDbSpec>
Type for db info.
- Version:
- 1.0
- Author:
- Mike Douglass
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetEtag()getName()inthashCode()voidsetActive(boolean val) voidvoidsetDtstamp(String val) voidEtag value for last fetch from primaryvoidvoidSource of the timezone - a urlvoidsetVtimezone(String val) protected voidtoStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the ToString builder
-
Constructor Details
-
TzDbSpec
public TzDbSpec()
-
-
Method Details
-
setName
- Parameters:
val- name
-
getName
- Returns:
- Name of the spec
-
setEtag
Etag value for last fetch from primary- Parameters:
val- the etag
-
getEtag
- Returns:
- etag or null
-
setDtstamp
- Parameters:
val- dtStamp
-
getDtstamp
- Returns:
- String XML format dtstamp
-
setSource
Source of the timezone - a url- Parameters:
val- source url
-
getSource
- Returns:
- String source or null
-
setActive
public void setActive(boolean val) - Parameters:
val- true for active
-
getActive
public boolean getActive()- Returns:
- boolean true for active
-
setVtimezone
- Parameters:
val- vtimezone
-
getVtimezone
- Returns:
- Name of the spec
-
setDisplayNames
- Parameters:
val- set of localized strings
-
getDisplayNames
- Returns:
- display names
-
toStringSegment
protected void toStringSegment(org.bedework.util.misc.ToString ts) Description copied from class:TzDbentityAdd our stuff to the ToString builder- Overrides:
toStringSegmentin classTzDbentity<TzDbSpec>- Parameters:
ts- for result
-
compareTo
- Specified by:
compareToin interfaceComparable<TzDbSpec>- Overrides:
compareToin classTzDbentity<TzDbSpec>
-
hashCode
public int hashCode()- Overrides:
hashCodein classTzDbentity<TzDbSpec>
-