|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.sync.ecss.extensions.api.ArgumentDescriptor
public class ArgumentDescriptor
Descriptor class for an author operation argument.
Field Summary | |
---|---|
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_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_STRING
String argument type. |
static int |
TYPE_XPATH_EXPRESSION
Xpath expression argument type. |
Constructor Summary | |
---|---|
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[] allowedValues,
java.lang.String defaultValue)
Constructor of the argument descriptor class. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
.
protected java.lang.String name
protected int type
TYPE_STRING
,
TYPE_FRAGMENT
,
TYPE_XPATH_EXPRESSION
,
TYPE_CONSTANT_LIST
,
protected java.lang.String description
protected java.lang.String[] allowedValues
protected java.lang.String defaultValue
Constructor Detail |
---|
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_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[] allowedValues, java.lang.String defaultValue)
name
- The name of the argument.type
- The type of the argument, one of:
TYPE_STRING
,
TYPE_FRAGMENT
,
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.Method Detail |
---|
public java.lang.String getName()
public int getType()
TYPE_STRING
,
TYPE_FRAGMENT
,
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_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()
|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |