Class Document.Validity
- java.lang.Object
-
- com.iknowbase.api.contentservices.v2.model.Document.Validity
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Document
public static class Document.Validity extends Object implements Serializable
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="from" type="{http://www.w3.org/2001/XMLSchema}dateTime" /> <attribute name="to" type="{http://www.w3.org/2001/XMLSchema}dateTime" /> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Validity()
Default no-arg constructorValidity(Instant from, Instant to)
Validity(LocalDateTime from, LocalDateTime to)
Validity(ZonedDateTime from, ZonedDateTime to)
Validity(Calendar from, Calendar to)
Fully-initialising value constructor
-
Method Summary
-
-
-
Constructor Detail
-
Validity
public Validity()
Default no-arg constructor
-
Validity
public Validity(ZonedDateTime from, ZonedDateTime to)
-
Validity
public Validity(LocalDateTime from, LocalDateTime to)
-
-
Method Detail
-
getFrom
public Calendar getFrom()
Gets the value of the from property.- Returns:
- possible object is
String
-
setFrom
public void setFrom(Calendar value)
Sets the value of the from property.- Parameters:
value
- allowed object isString
-
setTo
public void setTo(Calendar value)
Sets the value of the to property.- Parameters:
value
- allowed object isString
-
withFrom
public Document.Validity withFrom(Calendar value)
-
withTo
public Document.Validity withTo(Calendar value)
-
getFromAsZonedDateTime
public ZonedDateTime getFromAsZonedDateTime()
-
getFromAsInstant
public Instant getFromAsInstant()
-
getFromAsLocalDateTime
public LocalDateTime getFromAsLocalDateTime()
-
getToAsZonedDateTime
public ZonedDateTime getToAsZonedDateTime()
-
getToAsInstant
public Instant getToAsInstant()
-
getToAsLocalDateTime
public LocalDateTime getToAsLocalDateTime()
-
setFrom
public void setFrom(ZonedDateTime from)
-
setFrom
public void setFrom(Instant from)
-
setFrom
public void setFrom(LocalDateTime from)
-
setTo
public void setTo(ZonedDateTime to)
-
setTo
public void setTo(Instant to)
-
setTo
public void setTo(LocalDateTime to)
-
withFrom
public Document.Validity withFrom(ZonedDateTime from)
-
withFrom
public Document.Validity withFrom(Instant from)
-
withFrom
public Document.Validity withFrom(LocalDateTime from)
-
withTo
public Document.Validity withTo(ZonedDateTime to)
-
withTo
public Document.Validity withTo(Instant to)
-
withTo
public Document.Validity withTo(LocalDateTime to)
-
isValidAt
public boolean isValidAt(Instant time)
-
-