public class PatternRDN extends Object
| Constructor and Description |
|---|
PatternRDN(String type,
ArrayList<org.forgerock.opendj.ldap.ByteString> valuePattern,
String dnString)
Create a new RDN pattern composed of a single attribute-value pair.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addValue(String type,
ArrayList<org.forgerock.opendj.ldap.ByteString> valuePattern,
String dnString)
Add another attribute-value pair to the pattern.
|
int |
getNumValues()
Retrieves the number of attribute-value pairs contained in this
RDN pattern.
|
boolean |
matchesRDN(RDN rdn)
Determine whether a given RDN matches the pattern.
|
public PatternRDN(String type, ArrayList<org.forgerock.opendj.ldap.ByteString> valuePattern, String dnString) throws DirectoryException
type - The attribute type pattern.valuePattern - The attribute value pattern.dnString - The DN pattern containing the attribute-value pair.DirectoryException - If the attribute-value pair is not valid.public boolean addValue(String type, ArrayList<org.forgerock.opendj.ldap.ByteString> valuePattern, String dnString) throws DirectoryException
type - The attribute type pattern.valuePattern - The attribute value pattern.dnString - The DN pattern containing the attribute-value pair.true if the type-value pair was added to
this RDN, or false if it was not (e.g., it
was already present).DirectoryException - If the attribute-value pair is not valid.public int getNumValues()
public boolean matchesRDN(RDN rdn)
rdn - The RDN to be matched.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.