|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-01 ESAPI |
|||||||||
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.OpssDate
public class OpssDate
The class stands for date data type which supported by OPSS policy store and as defined by http://www.w3.org/2001/XMLSchema#date. The lexical represenation of date is as follows: '-'? yyyy '-' mm '-' dd (zzzzzz), where '-'? yyyy is a four-or-more digit optionally negative-signed numeral that represents the year; if more than four digits, leading zeros are prohibited; '0000' is prohibited; a plus sign is not permitted the remaining '-'s are separators between parts of the date portion; the first mm is a two-digit numeral that represents the month; dd is a two-digit numeral that represents the day; OpssDate manages date in milliseconds if millisPrecision is set to true. Otherwise, it ignores milliseconds when comparing dates etc. Please note that in this case, the behavior of OpssDate.equals() will not be same to Date.equals() because java Date.equals compares millisecond values of two dates. OpssDate is designed more for comparing two dates that are generated using different means (from Calendar or String or milliseconds). zzzzzz (if present) represents the signed time offset from UTC. 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 | |
---|---|
OpssDate(java.util.Date val) Constructor |
|
OpssDate(java.util.Date val, int tzoffset) Creates a date with given offset from UTC. |
|
OpssDate(java.util.Date val, java.lang.String tzname) Creates a date with given time zone. |
Method Summary | |
---|---|
static int |
compare(OpssDate date1, OpssDate date2) Compares two OpssDate objects. |
boolean |
equals(java.lang.Object that) Override java method for accurate list and hashtable lookups. |
ExpressionComponent.Type |
getComponentType() Returns type of the component. |
java.util.Date |
getDate() Returns the Date object. |
int |
getDayOfMonth() Returns the day of the month represented by this date.A month is represented by an integer from 0 to 11; 0 is January, 1 is February, and so forth; thus 11 is December. |
int |
getMonth() Returns the month represented by this date.A month is represented by an integer from 0 to 11; 0 is January, 1 is February, and so forth; thus 11 is December. |
java.lang.String |
getMonthString() Returns the month name represented by this date as three letters. |
java.util.Date |
getTime() Returns the time from the Calendar object created with the represeneted Date object. |
DataType.TYPE |
getType() For all concrete subclasses, this method is required so that function evaluators at runtime don't need to keep doing instanceof |
OpssDate |
getValue() Returns an object representing real value of this data type. |
int |
getYear() Returns the year represented by this date. |
int |
hashCode() |
boolean |
isMillisecPrecision() returns true if this object is supposed to maintain milliseconds. |
boolean |
isValid() |
void |
setMillisecPrecision(boolean bool) Indicates whether millisecond privilege must be maintained for this date object. |
java.lang.String |
toISODateString() Return the ISO date string . |
java.lang.String |
toString() |
static OpssDate |
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 OpssDate(java.util.Date val)
val
-java.lang.IllegalArgumentException
- if provided Date is nullpublic OpssDate(java.util.Date val, int tzoffset) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if provided Date is nullpublic OpssDate(java.util.Date val, java.lang.String tzname) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if provided Date is nullMethod Detail |
---|
public void setMillisecPrecision(boolean bool)
public boolean isMillisecPrecision()
public java.lang.String toString()
toString
in class DataType
public java.lang.String toISODateString()
public OpssDate getValue()
DataType
getValue
in class DataType
public final DataType.TYPE getType()
DataType
getType
in class DataType
public static OpssDate valueOf(java.lang.String str) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static int compare(OpssDate date1, OpssDate date2)
public boolean equals(java.lang.Object that)
DataType
equals
in class DataType
public ExpressionComponent.Type getComponentType()
ExpressionComponent
public boolean isValid()
public int getYear()
public int getMonth()
public java.lang.String getMonthString()
public int getDayOfMonth()
public java.util.Date getDate()
public java.util.Date getTime()
public int hashCode()
hashCode
in class OpssDateTimeObject
|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-01 ESAPI |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |