com.atlassian.crowd.integration.model
Class AttributeValues

java.lang.Object
  extended by com.atlassian.crowd.integration.model.AttributeValues
All Implemented Interfaces:
java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
AttributeValues()
           
AttributeValues(java.util.List<java.lang.String> values)
           
AttributeValues(java.lang.String singleValue)
           
 
Method Summary
 void addValue(java.lang.String value)
          Adds value to the list of values.
 boolean equals(java.lang.Object o)
           
 long getID()
          Gets the unique identifier.
 java.lang.String getSingleValue()
          This will return the first value from getValues() or null if no value is found.
 java.util.List<java.lang.String> getValues()
           
 int hashCode()
           
 void setID(long ID)
          Sets the unique identifier for the directory entity.
 void setSingleValue(java.lang.String value)
          Sets value as the only attribute value, removing any others that already exist.
 void setValues(java.util.List<java.lang.String> values)
          Replaces any existing values with a new collection of values.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeValues

public AttributeValues(java.util.List<java.lang.String> values)

AttributeValues

public AttributeValues()

AttributeValues

public AttributeValues(java.lang.String singleValue)
Method Detail

getID

public long getID()
Gets the unique identifier.

Returns:
The value.

setID

public void setID(long ID)
Sets the unique identifier for the directory entity.

Parameters:
ID - The value.

getValues

public java.util.List<java.lang.String> getValues()

getSingleValue

public java.lang.String getSingleValue()
This will return the first value from getValues() or null if no value is found.

Returns:
will return null or the first Object from the underlying List

setSingleValue

public void setSingleValue(java.lang.String value)
Sets value as the only attribute value, removing any others that already exist.

Parameters:
value -

setValues

public void setValues(java.util.List<java.lang.String> values)
Replaces any existing values with a new collection of values.

Parameters:
values -

addValue

public void addValue(java.lang.String value)
Adds value to the list of values. Does not replace any existing members.

Parameters:
value -

toString

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

equals

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

hashCode

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


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.