Package org.eclipse.wst.xml.xpath2.processor.internal.types


org.eclipse.wst.xml.xpath2.processor.internal.types
Class XSDayTimeDuration



public class XSDayTimeDuration
extends org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration
A representation of the DayTimeDuration datatype

Constructor Summary

XSDayTimeDuration(int days , int hours , int minutes , double seconds , boolean negative)
XSDayTimeDuration(double secs)
XSDayTimeDuration()
XSDayTimeDuration(javax.xml.datatype.Duration d)

Method Summary

public java.lang.Objectclone()
     Creates a copy of this representation of a time duration
public org.eclipse.wst.xml.xpath2.api.ResultSequenceconstructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
    
public org.eclipse.wst.xml.xpath2.api.ResultSequencediv(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Mathematical division between this duration stored and the supplied duration of time (of type XSDayTimeDuration)
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinitiongetTypeDefinition()
    
public org.eclipse.wst.xml.xpath2.api.ResultSequenceminus(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Mathematical subtraction between this duration stored and the supplied duration of time (of type XSDayTimeDuration)
public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSDurationparseDTDuration(java.lang.String str)
     Creates a new XSDayTimeDuration by parsing the supplied String represented duration of time
public org.eclipse.wst.xml.xpath2.api.ResultSequenceplus(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Mathematical addition between this duration stored and the supplied duration of time (of type XSDayTimeDuration)
public java.lang.Stringstring_type()
     Retrieves the datatype's full pathname
public org.eclipse.wst.xml.xpath2.api.ResultSequencetimes(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Mathematical multiplication between this duration stored and the supplied duration of time (of type XSDayTimeDuration)
public java.lang.Stringtype_name()
     Retrives the datatype's name

Constructor Detail

XSDayTimeDuration

public XSDayTimeDuration(int days , int hours , int minutes , double seconds , boolean negative)

Initialises to the supplied parameters. If more than 24 hours is supplied, the number of days is adjusted acordingly. The same occurs for minutes and seconds


XSDayTimeDuration

public XSDayTimeDuration(double secs)

Initialises to the given number of seconds


XSDayTimeDuration

public XSDayTimeDuration()

Initialises to a duration of no time (0days, 0hours, 0minutes, 0seconds)


XSDayTimeDuration

public XSDayTimeDuration(javax.xml.datatype.Duration d)


Methods Detail

clone

public java.lang.Object clone()

Creates a copy of this representation of a time duration

Returns

java.lang.Object - New XSDayTimeDuration representing the duration of time stored

Throws:

java.lang.CloneNotSupportedException


constructor

public org.eclipse.wst.xml.xpath2.api.ResultSequence constructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)

Parameters

arg

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence

Throws:

org.eclipse.wst.xml.xpath2.processor.DynamicError


div

public org.eclipse.wst.xml.xpath2.api.ResultSequence div(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)

Mathematical division between this duration stored and the supplied duration of time (of type XSDayTimeDuration)

Parameters

arg - The duration of time to divide by

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - New XSDayTimeDuration representing the resulting duration after the division

Throws:

org.eclipse.wst.xml.xpath2.processor.DynamicError


getTypeDefinition

public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getTypeDefinition()

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition


minus

public org.eclipse.wst.xml.xpath2.api.ResultSequence minus(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)

Mathematical subtraction between this duration stored and the supplied duration of time (of type XSDayTimeDuration)

Parameters

arg - The duration of time to subtract

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - New XSDayTimeDuration representing the resulting duration after the subtraction

Throws:

org.eclipse.wst.xml.xpath2.processor.DynamicError


parseDTDuration

public org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration parseDTDuration(java.lang.String str)

Creates a new XSDayTimeDuration by parsing the supplied String represented duration of time

Parameters

str - String represented duration of time

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration - New XSDayTimeDuration representing the duration of time supplied


plus

public org.eclipse.wst.xml.xpath2.api.ResultSequence plus(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)

Mathematical addition between this duration stored and the supplied duration of time (of type XSDayTimeDuration)

Parameters

arg - The duration of time to add

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - New XSDayTimeDuration representing the resulting duration after the addition

Throws:

org.eclipse.wst.xml.xpath2.processor.DynamicError


string_type

public java.lang.String string_type()

Retrieves the datatype's full pathname

Returns

java.lang.String - "xs:dayTimeDuration" which is the datatype's full pathname


times

public org.eclipse.wst.xml.xpath2.api.ResultSequence times(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)

Mathematical multiplication between this duration stored and the supplied duration of time (of type XSDayTimeDuration)

Parameters

arg - The duration of time to multiply by

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - New XSDayTimeDuration representing the resulting duration after the multiplication

Throws:

org.eclipse.wst.xml.xpath2.processor.DynamicError


type_name

public java.lang.String type_name()

Retrives the datatype's name

Returns

java.lang.String - "dayTimeDuration" which is the datatype's name