DNPropertyDefinition.java revision 6870993d12bf8a2b9d5cd103dc5ccabc42f9bf5d
/*
* 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.
*/
/**
* DN property definition.
*/
/**
* Optional base DN which all valid values must be immediately
* subordinate to.
*/
/**
* An interface for incrementally constructing DN property definitions.
*/
/**
* Optional base DN which all valid values must be immediately
* subordinate to.
*/
/** Private constructor. */
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.
*/
} else {
// TODO: is it correct to replace server DN.decode by SDK
// valueOf ?
}
}
/**
* 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(AbstractManagedObjectDefinition<?, ?> d, String propertyName,
}
}
/**
* 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.
*/
return new Builder(d, propertyName);
}
/** Private constructor. */
}
/**
* 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} */
}
}
}
}
/** {@inheritDoc} */
try {
return dn;
} catch (PropertyException e) {
}
}
/** {@inheritDoc} */
public <R, P> R accept(PropertyDefinitionVisitor<R, P> v, P p) {
return v.visitDN(this, p);
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
}
}