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

Quick Search    Search Deep

com.hp.hpl.jena.datatypes.xsd
Class XSDhexBinary  view XSDhexBinary download XSDhexBinary.java

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

public class XSDhexBinary
extends XSDDatatype

Implement hexbinary type. Most of the work is done in the superclass. This only needs to implement the unparsing.

Version:
$Revision: 1.3 $ on $Date: 2005/02/21 12:02:16 $

Field Summary
 
Fields inherited from class com.hp.hpl.jena.datatypes.xsd.XSDDatatype
decimalDV, javaClass, typeDeclaration, 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
 
Fields inherited from class com.hp.hpl.jena.datatypes.BaseDatatype
uri
 
Constructor Summary
XSDhexBinary(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 com.hp.hpl.jena.datatypes.BaseDatatype
getURI, isValid, langTagCompatible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XSDhexBinary

public XSDhexBinary(java.lang.String typeName)
Constructor.

Method Detail

isValidValue

public boolean isValidValue(java.lang.Object valueForm)
Test whether the given object is a legal value form of this datatype. Brute force implementation.


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 com.hp.hpl.jena.datatypes.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 com.hp.hpl.jena.datatypes.RDFDatatype
Overrides:
isEqual in class XSDDatatype