org.oXML.type
Class NumberNode

java.lang.Object
  extended byorg.oXML.type.AbstractNode
      extended byorg.oXML.type.NumberNode
All Implemented Interfaces:
Node

public class NumberNode
extends AbstractNode

ObjectBox - o:XML compiler and interpreter for more information see http://www.o-xml.org/objectbox Copyright (C) 2002/2003 Martin Klang, Alpha Plus Technology Ltd email: martin at hack.org This class has been generated from an o:XML template


Field Summary
static Type TYPE
           
 
Fields inherited from class org.oXML.type.AbstractNode
me
 
Constructor Summary
NumberNode()
          generated default constructor
NumberNode(AbstractNode me, Type type)
           
NumberNode(double value)
           
NumberNode(Node value)
          generated constructor, called directly
NumberNode(java.lang.Number value)
           
NumberNode(NumberNode other, boolean deep)
          generated constructor, called directly
 
Method Summary
 Node _boolean()
           
 Node abs()
           
 Node acos()
           
 Node asin()
           
 Node atan()
           
static boolean booleanValue(double value)
          XPath v1.0 4.3 Boolean Functions a number is true iff it is neither positive or negative zero nor NaN.
 Node ceiling()
           
 Node copy(boolean deep)
           
 Node cos()
           
 Node exp()
           
 Node factorial()
           
 Node floor()
           
 double getDouble()
           
 Node infinite()
           
 void init()
          generated default initialiser
 void init(Node value)
           
 void init(NumberNode other, boolean deep)
           
 Node log()
           
 Node NaN()
           
 Node number()
           
 Node pow(Node power)
           
 Node round()
           
 Node sin()
           
 Node sqrt()
           
 Node string()
           
static java.lang.String stringValue(double num)
          XPath v1.0 4.2 String Functions a number is converted to a string as follows - NaN is converted to the string 'NaN' - positive zero is converted to the string '0' - negative zero is converted to the string '0' - positive infinity is converted to the string 'Infinity' - negative infinity is converted to the string '-Infinity' - if the number is an integer, the number is represented in decimal form as a Number with no decimal point and no leading zeros, preceded by a minus sign (-) if the number is negative - otherwise, the number is represented in decimal form as a Number including a decimal point with at least one digit before the decimal point and at least one digit after the decimal point, preceded by a minus sign (-) if the number is negative; there must be no leading zeros before the decimal point apart possibly from the one required digit immediately before the decimal point; beyond the one required digit after the decimal point there must be as many, but only as many, more digits as are needed to uniquely distinguish the number from all other IEEE 754 numeric values.
 Node tan()
           
 
Methods inherited from class org.oXML.type.AbstractNode
addChildNode, booleanValue, byteValue, cast, cast, equals, equals, getAttribute, getAttributes, getAttributeValue, getChildNodes, getDocument, getInstance, getName, getNextSibling, getParent, getPreviousSibling, getType, hashCode, hasInstance, insert, numberValue, removeChild, setAttribute, setAttribute, setInstance, setName, setParent, stringValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final Type TYPE
Constructor Detail

NumberNode

public NumberNode(AbstractNode me,
                  Type type)

NumberNode

public NumberNode()
generated default constructor


NumberNode

public NumberNode(double value)

NumberNode

public NumberNode(java.lang.Number value)

NumberNode

public NumberNode(NumberNode other,
                  boolean deep)
generated constructor, called directly


NumberNode

public NumberNode(Node value)
generated constructor, called directly

Method Detail

init

public void init()
generated default initialiser

Overrides:
init in class AbstractNode

getDouble

public double getDouble()

booleanValue

public static boolean booleanValue(double value)
XPath v1.0 4.3 Boolean Functions a number is true iff it is neither positive or negative zero nor NaN.


stringValue

public static final java.lang.String stringValue(double num)
XPath v1.0 4.2 String Functions a number is converted to a string as follows - NaN is converted to the string 'NaN' - positive zero is converted to the string '0' - negative zero is converted to the string '0' - positive infinity is converted to the string 'Infinity' - negative infinity is converted to the string '-Infinity' - if the number is an integer, the number is represented in decimal form as a Number with no decimal point and no leading zeros, preceded by a minus sign (-) if the number is negative - otherwise, the number is represented in decimal form as a Number including a decimal point with at least one digit before the decimal point and at least one digit after the decimal point, preceded by a minus sign (-) if the number is negative; there must be no leading zeros before the decimal point apart possibly from the one required digit immediately before the decimal point; beyond the one required digit after the decimal point there must be as many, but only as many, more digits as are needed to uniquely distinguish the number from all other IEEE 754 numeric values.


init

public void init(NumberNode other,
                 boolean deep)

init

public void init(Node value)

abs

public Node abs()

floor

public Node floor()

ceiling

public Node ceiling()

round

public Node round()

sin

public Node sin()

cos

public Node cos()

tan

public Node tan()

asin

public Node asin()

acos

public Node acos()

atan

public Node atan()

log

public Node log()

sqrt

public Node sqrt()

exp

public Node exp()

pow

public Node pow(Node power)

infinite

public Node infinite()

NaN

public Node NaN()

factorial

public Node factorial()

string

public Node string()

_boolean

public Node _boolean()

number

public Node number()

copy

public Node copy(boolean deep)