com.bigdata.rdf.internal.impl.extensions
Class USDFloatExtension<V extends BigdataValue>

java.lang.Object
  extended by com.bigdata.rdf.internal.impl.extensions.USDFloatExtension<V>
All Implemented Interfaces:
IExtension<V>

public class USDFloatExtension<V extends BigdataValue>
extends Object
implements IExtension<V>

Adds inlining for the http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/USD datatype, which is treated as xsd:float.


Constructor Summary
USDFloatExtension(IDatatypeURIResolver resolver)
           
 
Method Summary
 V asValue(LiteralExtensionIV iv, BigdataValueFactory vf)
          Create an RDF value from an LiteralExtensionIV.
 LiteralExtensionIV createIV(Value value)
          Attempts to convert the supplied value into an internal representation using BigInteger.
 Set<BigdataURI> getDatatypes()
          Return the fully resolved datatype(s) handled by this interface in the form of a BigdataURI with the TermId already set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

USDFloatExtension

public USDFloatExtension(IDatatypeURIResolver resolver)
Method Detail

getDatatypes

public Set<BigdataURI> getDatatypes()
Description copied from interface: IExtension
Return the fully resolved datatype(s) handled by this interface in the form of a BigdataURI with the TermId already set.

Specified by:
getDatatypes in interface IExtension<V extends BigdataValue>
Returns:
the datatype

createIV

public LiteralExtensionIV createIV(Value value)
Attempts to convert the supplied value into an internal representation using BigInteger.

Specified by:
createIV in interface IExtension<V extends BigdataValue>
Parameters:
value - The RDF Value
Returns:
The extension IV -or- null if the Value can not be inlined using this IExtension.

asValue

public V asValue(LiteralExtensionIV iv,
                 BigdataValueFactory vf)
Description copied from interface: IExtension
Create an RDF value from an LiteralExtensionIV.

Specified by:
asValue in interface IExtension<V extends BigdataValue>
Parameters:
iv - The extension IV
vf - The bigdata value factory
Returns:
The RDF Value


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.