|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E54416-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.jps.service.policystore.info.DataType
oracle.security.jps.service.policystore.info.OpssDateTimeObject
oracle.security.jps.service.policystore.info.OpssTime
public class OpssTime
This class supports time object as defined in http://www.w3.org/2001/XMLSchema#time Arbitrary precision in decimal seconds is supported via fractionsal seconds Also, note that as per ISO 8601 date and time specification, midnight is 00:00:00 (and not 24:00:00), so hour value of 24 is not supported. For more information on how OES supports timezones, see javadoc for OpssDateTimeObject.
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 |
Field Summary |
---|
Fields inherited from class oracle.security.jps.service.policystore.info.OpssDateTimeObject |
---|
OES_SPECIFIC_TZ_OFFSET, PDP_TIMEZONE, PEP_TIMEZONE |
Constructor Summary | |
---|---|
OpssTime(java.util.Date date, int fracs, int tzoffset) Construct a time object from Date object and fractional seconds. |
|
OpssTime(int hour, int min, int sec) Constructor |
|
OpssTime(int hours, int minutes, int seconds, int fracs, int tzoffset) Construct a time object from timezone, hours, minutes, seconds and nanoseconds. |
|
OpssTime(int hours, int minutes, int seconds, int fracs, java.lang.String timezone) Construct a time object from timezone, hours, minutes, seconds and nanoseconds. |
Method Summary | |
---|---|
static int |
compare(OpssTime time1, OpssTime time2) Compares two OpssTime objects. |
boolean |
equals(java.lang.Object that) Override java method for accurate list and hashtable lookups. |
ExpressionComponent.Type |
getComponentType() Returns type of the component. |
int |
getFractionalSeconds() |
int |
getHour() Returns the hours set in the OpssTime object. |
int |
getMinutes() Returns the minutes set in the OpssTime object.A minute is represented by an integer from 0 to 59. |
java.lang.Class |
getRuntimeType() Gets runtime type |
int |
getSeconds() Returns the seconds set in the OpssTime object.A second is represented by an integer from 0 to 59. |
long |
getTimeInMillis() |
DataType.TYPE |
getType() For all concrete subclasses, this method is required so that function evaluators at runtime don't need to keep doing instanceof |
OpssTime |
getValue() Returns an object representing real value of this data type. |
int |
hashCode() Overwrite Object's hashCode, since the equals method was overwritten. |
boolean |
isTimeZoneEqual(OpssTime other) |
boolean |
isValid() |
java.lang.String |
toString() |
static OpssTime |
valueOf(java.lang.String str) |
Methods inherited from class oracle.security.jps.service.policystore.info.OpssDateTimeObject |
---|
getTimeZoneName, getTimeZonesForOffset, getTimeZoneString, getUTCOffset, isTimeZonePresent, isUTC, nthOccurrence |
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 |
---|
public OpssTime(int hour, int min, int sec)
hour
-min
-sec
-public OpssTime(java.util.Date date, int fracs, int tzoffset) throws java.lang.IllegalArgumentException
date
- Date objectfracs
- Fractional secondstzoffset
- offset from UTCjava.lang.IllegalArgumentException
public OpssTime(int hours, int minutes, int seconds, int fracs, int tzoffset) throws java.lang.IllegalArgumentException
hours
- hours between 0 to 23 inclusiveminutes
- minutes between 0 to 59 inclusiveseconds
- seconds between 0 to 59 inclusivefracs
- fractional secondstzoffset
- UTC offset for this timezone.java.lang.IllegalArgumentException
- if precision seconds are -ve or hours (0 - 23), minutes (0 - 59) or seconds (0 - 59) are out of range.public OpssTime(int hours, int minutes, int seconds, int fracs, java.lang.String timezone) throws java.lang.IllegalArgumentException
hours
- hours between 0 to 23 inclusiveminutes
- minutes between 0 to 59 inclusiveseconds
- seconds between 0 to 59 inclusivefracs
- fractional secondstzName
- Name of the time zone.java.lang.IllegalArgumentException
- if precision seconds are -ve or hours (0 - 23), minutes (0 - 59) or seconds (0 - 59) are out of range.Method Detail |
---|
public java.lang.Class getRuntimeType()
public java.lang.String toString()
toString
in class DataType
public static OpssTime valueOf(java.lang.String str)
public static int compare(OpssTime time1, OpssTime time2)
public boolean equals(java.lang.Object that)
DataType
equals
in class DataType
public ExpressionComponent.Type getComponentType()
ExpressionComponent
public boolean isValid()
public int getHour()
public int getMinutes()
public int getSeconds()
public OpssTime getValue()
DataType
getValue
in class DataType
public DataType.TYPE getType()
DataType
getType
in class DataType
public long getTimeInMillis()
public int getFractionalSeconds()
public boolean isTimeZoneEqual(OpssTime other)
other
-public int hashCode()
hashCode
in class OpssDateTimeObject
|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E54416-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |