Package org.eclipse.wst.xml.xpath2.processor.internal.types
public class XSDayTimeDuration extends org.eclipse.wst.xml.xpath2.processor.internal.types.XSDurationA 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.Object | clone() Creates a copy of this representation of a time duration |
public org.eclipse.wst.xml.xpath2.api.ResultSequence | constructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg) |
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) |
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition | getTypeDefinition() |
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) |
public static 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 |
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) |
public java.lang.String | string_type() Retrieves the datatype's full pathname |
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) |
public java.lang.String | type_name() Retrives the datatype's name |
Constructor Detail |
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
public XSDayTimeDuration(double secs)
Initialises to the given number of seconds
public XSDayTimeDuration()
Initialises to a duration of no time (0days, 0hours, 0minutes, 0seconds)
public XSDayTimeDuration(javax.xml.datatype.Duration d)
Methods Detail |
public java.lang.Object clone()
Creates a copy of this representation of a time duration
java.lang.Object
- New XSDayTimeDuration representing the duration of time stored
java.lang.CloneNotSupportedException
public org.eclipse.wst.xml.xpath2.api.ResultSequence constructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
arg
org.eclipse.wst.xml.xpath2.api.ResultSequence
org.eclipse.wst.xml.xpath2.processor.DynamicError
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)
arg
- The duration of time to divide by
org.eclipse.wst.xml.xpath2.api.ResultSequence
- New XSDayTimeDuration representing the resulting duration after the division
org.eclipse.wst.xml.xpath2.processor.DynamicError
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getTypeDefinition()
org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition
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)
arg
- The duration of time to subtract
org.eclipse.wst.xml.xpath2.api.ResultSequence
- New XSDayTimeDuration representing the resulting duration after the subtraction
org.eclipse.wst.xml.xpath2.processor.DynamicError
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
str
- String represented duration of time
org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration
- New XSDayTimeDuration representing the duration of time supplied
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)
arg
- The duration of time to add
org.eclipse.wst.xml.xpath2.api.ResultSequence
- New XSDayTimeDuration representing the resulting duration after the addition
org.eclipse.wst.xml.xpath2.processor.DynamicError
public java.lang.String string_type()
Retrieves the datatype's full pathname
java.lang.String
- "xs:dayTimeDuration" which is the datatype's full pathname
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)
arg
- The duration of time to multiply by
org.eclipse.wst.xml.xpath2.api.ResultSequence
- New XSDayTimeDuration representing the resulting duration after the multiplication
org.eclipse.wst.xml.xpath2.processor.DynamicError
public java.lang.String type_name()
Retrives the datatype's name
java.lang.String
- "dayTimeDuration" which is the datatype's name