public class DefaultAttributeValidationPolicy extends Object implements AttributeValidationPolicy
| Constructor and Description |
|---|
DefaultAttributeValidationPolicy()
Default constructor.
|
DefaultAttributeValidationPolicy(boolean ordered)
Constructor for indicating whether or not attribute values should be ordered alphabetically.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
parse(String buffer)
Validates attribute contained in the buffer and returns an LdapAttribute.
|
void |
setOrdered(boolean ordered)
Indicates whether or not the attribute values should be ordered alphabetically.
|
public DefaultAttributeValidationPolicy()
public DefaultAttributeValidationPolicy(boolean ordered)
ordered - value.public void setOrdered(boolean ordered)
ordered - value.public Attribute parse(String buffer)
Ensures attributes meets one of four prescribed patterns for valid attributes:
Upon success an LdapAttribute object is returned.
parse in interface AttributeValidationPolicybuffer - Buffer containing the line parsed from the resource.InvalidAttributeFormatException - if the attribute does not meet one of the three patterns above
or the attribute cannot be parsed.