Class CompositeDatatypeList

java.lang.Object
org.apache.jena.cdt.CompositeDatatypeBase<List<CDTValue>>
org.apache.jena.cdt.CompositeDatatypeList
All Implemented Interfaces:
org.apache.jena.datatypes.RDFDatatype

public class CompositeDatatypeList extends CompositeDatatypeBase<List<CDTValue>>
  • Field Details

  • Method Details

    • getURI

      public String getURI()
    • isValidValue

      public boolean isValidValue(Object value)
    • isValidLiteral

      public boolean isValidLiteral(org.apache.jena.graph.impl.LiteralLabel lit)
    • isValid

      public boolean isValid(String lexicalForm)
    • parse

      public List<CDTValue> parse(String lexicalForm) throws org.apache.jena.datatypes.DatatypeFormatException
      Specified by:
      parse in interface org.apache.jena.datatypes.RDFDatatype
      Specified by:
      parse in class CompositeDatatypeBase<List<CDTValue>>
      Throws:
      org.apache.jena.datatypes.DatatypeFormatException
    • unparse

      public String unparse(Object value)
    • unparseValue

      public String unparseValue(List<CDTValue> list)
      Specified by:
      unparseValue in class CompositeDatatypeBase<List<CDTValue>>
    • getHashCode

      public int getHashCode(org.apache.jena.graph.impl.LiteralLabel lit)
    • isEqual

      public boolean isEqual(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2)
    • compare

      public static int compare(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2, boolean sortOrderingCompare) throws ExprNotComparableException
      Assumes that the datatype of both of the given literals is cdt:List. If 'sortOrderingCompare' is true, the two lists are compared as per the semantics for ORDER BY. If 'sortOrderingCompare' is false, the comparison applies the list-less-than semantics.
      Throws:
      ExprNotComparableException
    • isListLiteral

      public static boolean isListLiteral(org.apache.jena.graph.Node n)
      Returns true if the given node is a literal with uri as its datatype URI. Notice that this does not mean that this literal is actually valid; for checking validity, use isValidLiteral(LiteralLabel).
    • isListLiteral

      public static boolean isListLiteral(org.apache.jena.graph.impl.LiteralLabel lit)
      Returns true if the datatype URI of the given literal is uri. Notice that this does not mean that this literal is actually valid; for checking validity, use isValidLiteral(LiteralLabel).
    • getValue

      public static List<CDTValue> getValue(org.apache.jena.graph.impl.LiteralLabel lit) throws org.apache.jena.datatypes.DatatypeFormatException
      Assumes that the datatype of the given literal is cdt:List.
      Throws:
      org.apache.jena.datatypes.DatatypeFormatException