The tag name arguments is reserved for ElementFactory. When you want to invoke a method against something, you need to define arguments as the input for the method.
<arguments> <string ArgumentType="java.lang.String" value="valueA"/> <integer ArgumentType="int" value="12345"/> <string ArgumentType="java.lang.String" value="valueC"/> </arguments>
For each element in the arguments, you need to define an attribute ArgumentType, which is the type of argument in the method declaration; and the sub-elements needs to be exactly in the sequence of the arguments in the method declaration. This principle also applies to instantiating element by static factory and instance factory.
The element entry is used to define entries in a java.util.Map. The tag name entry is also reserved. See Defining collections.
There are some built-in data types in Java language that cannot be instantiated by default constructor, constructor, static factory or instance factory. They are treated as simple elements and the ElementFactory can handle them.
Class | Tag name | Sample definition |
---|---|---|
java.lang.String | string | <string value="valueA"/> |
java.lang.Integer | integer | <integer value="12345"/> |
java.lang.Long | long | <long value="12345"/> |
java.lang.Short | short | <short value="12"/> |
java.lang.Byte | byte | <byte value="12"/> |
java.lang.Charactor | char | <char value="a"/> |
java.lang.Float | float | <float value="1234.5"/> |
java.lang.Boolean | boolean | <integer value="true"/> |