Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


oracle.security.jps.service.policystore.info
Class ValueCollection

java.lang.Object
  extended by oracle.security.jps.service.policystore.info.ValueCollection

All Implemented Interfaces:
ExpressionComponent

public final class ValueCollection
extends java.lang.Object
implements ExpressionComponent

This class represents a collection of values. It can contain either unique values (isSet() == true) or a bag of values, some of which may be duplicates (isSet() == false).


Nested Class Summary

 

Nested classes/interfaces inherited from interface oracle.security.jps.service.policystore.info.ExpressionComponent
ExpressionComponent.Type

 

Constructor Summary
ValueCollection()
           
ValueCollection(boolean allowDuplicates)
           

 

Method Summary
 boolean equals(java.lang.Object that)
           
 ExpressionComponent.Type getComponentType()
          Returns type of the component.
 DataType.TYPE getTypeOfCollection()
          Returns data type of objects in this bag/ set of values.
 java.util.List<? extends DataType> getValue()
          Returns the collection of values.
 java.util.List<? extends DataType> getValues()
          Returns the collection of values.
 int hashCode()
           
 boolean isSet()
           
 boolean isValid()
           
 void setValues(java.util.List<? extends DataType> vals)
          Sets the bag/ set of values.
 java.lang.String toString()
           

 

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

 

Constructor Detail

ValueCollection

public ValueCollection()

ValueCollection

public ValueCollection(boolean allowDuplicates)

Method Detail

getValues

public java.util.List<? extends DataType> getValues()
Returns the collection of values.

getValue

public java.util.List<? extends DataType> getValue()
Returns the collection of values. This method behaves the same way as getValue.

setValues

public void setValues(java.util.List<? extends DataType> vals)
               throws java.lang.IllegalArgumentException
Sets the bag/ set of values.
Throws:
java.lang.IllegalArgumentException - if: 1. Duplicates are not allowed and vals contains duplicates OR 2. DataType of all values in vals is not the same. A ValueCollection can have elements of a single data type only.

getTypeOfCollection

public DataType.TYPE getTypeOfCollection()
Returns data type of objects in this bag/ set of values. Returns null if the bag/ set has no values.

getComponentType

public ExpressionComponent.Type getComponentType()
Description copied from interface: ExpressionComponent
Returns type of the component.
Specified by:
getComponentType in interface ExpressionComponent
Returns:

isValid

public boolean isValid()

toString

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

isSet

public boolean isSet()

equals

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

hashCode

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

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


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