com.hp.hpl.jena.datatypes.xsd
Class XSDbase64Binary
java.lang.Object
com.hp.hpl.jena.datatypes.BaseDatatype
com.hp.hpl.jena.datatypes.xsd.XSDDatatype
com.hp.hpl.jena.datatypes.xsd.XSDbase64Binary
- All Implemented Interfaces:
- RDFDatatype
public class XSDbase64Binary
- extends XSDDatatype
Implement base64binary type. Most of the work is done in the superclass.
This only needs to implement the unparsing.
- Version:
- $Revision: 1.6 $ on $Date: 2005/09/26 12:11:57 $
- Author:
- Dave Reynolds
Fields inherited from class com.hp.hpl.jena.datatypes.xsd.XSDDatatype |
XSD, XSDanyURI, XSDbase64Binary, XSDboolean, XSDbyte, XSDdate, XSDdateTime, XSDdecimal, XSDdouble, XSDduration, XSDENTITY, XSDfloat, XSDgDay, XSDgMonth, XSDgMonthDay, XSDgYear, XSDgYearMonth, XSDhexBinary, XSDID, XSDIDREF, XSDint, XSDinteger, XSDlanguage, XSDlong, XSDName, XSDNCName, XSDnegativeInteger, XSDNMTOKEN, XSDnonNegativeInteger, XSDnonPositiveInteger, XSDnormalizedString, XSDNOTATION, XSDpositiveInteger, XSDQName, XSDshort, XSDstring, XSDtime, XSDtoken, XSDunsignedByte, XSDunsignedInt, XSDunsignedLong, XSDunsignedShort |
Constructor Summary |
XSDbase64Binary(java.lang.String typeName)
Constructor. |
Method Summary |
boolean |
isEqual(com.hp.hpl.jena.graph.impl.LiteralLabel value1,
com.hp.hpl.jena.graph.impl.LiteralLabel value2)
Compares two instances of values of the given datatype. |
boolean |
isValidValue(java.lang.Object valueForm)
Test whether the given object is a legal value form
of this datatype. |
java.lang.String |
unparse(java.lang.Object value)
Convert a value of this datatype out
to lexical form. |
Methods inherited from class com.hp.hpl.jena.datatypes.xsd.XSDDatatype |
convertValidatedDataValue, extendedTypeDefinition, getJavaClass, isBaseTypeCompatible, isValidLiteral, loadUserDefined, loadUserDefined, loadXSDSimpleTypes, main, parse, parseValidated, trimPlus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XSDbase64Binary
public XSDbase64Binary(java.lang.String typeName)
- Constructor.
- Parameters:
typeName
- the name of the XSD type to be instantiated, this is
used to lookup a type definition from the Xerces schema factory.
isValidValue
public boolean isValidValue(java.lang.Object valueForm)
- Test whether the given object is a legal value form
of this datatype. Brute force implementation.
- Specified by:
isValidValue
in interface RDFDatatype
- Overrides:
isValidValue
in class BaseDatatype
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 XSDDatatype
isEqual
public boolean isEqual(com.hp.hpl.jena.graph.impl.LiteralLabel value1,
com.hp.hpl.jena.graph.impl.LiteralLabel value2)
- Compares two instances of values of the given datatype.
This ignores lang tags and just uses the java.lang.Number
equality.
- Specified by:
isEqual
in interface RDFDatatype
- Overrides:
isEqual
in class XSDDatatype
Copyright © 2000, 2001, 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP