|
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.OpssYearMonthDuration
public class OpssYearMonthDuration
This class defines a year month duration object as defined by http://www.w3.org/2001/XMLSchema#yearMonthDuration.
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 | |
---|---|
OpssYearMonthDuration() Creates a year month duration with 0 years and 0 months. |
|
OpssYearMonthDuration(long years, long months, boolean negative) |
|
OpssYearMonthDuration(java.lang.String str) Given a string, generates the YearMonthDuration object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other) Two OpssYearMonthDuration objects are equal if their years and months both are equal. |
ExpressionComponent.Type |
getComponentType() Returns type of the component. |
long |
getMonths() |
DataType.TYPE |
getType() For all concrete subclasses, this method is required so that function evaluators at runtime don't need to keep doing instanceof |
OpssYearMonthDuration |
getValue() Returns an object representing real value of this data type. |
long |
getYears() |
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() |
static OpssYearMonthDuration |
valueOf(java.lang.String str) |
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 OpssYearMonthDuration()
public OpssYearMonthDuration(long years, long months, boolean negative) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public OpssYearMonthDuration(java.lang.String str) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
Method Detail |
---|
public long getYears()
public long getMonths()
public boolean isNegative()
public void setNegative(boolean neg)
neg
-public boolean equals(java.lang.Object other)
equals
in class DataType
public int hashCode()
hashCode
in class DataType
public java.lang.String toString()
toString
in class DataType
public OpssYearMonthDuration getValue()
DataType
getValue
in class DataType
public final DataType.TYPE getType()
DataType
getType
in class DataType
public static OpssYearMonthDuration valueOf(java.lang.String str) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public ExpressionComponent.Type getComponentType()
ExpressionComponent
public boolean isValid()
|
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 |