- All Known Implementing Classes:
ProvFactory,ProvFactory
public interface LiteralConstructor
Interface to convenience factory methods for PROV Literals.
- Author:
- lavm
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]hexDecoding(String value) newDuration(String lexicalRepresentation) Factory method for a duration.newGDay(int day) Factory method for a gDay.newGMonth(int month) Factory method for a gMonth.newGMonthDay(int month, int day) Factory method for a gMonthDay.newGYear(int year) Factory method for a gYear.newISOTime(String lexicalXSDDateTime) Factory method for a dateTime.newISOTimeTZ(String lexicalXSDDateTime) Factory method for a dateTime.newISOTimeUTC(String lexicalXSDDateTime) Factory method for a dateTime.Factory method for this moment's time expressed as dateTime.
-
Method Details
-
newGYear
Factory method for a gYear. AgYearrepresents a gregorian calendar year.- Parameters:
year- value- Returns:
- an instance of
XMLGregorianCalendar
-
newGMonth
Factory method for a gMonth. AgMonthrepresents a gregorian month that recurs every year.- Parameters:
month- value- Returns:
- an instance of
XMLGregorianCalendar
-
newGDay
Factory method for a gDay. AgDayrepresents a gregorian day that recurs, specifically a day of the month such as the 5th of the month.- Parameters:
day- value- Returns:
- an instance of
XMLGregorianCalendar
-
newGMonthDay
Factory method for a gMonthDay. AgMonthDayis a gregorian date that recurs, specifically a day of the year such as the third of May.- Parameters:
month- valueday- value- Returns:
- an instance of
XMLGregorianCalendar
-
newISOTime
Factory method for a dateTime.- Parameters:
lexicalXSDDateTime- A string containing lexical representation of xsd:datetime.- Returns:
- an instance of
XMLGregorianCalendarexpressed in the system default timezone
-
newISOTimeUTC
Factory method for a dateTime.- Parameters:
lexicalXSDDateTime- A string containing lexical representation of xsd:datetime.- Returns:
- an instance of
XMLGregorianCalendar
-
newISOTimeTZ
Factory method for a dateTime.- Parameters:
lexicalXSDDateTime- A string containing lexical representation of xsd:datetime.- Returns:
- an instance of
XMLGregorianCalendarnormalized in UTC
-
newDuration
-
base64Decoding
-
hexDecoding
-
newTimeNow
Object newTimeNow()Factory method for this moment's time expressed as dateTime.- Returns:
- an instance of
XMLGregorianCalendar
-