DNPropertyDefinition.java revision 88f16d892d54fd8c3e190cc1f6363638b11ae1a3
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2008 Sun Microsystems, Inc.
* Portions Copyright 2014-2015 ForgeRock AS
*/
/**
* DN property definition.
*/
// Optional base DN which all valid values must be immediately
// subordinate to.
/**
* An interface for incrementally constructing DN property
* definitions.
*/
public static class Builder extends
// Optional base DN which all valid values must be immediately
// subordinate to.
// Private constructor
private Builder(
super(d, propertyName);
}
/**
* Set the base DN which all valid values must be immediately
* subordinate to. By default there is no based DN.
*
* @param baseDN
* The string representation of the base DN.
* @throws IllegalArgumentException
* If the provided string is not a valid DN string
* representation.
*/
throws IllegalArgumentException {
} else {
try {
} catch (DirectoryException e) {
throw new IllegalArgumentException(e);
}
}
}
/**
* Set the base DN which all valid values must be immediately
* subordinate to. By default there is no based DN.
*
* @param baseDN
* The base DN.
*/
}
/**
* {@inheritDoc}
*/
protected DNPropertyDefinition buildInstance(
}
}
/**
* Create a DN property definition builder.
*
* @param d
* The managed object definition associated with this
* property definition.
* @param propertyName
* The property name.
* @return Returns the new boolean property definition builder.
*/
public static Builder createBuilder(
return new Builder(d, propertyName);
}
// Private constructor.
private DNPropertyDefinition(
}
/**
* Get the base DN which all valid values must be immediately
* subordinate to, or <code>null</code> if there is no based DN.
*
* @return Returns the base DN which all valid values must be
* immediately subordinate to.
*/
return baseDN;
}
/**
* {@inheritDoc}
*/
throws PropertyException {
}
}
}
}
/**
* {@inheritDoc}
*/
throws PropertyException {
try {
return dn;
} catch (DirectoryException e) {
} catch (PropertyException e) {
}
}
/**
* {@inheritDoc}
*/
public <R, P> R accept(PropertyDefinitionVisitor<R, P> v, P p) {
return v.visitDN(this, p);
}
/**
* {@inheritDoc}
*/
}
/**
* {@inheritDoc}
*/
}
}