Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


oracle.security.jps.service.policystore.info
Class OpssDayTimeDuration

java.lang.Object
  extended by oracle.security.jps.service.policystore.info.DataType
      extended by oracle.security.jps.service.policystore.info.OpssDayTimeDuration

All Implemented Interfaces:
ExpressionComponent

public class OpssDayTimeDuration
extends DataType

Represents a day time duration object as defined by http://www.w3.org/2001/XMLSchema#dayTimeDuration.


Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.security.jps.service.policystore.info.DataType
DataType.TYPE

 

Nested classes/interfaces inherited from interface oracle.security.jps.service.policystore.info.ExpressionComponent
ExpressionComponent.Type

 

Constructor Summary
OpssDayTimeDuration()
          Retruns a day time duration with all fields 0.
OpssDayTimeDuration(long days, long hours, long minutes, long seconds, long fractionalSecs, boolean negative)
           
OpssDayTimeDuration(java.lang.String str)
           

 

Method Summary
 boolean equals(java.lang.Object other)
          Two OpssDayTimeDuration objects are equal if their day, hours, mintues, seconds and fractions are equal.
 ExpressionComponent.Type getComponentType()
          Returns type of the component.
 long getDays()
           
 long getFractionalSecs()
           
 long getHours()
           
 long getMinutes()
           
 long getSeconds()
           
 DataType.TYPE getType()
          For all concrete subclasses, this method is required so that function evaluators at runtime don't need to keep doing instanceof
 OpssDayTimeDuration getValue()
          Returns an object representing real value of this data type.
 int hashCode()
          Overwrite Object's hashCode, since the equals method was overwritten.
 boolean isNegative()
           
 boolean isValid()
           
 void setNegative(boolean neg)
          Sets whether the value of this day time duration is negative.
 java.lang.String toString()
          convert to an ISO Formatted dayTimeDuration object.
static OpssDayTimeDuration valueOf(java.lang.String str)
          Given a standard formatted string, generate a DayTimeDuration object.

 

Methods inherited from class oracle.security.jps.service.policystore.info.DataType
getDataTypeObjectFromString, getDataTypeObjectFromString, getTypeClassFromClassName, getTypeFromClass

 

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

 

Constructor Detail

OpssDayTimeDuration

public OpssDayTimeDuration()
Retruns a day time duration with all fields 0.

OpssDayTimeDuration

public OpssDayTimeDuration(long days,
                           long hours,
                           long minutes,
                           long seconds,
                           long fractionalSecs,
                           boolean negative)
                    throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

OpssDayTimeDuration

public OpssDayTimeDuration(java.lang.String str)
                    throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

Method Detail

getValue

public OpssDayTimeDuration getValue()
Description copied from class: DataType
Returns an object representing real value of this data type. For example, OpssInteger.getValue will return an Integer object.
Specified by:
getValue in class DataType
Returns:
value of this object.

getType

public final DataType.TYPE getType()
Description copied from class: DataType
For all concrete subclasses, this method is required so that function evaluators at runtime don't need to keep doing instanceof
Specified by:
getType in class DataType
Returns:
Date Type of this object, always TYPE.DAYTIME_DURATION

getDays

public long getDays()
Returns:
number of days for this dayTimeDuration.

getHours

public long getHours()
Returns:
number of hours for this dayTimeDuration.

getMinutes

public long getMinutes()
Returns:
number of minutes for this dayTimeDuration.

getSeconds

public long getSeconds()
Returns:
number of seconds for this dayTimeDuration.

getFractionalSecs

public long getFractionalSecs()
Returns:
number of fractional seconds for this dayTimeDuration.

isNegative

public boolean isNegative()
Returns:
true if the DayTime duration is -ve, false otherwise.

setNegative

public void setNegative(boolean neg)
Sets whether the value of this day time duration is negative.
Parameters:
neg -

equals

public boolean equals(java.lang.Object other)
Two OpssDayTimeDuration objects are equal if their day, hours, mintues, seconds and fractions are equal.
Specified by:
equals in class DataType
Returns:
true if this object is equal to other.

hashCode

public int hashCode()
Overwrite Object's hashCode, since the equals method was overwritten.
Specified by:
hashCode in class DataType
Returns:
hash value of this object.

toString

public java.lang.String toString()
convert to an ISO Formatted dayTimeDuration object.
Specified by:
toString in class DataType

valueOf

public static OpssDayTimeDuration valueOf(java.lang.String str)
                                   throws java.lang.IllegalArgumentException
Given a standard formatted string, generate a DayTimeDuration object.
Throws:
java.lang.IllegalArgumentException

getComponentType

public ExpressionComponent.Type getComponentType()
Description copied from interface: ExpressionComponent
Returns type of the component.
Returns:

isValid

public boolean isValid()

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


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