Class WktLiteral

  • All Implemented Interfaces:
    RDFDatatype

    public class WktLiteral
    extends BaseDatatype
    WktLiteral datatype A custom RDFDatatype to implement WKT literal
    Since:
    2018-09-04
    Author:
    El Mehdi Khalfi
    • Method Detail

      • unparse

        public java.lang.String unparse​(java.lang.Object value)
        Convert a value of this datatype out to lexical form.
        Specified by:
        unparse in interface RDFDatatype
        Overrides:
        unparse in class BaseDatatype
      • parse

        public java.lang.Object parse​(java.lang.String lexicalForm)
        Parse a lexical form of this datatype to a value
        Specified by:
        parse in interface RDFDatatype
        Overrides:
        parse in class BaseDatatype
      • isEqual

        public boolean isEqual​(LiteralLabel value1,
                               LiteralLabel value2)
        Compares two instances of values of the given datatype. This does not allow rationals to be compared to other number formats, Lang tag is not significant.
        Specified by:
        isEqual in interface RDFDatatype
        Overrides:
        isEqual in class BaseDatatype
        Parameters:
        value1 - First value to compare
        value2 - Second value to compare
        Returns:
        Value to determine whether both are equal.