StringPropertyDefinition.java revision b9a443e043c3d5c58c76dac2891abe1b71afa9d5
2535N/A * The contents of this file are subject to the terms of the 2535N/A * Common Development and Distribution License, Version 1.0 only 2535N/A * (the "License"). You may not use this file except in compliance 2535N/A * You can obtain a copy of the license at 2535N/A * See the License for the specific language governing permissions 2535N/A * and limitations under the License. 2535N/A * When distributing Covered Code, include this CDDL HEADER in each 2535N/A * file and include the License file at 2535N/A * add the following below this CDDL HEADER, with the fields enclosed 2535N/A * by brackets "[]" replaced with your own identifying information: 2535N/A * Portions Copyright [yyyy] [name of copyright owner] 2535N/A * Portions Copyright 2007 Sun Microsystems, Inc. 2535N/A * String property definition. 2535N/A * An interface for incrementally constructing string property 2535N/A // Flag indicating whether values of this property are 2535N/A // Optional pattern which values of this property must match. 2535N/A // Pattern usage which provides a user-friendly summary of the 2535N/A * Set a flag indicating whether values of this property are * <code>true</code> if values are case-insensitive, or * <code>false</code> otherwise. * Set the regular expression pattern which values of this * property must match. By default there is no pattern defined. * The regular expression pattern string, or * <code>null</code> if there is no pattern. * A user-friendly usage string representing the pattern * which can be used in error messages and help (e.g. for * patterns which match a host/port combination, the * usage string "HOST:PORT" would be appropriate). * @throws PatternSyntaxException * If the provided regular expression pattern has an * Create a string property definition builder. * The managed object definition associated with this * @return Returns the new string property definition builder. // Flag indicating whether values of this property are // Optional pattern which values of this property must match. // Pattern usage which provides a user-friendly summary of the * Gets the optional regular expression pattern which values of this * @return Returns the optional regular expression pattern which * values of this property must match, or <code>null</code> * if there is no pattern. * Gets the pattern synopsis of this string property definition in * @return Returns the pattern synopsis of this string property * definition in the default locale, or <code>null</code> * if there is no pattern synopsis (which is the case when * there is no pattern matching defined for this string * Gets the optional pattern synopsis of this string property * definition in the specified locale. * @return Returns the pattern synopsis of this string property * definition in the specified locale, or <code>null</code> * if there is no pattern synopsis (which is the case when * there is no pattern matching defined for this string +
".syntax.string.pattern.synopsis";
* Gets a user-friendly usage string representing the pattern which * can be used in error messages and help (e.g. for patterns which * match a host/port combination, the usage string "HOST:PORT" would * @return Returns the user-friendly pattern usage string, or * <code>null</code> if there is no pattern. * Query whether values of this property are case-insensitive. * @return Returns <code>true</code> if values are * case-insensitive, or <code>false</code> otherwise.