Project Aristotle - ArisID Attribute Services

org.openliberty.arisidbeans
Class PropertyValue

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
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
Direct Known Subclasses:
ModPropertyValue, PropertyFilterValue

public class PropertyValue
extends java.util.ArrayList

PropertyValue is used to hold property values to be added 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

Constructor Summary
PropertyValue(java.lang.String name, java.util.List values)
          PropertyValue is initialized with attributeName and attributeValues List
PropertyValue(java.lang.String name, java.util.List values, java.util.Locale locale)
          PropertyValue is initialized with attributeName, attributeValues List and locale
PropertyValue(java.lang.String name, java.util.List values, java.lang.String locale)
          PropertyValue is initialized with attributeName, attributeValues List and locale
PropertyValue(java.lang.String name, java.lang.Object value)
          PropertyValue is initialized with attributeName and attributeValue
PropertyValue(java.lang.String name, java.lang.Object value, java.util.Locale locale)
          PropertyValue is initialized with attributeName and attributeValue
PropertyValue(java.lang.String name, java.lang.Object value, java.lang.String locale)
          PropertyValue is initialized with attributeName and attributeValue
 
Method Summary
 boolean compare(java.lang.String val)
          Compares the supplied value with each of the Property Values and returns TRUE if the value matches
 boolean compareIgnoreCase(java.lang.String val)
          Compares the supplied value with each of the Property Values and returns TRUE if the value matches ignoring case
 java.lang.String getLocale()
          Returns the locale of the Property
 java.lang.String getName()
          Returns the name of the Property
 java.util.List getStringValues()
          Returns the Property Values converted to String.
 
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
 

Constructor Detail

PropertyValue

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

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

PropertyValue

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

Parameters:
name - Property Name
value - Property Value

PropertyValue

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

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

PropertyValue

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

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

PropertyValue

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

Parameters:
name - Property Name
value - Property Value
locale - Language code

PropertyValue

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

Parameters:
name - Property Name
value - Property Value
locale - Locale value
Method Detail

getName

public java.lang.String getName()
Returns the name of the Property

Returns:
Property Name

getLocale

public java.lang.String getLocale()
Returns the locale of the Property

Returns:
Property Locale

getStringValues

public java.util.List getStringValues()
Returns the Property Values converted to String. If the PropertyValue is Byte array this is converted to Base64 encoded value.

Returns:
List of Property Values

compare

public boolean compare(java.lang.String val)
Compares the supplied value with each of the Property Values and returns TRUE if the value matches

Parameters:
val - Property Value to be compared
Returns:
TRUE if the supplied value matches with one of the values of the Property

compareIgnoreCase

public boolean compareIgnoreCase(java.lang.String val)
Compares the supplied value with each of the Property Values and returns TRUE if the value matches ignoring case

Parameters:
val - Property Value to be compared
Returns:
TRUE if the supplied value matches with one of the values of the Property

OpenLiberty.org - Licensed under Apache APL 2.0