| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions copyright 2014 ForgeRock AS |
| | | * Portions copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package com.forgerock.opendj.cli; |
| | | |
| | |
| | | * multiple lines, then only the first line will be read. |
| | | */ |
| | | public final class FileBasedArgument extends Argument { |
| | | /** |
| | | * The mapping between filenames specified and the first lines read |
| | | * from those files. |
| | | */ |
| | | private final LinkedHashMap<String, String> namesToValues; |
| | | /** The mapping between filenames specified and the first lines read from those files. */ |
| | | private final LinkedHashMap<String, String> namesToValues = new LinkedHashMap<>(); |
| | | |
| | | /** |
| | | * Creates a new file-based argument with the provided information. |
| | |
| | | throws ArgumentException { |
| | | super(name, shortIdentifier, longIdentifier, isRequired, isMultiValued, true, |
| | | valuePlaceholder, defaultValue, propertyName, description); |
| | | |
| | | namesToValues = new LinkedHashMap<String, String>(); |
| | | } |
| | | |
| | | /** |
| | |
| | | throws ArgumentException { |
| | | super(name, shortIdentifier, longIdentifier, isRequired, false, true, valuePlaceholder, |
| | | null, null, description); |
| | | |
| | | namesToValues = new LinkedHashMap<String, String>(); |
| | | } |
| | | |
| | | /** |