@API(type=EXTENDABLE,
src=PUBLIC)
public class ArgumentDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
allowedValues
The array containing the allowed values for the arguments with type
TYPE_CONSTANTS_LIST.
|
protected java.lang.String |
defaultValue
The default value of the argument.
|
protected java.lang.String |
description
The string argument description.
|
protected java.lang.String |
name
The argument name.
|
protected int |
type
The argument type, can be one of:
TYPE_STRING ,
TYPE_FRAGMENT ,
TYPE_SCRIPT ,
TYPE_XPATH_EXPRESSION ,
TYPE_CONSTANT_LIST , |
static int |
TYPE_CONSTANT_LIST
List of constant strings argument type.
|
static int |
TYPE_FRAGMENT
XML fragment argument type.
|
static int |
TYPE_JAVA_OBJECT
An argument of this type is a Java object represented as a Map.
|
static int |
TYPE_SCRIPT
Script type (XSLT or XQuery).
|
static int |
TYPE_STRING
String argument type.
|
static int |
TYPE_XPATH_EXPRESSION
Xpath expression argument type.
|
Constructor and Description |
---|
ArgumentDescriptor(java.lang.String name,
int type,
java.lang.String description)
Constructor of the argument descriptor class.
|
ArgumentDescriptor(java.lang.String name,
int type,
java.lang.String description,
java.lang.String defaultValue)
Constructor of the argument descriptor class.
|
ArgumentDescriptor(java.lang.String name,
int type,
java.lang.String description,
java.lang.String[] allowedValues,
java.lang.String defaultValue)
Constructor of the argument descriptor class.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
decodeType(int type)
Returns a
String description of the given argument type. |
java.lang.String[] |
getAllowedValues() |
java.lang.String |
getDefaultValue() |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
int |
getType() |
java.lang.String |
toString() |
public static final int TYPE_STRING
0
.public static final int TYPE_FRAGMENT
String
The value is 1
.public static final int TYPE_XPATH_EXPRESSION
String
The value is 2
.public static final int TYPE_CONSTANT_LIST
3
.public static final int TYPE_SCRIPT
String
The value is 4
.public static final int TYPE_JAVA_OBJECT
protected java.lang.String name
protected int type
TYPE_STRING
,
TYPE_FRAGMENT
,
TYPE_SCRIPT
,
TYPE_XPATH_EXPRESSION
,
TYPE_CONSTANT_LIST
,protected java.lang.String description
protected java.lang.String[] allowedValues
protected java.lang.String defaultValue
public ArgumentDescriptor(java.lang.String name, int type, java.lang.String description)
name
- The name of the argument.type
- The type of the argument, one of:
TYPE_STRING
,
TYPE_FRAGMENT
,
TYPE_SCRIPT
,
TYPE_XPATH_EXPRESSION
,
TYPE_CONSTANT_LIST
,description
- The description of the argument.public ArgumentDescriptor(java.lang.String name, int type, java.lang.String description, java.lang.String defaultValue)
name
- The name of the argument.type
- The type of the argument, one of:
TYPE_STRING
,
TYPE_FRAGMENT
,
TYPE_SCRIPT
,
TYPE_XPATH_EXPRESSION
,
TYPE_CONSTANT_LIST
,description
- The description of the argument.defaultValue
- The default value of the argument.public ArgumentDescriptor(java.lang.String name, int type, java.lang.String description, java.lang.String[] allowedValues, java.lang.String defaultValue)
name
- The name of the argument.type
- The type of the argument, one of:
TYPE_STRING
,
TYPE_FRAGMENT
,
TYPE_SCRIPT
,
TYPE_XPATH_EXPRESSION
,
TYPE_CONSTANT_LIST
,description
- The description of the argument.allowedValues
- The allowed values for the defined argument.defaultValue
- The default value of the argument.public java.lang.String getName()
public int getType()
TYPE_STRING
,
TYPE_FRAGMENT
,
TYPE_SCRIPT
,
TYPE_XPATH_EXPRESSION
,
TYPE_CONSTANT_LIST
,public java.lang.String getDescription()
public static java.lang.String decodeType(int type)
String
description of the given argument type.type
- The argument type, one of:
TYPE_STRING
,
TYPE_FRAGMENT
,
TYPE_SCRIPT
,
TYPE_XPATH_EXPRESSION
,
TYPE_CONSTANT_LIST
,null
if the type is not valid.public java.lang.String[] getAllowedValues()
TYPE_CONSTANTS_LIST
arguments.public java.lang.String getDefaultValue()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.