java.lang.Object
dev.metaschema.core.metapath.function.IArgument.Builder
- Enclosing interface:
- IArgument
Used to create an argument's signature using a builder pattern.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the argument's signature.Define the name of the function argument.one()Identifies the argument's cardinality as a single, required item (one).Identifies the argument's cardinality as a required series of items (one or more).Define the type of the function argument.type(IEnhancedQName name) Define the type of the function argument.Identifies the argument's cardinality as an optional series of items (zero or more).Identifies the argument's cardinality as a single, optional item (zero or one).
-
Method Details
-
name
Define the name of the function argument.- Parameters:
name- the argument's name- Returns:
- this builder
-
type
Define the type of the function argument.By default an argument has the type
IItem.- Parameters:
name- the qualified name of the argument's type- Returns:
- this builder
-
type
Define the type of the function argument.By default an argument has the type
IItem.- Parameters:
type- the argument's type- Returns:
- this builder
-
zeroOrOne
Identifies the argument's cardinality as a single, optional item (zero or one).- Returns:
- this builder
-
one
Identifies the argument's cardinality as a single, required item (one).- Returns:
- this builder
-
zeroOrMore
Identifies the argument's cardinality as an optional series of items (zero or more).- Returns:
- this builder
-
oneOrMore
Identifies the argument's cardinality as a required series of items (one or more).- Returns:
- this builder
-
build
Builds the argument's signature.- Returns:
- the argument's signature
-