Package org.openprovenance.prov.model
Interface LiteralConstructor
-
- All Known Implementing Classes:
ProvFactory,ProvFactory
public interface LiteralConstructorInterface to convenience factory methods for PROV Literals.- Author:
- lavm
-
-
Method Summary
Modifier and Type Method Description byte[]base64Decoding(String s)ObjecthexDecoding(String value)ObjectnewDuration(String lexicalRepresentation)Factory method for a duration.ObjectnewGDay(int day)Factory method for a gDay.ObjectnewGMonth(int month)Factory method for a gMonth.ObjectnewGMonthDay(int month, int day)Factory method for a gMonthDay.ObjectnewGYear(int year)Factory method for a gYear.ObjectnewISOTime(String lexicalXSDDateTime)Factory method for a dateTime.ObjectnewTimeNow()Factory method for this moment's time expressed as dateTime.
-
-
-
Method Detail
-
newGYear
Object newGYear(int year)
Factory method for a gYear. AgYearrepresents a gregorian calendar year.- Parameters:
year- value- Returns:
- an instance of
XMLGregorianCalendar
-
newGMonth
Object newGMonth(int month)
Factory method for a gMonth. AgMonthrepresents 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. 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
Object newGMonthDay(int month, int day)
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
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-Stringrepresentation 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
-
-