|
Oracle Role Manager Java API Reference 10g (10.1.4) E14613-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.iam.rm.server_api.model.Type
public class Type
A representation of a general type supporting both primitive types and object types. <p/> For all types except TYPE_OBJECT
, this is a simply a form of type enumeration. In the case where the type is TYPE_OBJECT
, there will also be a related object (or entity) type.
Field Summary | |
---|---|
static int |
TYPE_BINARY Static variable representing binary ( 7 ). |
static int |
TYPE_BOOLEAN Static variable representing boolean ( 2 ). |
static int |
TYPE_DATETIME Static variable representing datetime ( 4 ). |
static int |
TYPE_DECIMAL Static variable representing decimal ( 3 ). |
static int |
TYPE_INTEGER Static variable representing integer ( 1 ). |
static int |
TYPE_OBJECT Static variable representing object ( 6 ). |
static int |
TYPE_STRING Static variable representing string ( 5 ). |
Constructor Summary | |
---|---|
Type(int type) Creates a primitive type. |
|
Type(java.lang.String objectType) Creates an object type. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getObjectType() Gets the object type that this Type represents. |
int |
getType() Gets the type that this Type represents. |
int |
hashCode() |
void |
validateType(java.lang.Object value) Validates the value based on this type. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_INTEGER
1
).
public static final int TYPE_BOOLEAN
2
).
public static final int TYPE_DECIMAL
3
).
public static final int TYPE_DATETIME
4
).
public static final int TYPE_STRING
5
).
public static final int TYPE_OBJECT
6
).
public static final int TYPE_BINARY
7
).
Constructor Detail |
---|
public Type(int type)
type
- integer representing the type for this Typejava.lang.IllegalArgumentException
- if the type is not a known type or the TYPE_OBJECT
type is provided.TYPE_INTEGER
, TYPE_BOOLEAN
, TYPE_DECIMAL
, TYPE_DATETIME
, TYPE_STRING
, TYPE_BINARY
public Type(java.lang.String objectType)
objectType
- object type that this will represent. Must not be null.java.lang.IllegalArgumentException
- if the object type provided is null.Method Detail |
---|
public int getType()
public java.lang.String getObjectType()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void validateType(java.lang.Object value)
value
- value to validatejava.lang.ClassCastException
- if the type of the value provided does not match the expected type.
|
Oracle Role Manager Java API Reference 10g (10.1.4) E14613-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |