Skip navigation links

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.4.0)
E10660-04


oracle.bpel.services.workflow.task.impl
Class Duration

java.lang.Object
  extended by oracle.bpel.services.workflow.task.impl.Duration

All Implemented Interfaces:
java.io.Serializable

public class Duration
extends java.lang.Object
implements java.io.Serializable
See Also:
Serialized Form

Constructor Summary
Duration(long l)
          Creates a new Duration instance.
Duration(java.lang.String str)
          Creates a new Duration instance.

 

Method Summary
 javax.xml.datatype.Duration getJavaxXMLDatatypeDuration()
          Get this duration as a javax.xml.datatype.Duration object
 long toLong()
          Convert a duration into a long representing the duration in milliseconds.
 java.lang.String toString()
          Convert a duration into a String conforming to ISO8601 and XML Schema specs

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

Duration

public Duration(java.lang.String str)
         throws java.lang.IllegalArgumentException
Creates a new Duration instance.
Parameters:
str - a String value conforming to ISO8601 and XML Schema specs
Throws:
java.lang.IllegalArgumentException - if an error occurs

Duration

public Duration(long l)
         throws java.lang.IllegalArgumentException
Creates a new Duration instance.
Parameters:
l - a long value representing the duration in milliseconds.
Throws:
java.lang.IllegalArgumentException - if an error occurs

Method Detail

toLong

public long toLong()
Convert a duration into a long representing the duration in milliseconds.
Returns:
a long representing the duration

toString

public java.lang.String toString()
Convert a duration into a String conforming to ISO8601 and XML Schema specs
Overrides:
toString in class java.lang.Object
Returns:
a string representing the duration

getJavaxXMLDatatypeDuration

public javax.xml.datatype.Duration getJavaxXMLDatatypeDuration()
Get this duration as a javax.xml.datatype.Duration object
Returns:
a javax.xml.datatype.Duration value

Skip navigation links

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.4.0)
E10660-04


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.