Package org.opengis.cite.csw20
Class TestRunArguments
java.lang.Object
org.opengis.cite.csw20.TestRunArguments
Provides utility methods that assist with the handling of test run arguments.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Document
propertiesAsDocument
(Properties props) Creates a document that contains a simple XML representation of the given set of properties.static Properties
validateArguments
(Document testRunArgs) Validates the given test run arguments.
-
Constructor Details
-
TestRunArguments
public TestRunArguments()
-
-
Method Details
-
validateArguments
Validates the given test run arguments. AnIllegalArgumentException
is thrown if a required argument is missing or invalid. The recognized arguments are listed below.- "capabilities.url" (required)
- Parameters:
testRunArgs
- A Document containing a set of XML properties; each entry (key-value pair) is a test run argument.- Returns:
- A valid set of test run arguments.
-
propertiesAsDocument
Creates a document that contains a simple XML representation of the given set of properties.- Parameters:
props
- A set of properties (key-value pairs).- Returns:
- A Document node, wherein each property is represented by an entry[@key] element.
-