Package org.openprovenance.prov.model
Interface LiteralConstructor
-
- All Known Implementing Classes:
ProvFactory
,ProvFactory
public interface LiteralConstructor
Interface to convenience factory methods for PROV Literals.- Author:
- lavm
-
-
Method Summary
Modifier and Type Method Description byte[]
base64Decoding(String s)
Object
hexDecoding(String value)
Object
newDuration(String lexicalRepresentation)
Factory method for a duration.Object
newGDay(int day)
Factory method for a gDay.Object
newGMonth(int month)
Factory method for a gMonth.Object
newGMonthDay(int month, int day)
Factory method for a gMonthDay.Object
newGYear(int year)
Factory method for a gYear.Object
newISOTime(String lexicalXSDDateTime)
Factory method for a dateTime.Object
newTimeNow()
Factory method for this moment's time expressed as dateTime.
-
-
-
Method Detail
-
newGYear
Object newGYear(int year)
Factory method for a gYear. AgYear
represents a gregorian calendar year.- Parameters:
year
- value- Returns:
- an instance of
XMLGregorianCalendar
-
newGMonth
Object newGMonth(int month)
Factory method for a gMonth. AgMonth
represents a gregorian month that recurs every year.- Parameters:
month
- value- Returns:
- an instance of
XMLGregorianCalendar
-
newGDay
Object newGDay(int day)
Factory method for a gDay. AgDay
represents 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
Object newGMonthDay(int month, int day)
Factory method for a gMonthDay. AgMonthDay
is 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
Object newISOTime(String lexicalXSDDateTime)
Factory method for a dateTime.- Parameters:
lexicalXSDDateTime
- A string containing lexical representation of xsd:datetime.- Returns:
- an instance of
XMLGregorianCalendar
-
newDuration
Object newDuration(String lexicalRepresentation)
Factory method for a duration.- Parameters:
lexicalRepresentation
-String
representation of aDuration
.- Returns:
- an instance of
Duration
-
base64Decoding
byte[] base64Decoding(String s)
-
newTimeNow
Object newTimeNow()
Factory method for this moment's time expressed as dateTime.- Returns:
- an instance of
XMLGregorianCalendar
-
-