Class EditLiteral

  • All Implemented Interfaces:
    org.apache.jena.graph.FrontsNode, org.apache.jena.rdf.model.Literal, org.apache.jena.rdf.model.RDFNode

    public class EditLiteral
    extends Object
    implements org.apache.jena.rdf.model.Literal
    bdc34: I needed to have a representation of a RDF literal for editing. Jena seems to have a Model associated with the literals and has depreciated the creation of simple Literals as if they were data structures. So this code was written. THESE MAY NOT BE USED AS LITERALS WITH THE JENA LIBRARY
    • Constructor Detail

    • Method Detail

      • getValue

        public Object getValue()
        Specified by:
        getValue in interface org.apache.jena.rdf.model.Literal
      • getDatatypeURI

        public String getDatatypeURI()
        Specified by:
        getDatatypeURI in interface org.apache.jena.rdf.model.Literal
      • getLexicalForm

        public String getLexicalForm()
        Specified by:
        getLexicalForm in interface org.apache.jena.rdf.model.Literal
      • isLiteral

        public boolean isLiteral()
        Specified by:
        isLiteral in interface org.apache.jena.rdf.model.RDFNode
      • getLanguage

        public String getLanguage()
        Specified by:
        getLanguage in interface org.apache.jena.rdf.model.Literal
      • getString

        public String getString()
        Specified by:
        getString in interface org.apache.jena.rdf.model.Literal
      • toString

        public String toString()
        Specified by:
        toString in interface org.apache.jena.rdf.model.RDFNode
        Overrides:
        toString in class Object
      • getDatatype

        public org.apache.jena.datatypes.RDFDatatype getDatatype()
        Specified by:
        getDatatype in interface org.apache.jena.rdf.model.Literal
      • getBoolean

        public boolean getBoolean()
        Specified by:
        getBoolean in interface org.apache.jena.rdf.model.Literal
      • getByte

        public byte getByte()
        Specified by:
        getByte in interface org.apache.jena.rdf.model.Literal
      • getShort

        public short getShort()
        Specified by:
        getShort in interface org.apache.jena.rdf.model.Literal
      • getInt

        public int getInt()
        Specified by:
        getInt in interface org.apache.jena.rdf.model.Literal
      • getLong

        public long getLong()
        Specified by:
        getLong in interface org.apache.jena.rdf.model.Literal
      • getChar

        public char getChar()
        Specified by:
        getChar in interface org.apache.jena.rdf.model.Literal
      • getFloat

        public float getFloat()
        Specified by:
        getFloat in interface org.apache.jena.rdf.model.Literal
      • getDouble

        public double getDouble()
        Specified by:
        getDouble in interface org.apache.jena.rdf.model.Literal
      • getWellFormed

        @Deprecated
        public boolean getWellFormed()
        Deprecated.
      • isWellFormedXML

        public boolean isWellFormedXML()
        Specified by:
        isWellFormedXML in interface org.apache.jena.rdf.model.Literal
      • sameValueAs

        public boolean sameValueAs​(org.apache.jena.rdf.model.Literal literal)
        Specified by:
        sameValueAs in interface org.apache.jena.rdf.model.Literal
      • isAnon

        public boolean isAnon()
        Specified by:
        isAnon in interface org.apache.jena.rdf.model.RDFNode
      • isURIResource

        public boolean isURIResource()
        Specified by:
        isURIResource in interface org.apache.jena.rdf.model.RDFNode
      • isResource

        public boolean isResource()
        Specified by:
        isResource in interface org.apache.jena.rdf.model.RDFNode
      • isStmtResource

        public boolean isStmtResource()
        Specified by:
        isStmtResource in interface org.apache.jena.rdf.model.RDFNode
      • inModel

        public org.apache.jena.rdf.model.Literal inModel​(org.apache.jena.rdf.model.Model model)
        Specified by:
        inModel in interface org.apache.jena.rdf.model.Literal
        Specified by:
        inModel in interface org.apache.jena.rdf.model.RDFNode
      • visitWith

        public Object visitWith​(org.apache.jena.rdf.model.RDFVisitor rdfVisitor)
        Specified by:
        visitWith in interface org.apache.jena.rdf.model.RDFNode
      • asNode

        public org.apache.jena.graph.Node asNode()
        Specified by:
        asNode in interface org.apache.jena.graph.FrontsNode
      • equalLiterals

        public static boolean equalLiterals​(org.apache.jena.rdf.model.Literal a,
                                            org.apache.jena.rdf.model.Literal b)
      • as

        @Deprecated
        public <T extends org.apache.jena.rdf.model.RDFNode> T as​(Class<T> arg0)
        Deprecated.
        Specified by:
        as in interface org.apache.jena.rdf.model.RDFNode
      • canAs

        public <T extends org.apache.jena.rdf.model.RDFNode> boolean canAs​(Class<T> arg0)
        Specified by:
        canAs in interface org.apache.jena.rdf.model.RDFNode
      • asLiteral

        public org.apache.jena.rdf.model.Literal asLiteral()
        Specified by:
        asLiteral in interface org.apache.jena.rdf.model.RDFNode
      • asResource

        public org.apache.jena.rdf.model.Resource asResource()
        Specified by:
        asResource in interface org.apache.jena.rdf.model.RDFNode
      • getModel

        public org.apache.jena.rdf.model.Model getModel()
        Specified by:
        getModel in interface org.apache.jena.rdf.model.RDFNode