Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hp.hpl.jena.datatypes.xsd.impl
Class XMLLiteralType  view XMLLiteralType download XMLLiteralType.java

java.lang.Object
  extended bycom.hp.hpl.jena.datatypes.BaseDatatype
      extended bycom.hp.hpl.jena.datatypes.xsd.impl.XMLLiteralType
All Implemented Interfaces:
com.hp.hpl.jena.datatypes.RDFDatatype

public class XMLLiteralType
extends com.hp.hpl.jena.datatypes.BaseDatatype
implements com.hp.hpl.jena.datatypes.RDFDatatype

Builtin data type to represent XMLLiteral (i.e. items created by use of rdf:parsetype='literal'.

Version:
$Revision: 1.9 $ on $Date: 2005/02/21 12:02:19 $

Field Summary
static com.hp.hpl.jena.datatypes.RDFDatatype theXMLLiteralType
          Singleton instance
 
Fields inherited from class com.hp.hpl.jena.datatypes.BaseDatatype
uri
 
Constructor Summary
private XMLLiteralType(java.lang.String uri)
          Private constructor.
 
Method Summary
 boolean isValid(java.lang.String lexicalForm)
          Test whether the given string is a legal lexical form of this datatype.
 java.lang.Object parse(java.lang.String lexicalForm)
          Parse a lexical form of this datatype to a value
 java.lang.String unparse(java.lang.Object value)
          Convert a serialize a value of this datatype out to lexical form.
 
Methods inherited from class com.hp.hpl.jena.datatypes.BaseDatatype
extendedTypeDefinition, getJavaClass, getURI, isEqual, isValidLiteral, isValidValue, langTagCompatible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.datatypes.RDFDatatype
extendedTypeDefinition, getJavaClass, getURI, isEqual, isValidLiteral, isValidValue
 

Field Detail

theXMLLiteralType

public static final com.hp.hpl.jena.datatypes.RDFDatatype theXMLLiteralType
Singleton instance

Constructor Detail

XMLLiteralType

private XMLLiteralType(java.lang.String uri)
Private constructor.

Method Detail

unparse

public java.lang.String unparse(java.lang.Object value)
Convert a serialize a value of this datatype out to lexical form.

Specified by:
unparse in interface com.hp.hpl.jena.datatypes.RDFDatatype

parse

public java.lang.Object parse(java.lang.String lexicalForm)
                       throws com.hp.hpl.jena.datatypes.DatatypeFormatException
Parse a lexical form of this datatype to a value

Specified by:
parse in interface com.hp.hpl.jena.datatypes.RDFDatatype

isValid

public boolean isValid(java.lang.String lexicalForm)
Test whether the given string is a legal lexical form of this datatype.

Specified by:
isValid in interface com.hp.hpl.jena.datatypes.RDFDatatype