mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
15.17.2014 661593f15f14aaf55d73c7979dab1e900ebae2af
opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/StringPropertyDefinition.java
@@ -47,18 +47,22 @@
     */
    public static final class Builder extends AbstractBuilder<String, StringPropertyDefinition> {
        // Flag indicating whether values of this property are
        // case-insensitive.
        /**
         * Flag indicating whether values of this property are
         * case-insensitive.
         */
        private boolean isCaseInsensitive = true;
        // Optional pattern which values of this property must match.
        /** Optional pattern which values of this property must match. */
        private Pattern pattern = null;
        // Pattern usage which provides a user-friendly summary of the
        // pattern if present.
        /**
         * Pattern usage which provides a user-friendly summary of the
         * pattern if present.
         */
        private String patternUsage = null;
        // Private constructor
        /** Private constructor. */
        private Builder(AbstractManagedObjectDefinition<?, ?> d, String propertyName) {
            super(d, propertyName);
        }
@@ -101,9 +105,7 @@
            }
        }
        /**
         * {@inheritDoc}
         */
        /** {@inheritDoc} */
        @Override
        protected StringPropertyDefinition buildInstance(AbstractManagedObjectDefinition<?, ?> d,
            String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction,
@@ -128,18 +130,22 @@
        return new Builder(d, propertyName);
    }
    // Flag indicating whether values of this property are
    // case-insensitive.
    /**
     * Flag indicating whether values of this property are
     * case-insensitive.
     */
    private final boolean isCaseInsensitive;
    // Optional pattern which values of this property must match.
    /** Optional pattern which values of this property must match. */
    private final Pattern pattern;
    // Pattern usage which provides a user-friendly summary of the
    // pattern if present.
    /**
     * Pattern usage which provides a user-friendly summary of the
     * pattern if present.
     */
    private final String patternUsage;
    // Private constructor.
    /** Private constructor. */
    private StringPropertyDefinition(AbstractManagedObjectDefinition<?, ?> d, String propertyName,
        EnumSet<PropertyOption> options, AdministratorAction adminAction,
        DefaultBehaviorProvider<String> defaultBehavior, boolean isCaseInsensitive, Pattern pattern,
@@ -150,25 +156,19 @@
        this.patternUsage = patternUsage;
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    @Override
    public <R, P> R accept(PropertyDefinitionVisitor<R, P> v, P p) {
        return v.visitString(this, p);
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    @Override
    public <R, P> R accept(PropertyValueVisitor<R, P> v, String value, P p) {
        return v.visitString(this, value, p);
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    @Override
    public String decodeValue(String value) {
        Reject.ifNull(value);
@@ -251,9 +251,7 @@
        return isCaseInsensitive;
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    @Override
    public String normalizeValue(String value) {
        Reject.ifNull(value);
@@ -265,9 +263,7 @@
        }
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    @Override
    public void validateValue(String value) {
        Reject.ifNull(value);