|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.clarkparsia.pellet.datatypes.XSDFloat
public class XSDFloat
Title: xsd:float
Description: Singleton implementation of xsd:float
datatype
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
Method Summary | |
---|---|
RestrictedDatatype<java.lang.Float> |
asDataRange()
Get the canonical data range for a datatype |
boolean |
equals(java.lang.Object obj)
|
aterm.ATermAppl |
getCanonicalRepresentation(aterm.ATermAppl input)
Get the canonical representation of a lexical form |
static XSDFloat |
getInstance()
|
aterm.ATermAppl |
getLiteral(java.lang.Object value)
Get the canonical ATermAppl literal representation for a value
space object. |
aterm.ATermAppl |
getName()
Get the datatype identifier |
Datatype<?> |
getPrimitiveDatatype()
Get the primitive datatype associated with this datatype. |
java.lang.Float |
getValue(aterm.ATermAppl literal)
Get the Java object representation of a data value |
int |
hashCode()
|
boolean |
isPrimitive()
Check if a datatype is primitive. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static XSDFloat getInstance()
public RestrictedDatatype<java.lang.Float> asDataRange()
Datatype
asDataRange
in interface Datatype<java.lang.Float>
DataRange
representation of the datatype value spacepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public aterm.ATermAppl getCanonicalRepresentation(aterm.ATermAppl input) throws InvalidLiteralException
Datatype
getCanonicalRepresentation
in interface Datatype<java.lang.Float>
input
- a lexical form of the literal
InvalidLiteralException
public aterm.ATermAppl getLiteral(java.lang.Object value)
Datatype
ATermAppl
literal representation for a value
space object. This may be unsupported by datatypes for which
Datatype.isPrimitive()
returns false
.
getLiteral
in interface Datatype<java.lang.Float>
value
- Element of the value space for some datatype
ATermAppl
representation of value
public aterm.ATermAppl getName()
Datatype
getName
in interface Datatype<java.lang.Float>
ATermAppl
of URI for datatypepublic Datatype<?> getPrimitiveDatatype()
Datatype
getPrimitiveDatatype
in interface Datatype<java.lang.Float>
this
if isPrimitive() == true
, else a
primitive datatype that is a superset of the value space of this
datatype.public java.lang.Float getValue(aterm.ATermAppl literal) throws InvalidLiteralException
Datatype
getValue
in interface Datatype<java.lang.Float>
literal
- the literal
InvalidLiteralException
public int hashCode()
hashCode
in class java.lang.Object
public boolean isPrimitive()
Datatype
isPrimitive
in interface Datatype<java.lang.Float>
true
if the datatype is primitive,
false
else
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |