You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Glen Daniels <gd...@macromedia.com> on 2002/05/09 20:22:54 UTC

RE: cvs commit: xml-axis/java/src/org/apache/axis/handlers BasicH andler.java

Hi Richard!

>   +    /**
>   +     * Set a default value for the given option:
>   +     * if the option is not already set, then set it.
>   +     * if the option is already set, then do not set it.
>   +     * <p>
>   +     * If this is called multiple times, the first with a 
> non-null value
>   +     * if 'value' will set the default, remaining calls 
> will be ignored.
>   +     * <p>
>   +     * Returns true if value set (by this call), otherwise false;
>   +     */
>   +    public boolean setOptionDefault(String name, Object value) {
>   +        boolean val = (options == null  || 
> options.get(name) == null) && value != null;
>   +        if (val) {
>   +            setOption(name, value);
>   +        }
>   +        return val;
>   +    }

Could you explain how this would be used?

--Glen