Skip navigation links


oracle.iam.policyengine.vo
Class ValueObject

java.lang.Object
  extended by oracle.iam.policyengine.vo.ValueObject

All Implemented Interfaces:
java.io.Serializable, java.util.Map

public class ValueObject
extends java.lang.Object
implements java.util.Map, java.io.Serializable
See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry

 

Field Summary
static java.lang.String PATH_DELIMS
           

 

Constructor Summary
ValueObject()
           

 

Method Summary
 void add(java.lang.String path, java.lang.Object value)
           
 void clear()
           
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 void createEvalListMap()
          Evaluate each path in the tokenizerMap as if evaluating against a condition and save the resulting EvalList objects in a map for later user.
 java.util.Set entrySet()
           
 java.lang.Object get(java.lang.Object key)
          Retrieve a path from the ValueObject based on the specified key.
 java.util.Map getAttributes()
           
 boolean getBoolean(java.lang.String name)
           
 java.util.Date getDate(java.lang.String name)
          Coerce an object into a date.
 java.util.Date getDate(java.lang.String name, boolean throwExceptions)
          Coerce an object into a date.
 java.util.Date getDate(java.lang.String name, boolean throwExceptions, java.util.Locale locale)
          Coerce a string into a date.
 int getEvalListMapSize()
           
 int getInt(java.lang.String name)
          Coerce an Object into an int primitive.
 java.util.List getList(java.lang.String name)
           
 java.util.List getListOfStrings(java.lang.String name)
           
 java.lang.Object getLocal(java.lang.String keyName)
          Retrieve value by key, using alias for key if one exists
 long getLong(java.lang.String name)
          Coerce an Object value into a long primitive.
 ValueObject getObject(java.lang.String name)
           
 java.util.Set getPathSet()
           
 java.lang.String getPathToRoot()
           
 java.lang.String getString(java.lang.String name)
           
 java.util.Map getTokenizerMap()
           
 boolean isEmpty()
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 void putAll(java.util.Map src)
           
 void putAttributesNoPath(java.util.Map attrs)
           
 java.lang.Object remove(java.lang.Object key)
           
 void setSavePath(boolean savePath)
           
 void setTokenizerMap(java.util.Map tmpMap)
           
 void setTokenizerPathMap(java.util.Map tmpMap)
           
 int size()
           
 java.lang.String toString()
           
 java.util.Collection values()
           

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface java.util.Map
equals, hashCode

 

Field Detail

PATH_DELIMS

public static final java.lang.String PATH_DELIMS
See Also:
Constant Field Values

Constructor Detail

ValueObject

public ValueObject()

Method Detail

add

public void add(java.lang.String path,
                java.lang.Object value)

getBoolean

public boolean getBoolean(java.lang.String name)

getDate

public java.util.Date getDate(java.lang.String name)
Coerce an object into a date.

getDate

public java.util.Date getDate(java.lang.String name,
                              boolean throwExceptions)
                       throws ValueObjectException
Coerce an object into a date.
Throws:
ValueObjectException

getDate

public java.util.Date getDate(java.lang.String name,
                              boolean throwExceptions,
                              java.util.Locale locale)
                       throws ValueObjectException
Coerce a string into a date. Partially localized. This should REALLY be fully localized.
Throws:
ValueObjectException

getInt

public int getInt(java.lang.String name)
Coerce an Object into an int primitive.

getList

public java.util.List getList(java.lang.String name)

getListOfStrings

public java.util.List getListOfStrings(java.lang.String name)

getLong

public long getLong(java.lang.String name)
Coerce an Object value into a long primitive.

getObject

public ValueObject getObject(java.lang.String name)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getString

public java.lang.String getString(java.lang.String name)

getAttributes

public java.util.Map getAttributes()

putAttributesNoPath

public void putAttributesNoPath(java.util.Map attrs)

size

public int size()
Specified by:
size in interface java.util.Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map

get

public java.lang.Object get(java.lang.Object key)
Retrieve a path from the ValueObject based on the specified key. In savePath mode (i.e. for IdentityAudit) always return an EvalList In standard mode do a standard path fetch
Specified by:
get in interface java.util.Map
Parameters:
key -
Returns:

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
                     throws java.lang.IllegalArgumentException
Specified by:
put in interface java.util.Map
Throws:
java.lang.IllegalArgumentException

remove

public java.lang.Object remove(java.lang.Object key)
                        throws java.lang.IllegalArgumentException
Specified by:
remove in interface java.util.Map
Throws:
java.lang.IllegalArgumentException

putAll

public void putAll(java.util.Map src)
Specified by:
putAll in interface java.util.Map

clear

public void clear()
Specified by:
clear in interface java.util.Map

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map

getLocal

public java.lang.Object getLocal(java.lang.String keyName)
Retrieve value by key, using alias for key if one exists
Parameters:
keyName - - Name of the key, may be an alias
Returns:
value

getPathToRoot

public java.lang.String getPathToRoot()

setSavePath

public void setSavePath(boolean savePath)

getPathSet

public java.util.Set getPathSet()
                         throws ValidationFailedException
Throws:
ValidationFailedException

createEvalListMap

public void createEvalListMap()
Evaluate each path in the tokenizerMap as if evaluating against a condition and save the resulting EvalList objects in a map for later user.

setTokenizerMap

public void setTokenizerMap(java.util.Map tmpMap)

setTokenizerPathMap

public void setTokenizerPathMap(java.util.Map tmpMap)

getTokenizerMap

public java.util.Map getTokenizerMap()

getEvalListMapSize

public int getEvalListMapSize()

Skip navigation links


Copyright © 2015, Oracle and/or its affiliates. All rights reserved.