Project Aristotle - ArisID Attribute Services

org.openliberty.arisidbeans
Class ModPropertyValue

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by org.openliberty.arisidbeans.PropertyValue
                  extended by org.openliberty.arisidbeans.ModPropertyValue
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class ModPropertyValue
extends PropertyValue

PropertyValue is used to hold property values to be modified in Attribute Authority for a DigitalSubject. A PropertyValue may be either String or Binary based on the datatype of the Property in Attribute Authority.

See Also:
Serialized Form

Field Summary
static int ADD_VALUE
           
static int DELETE_VALUE
           
static int REPLACE_VALUE
           
 
Constructor Summary
ModPropertyValue(java.lang.String name, java.util.List values)
          ModPropertyValue is initialized with attributeName and attributeValues
ModPropertyValue(java.lang.String name, java.util.List values, int modOp)
          ModPropertyValue is initialized with attributeName and attributeValues and modifyOperation
ModPropertyValue(java.lang.String name, java.util.List values, int modOp, java.util.Locale locale)
          ModPropertyValue is initialized with attributeName and attributeValues and modifyOperation
ModPropertyValue(java.lang.String name, java.util.List values, int modOp, java.lang.String locale)
          ModPropertyValue is initialized with attributeName and attributeValues and modifyOperation
ModPropertyValue(java.lang.String name, java.util.List values, java.util.Locale locale)
          ModPropertyValue is initialized with attributeName and attributeValues
ModPropertyValue(java.lang.String name, java.util.List values, java.lang.String locale)
          ModPropertyValue is initialized with attributeName and attributeValues
ModPropertyValue(java.lang.String name, java.lang.Object value)
          ModPropertyValue is initialized with attributeName and attributeValue
ModPropertyValue(java.lang.String name, java.lang.Object value, int modOp)
          ModPropertyValue is initialized with attributeName and attributeValue and modifyOperation
ModPropertyValue(java.lang.String name, java.lang.Object value, int modOp, java.util.Locale locale)
          ModPropertyValue is initialized with attributeName and attributeValue and modifyOperation
ModPropertyValue(java.lang.String name, java.lang.Object value, int modOp, java.lang.String locale)
          ModPropertyValue is initialized with attributeName and attributeValue and modifyOperation
ModPropertyValue(java.lang.String name, java.lang.Object value, java.util.Locale locale)
          ModPropertyValue is initialized with attributeName and attributeValue
ModPropertyValue(java.lang.String name, java.lang.Object value, java.lang.String locale)
          ModPropertyValue is initialized with attributeName and attributeValue
 
Method Summary
 int getModOperation()
          Returns the Modify Opeartion
 void setModOperation(int modOp)
          Set the Modify Operation
 
Methods inherited from class org.openliberty.arisidbeans.PropertyValue
compare, compareIgnoreCase, getLocale, getName, getStringValues
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

ADD_VALUE

public static final int ADD_VALUE
See Also:
Constant Field Values

DELETE_VALUE

public static final int DELETE_VALUE
See Also:
Constant Field Values

REPLACE_VALUE

public static final int REPLACE_VALUE
See Also:
Constant Field Values
Constructor Detail

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.util.List values)
ModPropertyValue is initialized with attributeName and attributeValues

Parameters:
name - Property Name
values - List of Property values

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.util.List values,
                        int modOp)
                 throws InvalidValueException
ModPropertyValue is initialized with attributeName and attributeValues and modifyOperation

Parameters:
name - Property Name
values - List of Property values
modOp - Valid Modify Operation - ADD_VALUE/DELETE_VALUE/REPLACE_VALUE
Throws:
InvalidValueException - When the supplied modify operation is invalid

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.lang.Object value)
ModPropertyValue is initialized with attributeName and attributeValue

Parameters:
name - Property Name
value - Property value

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.lang.Object value,
                        int modOp)
                 throws InvalidValueException
ModPropertyValue is initialized with attributeName and attributeValue and modifyOperation

Parameters:
name - Property Name
value - Property Value
modOp - Valid Modify Operation - ADD_VALUE/ DELETE_VALUE/ REPLACE_VALUE
Throws:
InvalidValueException - When the supplied modify operation is invalid

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.util.List values,
                        java.lang.String locale)
ModPropertyValue is initialized with attributeName and attributeValues

Parameters:
name - Property Name
values - List of Property values
locale - Launguage code

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.util.List values,
                        java.util.Locale locale)
ModPropertyValue is initialized with attributeName and attributeValues

Parameters:
name - Property Name
values - List of Property values
locale - Locale value

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.util.List values,
                        int modOp,
                        java.lang.String locale)
                 throws InvalidValueException
ModPropertyValue is initialized with attributeName and attributeValues and modifyOperation

Parameters:
name - Property Name
values - List of Property values
modOp - Valid Modify Operation - ADD_VALUE/DELETE_VALUE/REPLACE_VALUE
locale - Launguage code
Throws:
InvalidValueException - When the supplied modify operation is invalid

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.util.List values,
                        int modOp,
                        java.util.Locale locale)
                 throws InvalidValueException
ModPropertyValue is initialized with attributeName and attributeValues and modifyOperation

Parameters:
name - Property Name
values - List of Property values
modOp - Valid Modify Operation - ADD_VALUE/DELETE_VALUE/REPLACE_VALUE
locale - Locale value
Throws:
InvalidValueException - When the supplied modify operation is invalid

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.lang.Object value,
                        java.lang.String locale)
ModPropertyValue is initialized with attributeName and attributeValue

Parameters:
name - Property Name
value - Property value
locale - Launguage code

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.lang.Object value,
                        java.util.Locale locale)
ModPropertyValue is initialized with attributeName and attributeValue

Parameters:
name - Property Name
value - Property value
locale - Locale value

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.lang.Object value,
                        int modOp,
                        java.lang.String locale)
                 throws InvalidValueException
ModPropertyValue is initialized with attributeName and attributeValue and modifyOperation

Parameters:
name - Property Name
value - Property Value
modOp - Valid Modify Operation - ADD_VALUE/ DELETE_VALUE/ REPLACE_VALUE
locale - Launguage code
Throws:
InvalidValueException - When the supplied modify operation is invalid

ModPropertyValue

public ModPropertyValue(java.lang.String name,
                        java.lang.Object value,
                        int modOp,
                        java.util.Locale locale)
                 throws InvalidValueException
ModPropertyValue is initialized with attributeName and attributeValue and modifyOperation

Parameters:
name - Property Name
value - Property Value
modOp - Valid Modify Operation - ADD_VALUE/ DELETE_VALUE/ REPLACE_VALUE
locale - Locale value
Throws:
InvalidValueException - When the supplied modify operation is invalid
Method Detail

getModOperation

public int getModOperation()
Returns the Modify Opeartion

Returns:
Modify Operation (ADD_VALUE/ DELETE_VALUE/ REPLACE_VALUE)

setModOperation

public void setModOperation(int modOp)
                     throws InvalidValueException
Set the Modify Operation

Parameters:
modOp - Valid Modify Operation - ADD_VALUE/ DELETE_VALUE/ REPLACE_VALUE
Throws:
InvalidValueException - When the supplied modify operation is invalid

OpenLiberty.org - Licensed under Apache APL 2.0