com.edustructures.sifworks
Class SIFDuration

java.lang.Object
  extended by com.edustructures.sifworks.SIFSimpleType<javax.xml.datatype.Duration>
      extended by com.edustructures.sifworks.SIFDuration
All Implemented Interfaces:
java.io.Serializable

public class SIFDuration
extends SIFSimpleType<javax.xml.datatype.Duration>

See Also:
Serialized Form

Constructor Summary
SIFDuration(boolean isPositive, int days, int hours, int minutes, int seconds)
          Creates a new SIFDuration to represent the given amount of time
SIFDuration(javax.xml.datatype.Duration value)
          Creates a new SIFDuration to wrapte the Duration value
SIFDuration(int hours, int minutes, int seconds)
          Creates a new SIFDuration to represent the given amount of time
 
Method Summary
 SIFTypeConverter<javax.xml.datatype.Duration> getTypeConverter()
          Returns a type converter that can be used to create an instance of the datatype from a string
 
Methods inherited from class com.edustructures.sifworks.SIFSimpleType
createField, equals, getDataType, getSQLType, getValue, hashCode, isDoNotEncode, toString, toString, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SIFDuration

public SIFDuration(javax.xml.datatype.Duration value)
Creates a new SIFDuration to wrapte the Duration value

Parameters:
value -

SIFDuration

public SIFDuration(boolean isPositive,
                   int days,
                   int hours,
                   int minutes,
                   int seconds)
Creates a new SIFDuration to represent the given amount of time

Parameters:
isPositive - True if this represents a positive amount of time
days - The number of days
hours - The number of hours
minutes - The number of minutes
seconds - The number of seconds

SIFDuration

public SIFDuration(int hours,
                   int minutes,
                   int seconds)
Creates a new SIFDuration to represent the given amount of time

Parameters:
hours - The number of hours
minutes - The number of minutes
seconds - The number of seconds
Method Detail

getTypeConverter

public SIFTypeConverter<javax.xml.datatype.Duration> getTypeConverter()
Description copied from class: SIFSimpleType
Returns a type converter that can be used to create an instance of the datatype from a string

Specified by:
getTypeConverter in class SIFSimpleType<javax.xml.datatype.Duration>
Returns:
The TypeConverter that is used for this element


Copyright © 2001-2007 Edustructures LLC. All Rights Reserved. SIFWorks® and ADK® are registered trademarks of Edustructures LLC. SIF™ and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.