Module dev.metaschema.core
Interface IDateWithTimeZoneItem
- All Superinterfaces:
IAnyAtomicItem,IAtomicValuedItem,ICalendarTemporalItem,ICollectionValue,IDateItem,IItem,ITemporalItem
An atomic Metapath item containing a date data value that has an explicit
timezone.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IDateWithTimeZoneItemcast(IAnyAtomicItem item) Cast the provided type to this item type.default IDateWithTimeZoneItemcastAsType(IAnyAtomicItem item) Cast the provideditemto be the same type as this item.default IAtomicOrUnionType<IDateWithTimeZoneItem>getType()Get the type information for the item.type()Get the type information for this item.static IDateWithTimeZoneItemConstruct a new date item using the provided stringvalue.static IDateWithTimeZoneItemvalueOf(ZonedDateTime value) Construct a new date item using the providedvalue.Methods inherited from interface dev.metaschema.core.metapath.item.atomic.IAnyAtomicItem
accept, asMapKey, asString, asStringItem, atomize, deepEquals, getJavaTypeAdapter, getValue, toAtomicItemMethods inherited from interface dev.metaschema.core.metapath.item.atomic.ICalendarTemporalItem
getZoneOffsetMethods inherited from interface dev.metaschema.core.metapath.item.ICollectionValue
deepEquals, toSignatureMethods inherited from interface dev.metaschema.core.metapath.item.atomic.IDateItem
asDateTime, asLocalDate, asZonedDateTime, getDay, getHour, getMinute, getMonth, getNano, getSecond, getYear, hasDate, hasTime, replaceTimezoneMethods inherited from interface dev.metaschema.core.metapath.item.IItem
contentsAsSequence, flatten, hasValue, toSequenceMethods inherited from interface dev.metaschema.core.metapath.item.atomic.ITemporalItem
getOffset, hasTimezone
-
Method Details
-
type
Get the type information for this item.- Returns:
- the type information
-
getType
Description copied from interface:IItemGet the type information for the item. -
valueOf
Construct a new date item using the provided stringvalue.- Parameters:
value- a string representing a date- Returns:
- the new item
-
valueOf
Construct a new date item using the providedvalue.- Parameters:
value- a date, with time zone information- Returns:
- the new item
-
cast
Cast the provided type to this item type.- Parameters:
item- the item to cast- Returns:
- the original item if it is already this type, otherwise a new item cast to this type
- Throws:
InvalidValueForCastFunctionException- if the provideditemcannot be cast to this type
-
castAsType
Description copied from interface:IAnyAtomicItemCast the provideditemto be the same type as this item.- Specified by:
castAsTypein interfaceIAnyAtomicItem- Specified by:
castAsTypein interfaceIDateItem- Parameters:
item- the item to cast- Returns:
- an atomic item of this type
-