Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E12031-02


oracle.iam.rm.server_api.model
Class Type

java.lang.Object
  extended by oracle.iam.rm.server_api.model.Type

All Implemented Interfaces:
java.io.Serializable

public class Type
extends java.lang.Object
implements java.io.Serializable

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.

See Also:
Serialized Form

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

TYPE_INTEGER

public static final int TYPE_INTEGER
Static variable representing integer (1).
See Also:
Constant Field Values

TYPE_BOOLEAN

public static final int TYPE_BOOLEAN
Static variable representing boolean (2).
See Also:
Constant Field Values

TYPE_DECIMAL

public static final int TYPE_DECIMAL
Static variable representing decimal (3).
See Also:
Constant Field Values

TYPE_DATETIME

public static final int TYPE_DATETIME
Static variable representing datetime (4).
See Also:
Constant Field Values

TYPE_STRING

public static final int TYPE_STRING
Static variable representing string (5).
See Also:
Constant Field Values

TYPE_OBJECT

public static final int TYPE_OBJECT
Static variable representing object (6).
See Also:
Constant Field Values

TYPE_BINARY

public static final int TYPE_BINARY
Static variable representing binary (7).
See Also:
Constant Field Values

Constructor Detail

Type

public Type(int type)
Creates a primitive type.
Parameters:
type - integer representing the type for this Type
Throws:
java.lang.IllegalArgumentException - if the type is not a known type or the TYPE_OBJECT type is provided.
See Also:
TYPE_INTEGER, TYPE_BOOLEAN, TYPE_DECIMAL, TYPE_DATETIME, TYPE_STRING, TYPE_BINARY

Type

public Type(java.lang.String objectType)
Creates an object type.
Parameters:
objectType - object type that this will represent. Must not be null.
Throws:
java.lang.IllegalArgumentException - if the object type provided is null.

Method Detail

getType

public int getType()
Gets the type that this Type represents.
Returns:
Int representing the type of this Type.

getObjectType

public java.lang.String getObjectType()
Gets the object type that this Type represents.
Returns:
Sting representing the object type for this Type or null if this is not an object type.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

validateType

public void validateType(java.lang.Object value)
Validates the value based on this type.
Parameters:
value - value to validate
Throws:
java.lang.ClassCastException - if the type of the value provided does not match the expected type.

Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E12031-02


Copyright © 2007, 2008 Oracle. All Rights Reserved.