Interface LiteralConstructor

  • All Known Implementing Classes:
    ProvFactory, ProvFactory

    public interface LiteralConstructor
    Interface to convenience factory methods for PROV Literals.
    Author:
    lavm
    • Method Detail

      • newGYear

        Object newGYear​(int year)
        Factory method for a gYear. A gYear represents a gregorian calendar year.
        Parameters:
        year - value
        Returns:
        an instance of XMLGregorianCalendar
      • newGMonth

        Object newGMonth​(int month)
        Factory method for a gMonth. A gMonth 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. A gDay 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. A gMonthDay is a gregorian date that recurs, specifically a day of the year such as the third of May.
        Parameters:
        month - value
        day - 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 a Duration.
        Returns:
        an instance of Duration
      • base64Decoding

        byte[] base64Decoding​(String s)