|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.util.AttributeUtils
A set of utility fuctions for working with Attributes.
Constructor Summary | |
AttributeUtils()
|
Method Summary | |
static boolean |
containsAnyValues(javax.naming.directory.Attribute attr,
java.lang.Object[] compared,
AttributeType type)
|
static boolean |
containsValue(javax.naming.directory.Attribute attr,
java.lang.Object compared,
AttributeType type)
|
static javax.naming.directory.Attribute |
getDifference(javax.naming.directory.Attribute attr0,
javax.naming.directory.Attribute attr1)
Creates a new attribute which contains the values representing the difference of two attributes. |
static javax.naming.directory.Attribute |
getUnion(javax.naming.directory.Attribute attr0,
javax.naming.directory.Attribute attr1)
Creates a new attribute which contains the values representing the union of two attributes. |
static java.lang.String |
toString(javax.naming.directory.Attributes attributes)
Return a string representing the attributes |
static java.lang.String |
toString(java.lang.String tabs,
javax.naming.directory.Attributes attributes)
Return a string representing the attributes with tabs in front of the string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AttributeUtils()
Method Detail |
public static boolean containsValue(javax.naming.directory.Attribute attr, java.lang.Object compared, AttributeType type) throws javax.naming.NamingException
javax.naming.NamingException
public static boolean containsAnyValues(javax.naming.directory.Attribute attr, java.lang.Object[] compared, AttributeType type) throws javax.naming.NamingException
javax.naming.NamingException
public static javax.naming.directory.Attribute getDifference(javax.naming.directory.Attribute attr0, javax.naming.directory.Attribute attr1) throws javax.naming.NamingException
IllegalArgumentException
is
raised. Note that the order of arguments makes a difference.
attr0
- the first attributeattr1
- the second attribute
javax.naming.NamingException
- if there are problems accessing attribute valuespublic static javax.naming.directory.Attribute getUnion(javax.naming.directory.Attribute attr0, javax.naming.directory.Attribute attr1) throws javax.naming.NamingException
IllegalArgumentException
is raised.
attr0
- the first attributeattr1
- the second attribute
javax.naming.NamingException
- if there are problems accessing attribute valuespublic static java.lang.String toString(java.lang.String tabs, javax.naming.directory.Attributes attributes)
tabs
- Spaces to be added before the stringattributes
- The attributes to print
public static java.lang.String toString(javax.naming.directory.Attributes attributes)
attributes
- The attributes to print
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |