com.sas.edir
Interface EnterpriseDirectoryAttribute


public interface EnterpriseDirectoryAttribute

An interface to abstract an attribute returned from the directory service

Version:
1.0
Author:
SAS

Method Summary
 boolean add(java.lang.Object attrVal)
          Add a value to the attribute.
 void clear()
          Clear all values from this attribute.
 boolean contains(java.lang.Object attrVal)
          Returns true if the attribute contains the specified value.
 java.lang.Object get()
          Get a value for the attribute.
 java.util.Enumeration getAll()
          Get all values for the attribute
 java.lang.String getName()
          Get the name of this attribute.
 boolean remove(java.lang.Object attrval)
          Remove the value which matches the object given.
 int size()
          Returns the number of values for this attribute
 

Method Detail

add

public boolean add(java.lang.Object attrVal)
Add a value to the attribute.

Parameters:
attrVal - New value to add.

clear

public void clear()
Clear all values from this attribute.

contains

public boolean contains(java.lang.Object attrVal)
Returns true if the attribute contains the specified value.

Returns:
true if the attribute contains the value, false otherwise.

get

public java.lang.Object get()
Get a value for the attribute.

Returns:
A value for this attribute. If the attribute has more than one value, which value is returned is unpredictable.

getAll

public java.util.Enumeration getAll()
Get all values for the attribute

Returns:
An enumeration of values for this attribute.

getName

public java.lang.String getName()
Get the name of this attribute.

Returns:
The attribute name as a string.

remove

public boolean remove(java.lang.Object attrval)
Remove the value which matches the object given.

Parameters:
attrval - The value to remove.
Returns:
True if a value which equals attrval was found and removed.

size

public int size()
Returns the number of values for this attribute