站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档

Duration (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis.types
Class Duration

java.lang.Object
  extended byorg.apache.axis.types.Duration
All Implemented Interfaces:
Serializable

public class Duration
extends Object
implements Serializable

Implementation of the XML Schema type duration

Author:
Wes Moulder
See Also:
XML Schema 3.2.6, Serialized Form

Constructor Summary
Duration()
          Default no-arg constructor
Duration(boolean negative, int aYears, int aMonths, int aDays, int aHours, int aMinutes, double aSeconds)
           
Duration(String duration)
          This method takes a string that represents an xsd:duration and parses it.
 
Method Summary
 boolean equals(Object object)
          This currently does a verbatim check on the object.
 int getDays()
           
 int getHours()
           
 int getMinutes()
           
 int getMonths()
           
 double getSeconds()
           
 int getYears()
           
 int hashCode()
           
 boolean isNegative()
           
 void parseDate(String date)
          This method parses the date portion of a duration.
 void parseTime(String time)
          This method parses the time portion of a duration.
 void setDays(int days)
           
 void setHours(int hours)
           
 void setMinutes(int minutes)
           
 void setMonths(int months)
           
 void setNegative(boolean negative)
           
 void setSeconds(int seconds)
           
 void setYears(int years)
           
 String toString()
          This returns the xml representation of an xsd:duration object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Duration

public Duration()
Default no-arg constructor


Duration

public Duration(boolean negative,
                int aYears,
                int aMonths,
                int aDays,
                int aHours,
                int aMinutes,
                double aSeconds)
Parameters:
negative -
aYears -
aMonths -
aDays -
aHours -
aMinutes -
aSeconds -

Duration

public Duration(String duration)
         throws IllegalArgumentException
This method takes a string that represents an xsd:duration and parses it.

Parameters:
duration -
Throws:
SchemaException - if the string doesn't parse correctly.
IllegalArgumentException
Method Detail

parseTime

public void parseTime(String time)
This method parses the time portion of a duration.

Parameters:
time -

parseDate

public void parseDate(String date)
This method parses the date portion of a duration.

Parameters:
date -

isNegative

public boolean isNegative()

getYears

public int getYears()

getMonths

public int getMonths()

getDays

public int getDays()

getHours

public int getHours()

getMinutes

public int getMinutes()

getSeconds

public double getSeconds()

setNegative

public void setNegative(boolean negative)
Parameters:
negative -

setYears

public void setYears(int years)
Parameters:
years -

setMonths

public void setMonths(int months)
Parameters:
months -

setDays

public void setDays(int days)
Parameters:
days -

setHours

public void setHours(int hours)
Parameters:
hours -

setMinutes

public void setMinutes(int minutes)
Parameters:
minutes -

setSeconds

public void setSeconds(int seconds)
Parameters:
seconds -

toString

public String toString()
This returns the xml representation of an xsd:duration object.


equals

public boolean equals(Object object)
This currently does a verbatim check on the object. If you have a duration that is 60 minutes, and one that is 1 hour, they won't be equal.

Parameters:
object -

hashCode

public int hashCode()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.