FieldBuilder

Overview

FieldBuilder is a class in Aspose.Words FOSS for Java. Inherits from: IFieldBuildingBlock.

Builds a field from field code tokens (arguments and switches).

Edition status of its 4 listed members (a property and its accessor methods are listed separately, overloads once): 4 not yet exercised by a verified example.

This class declares 12 methods for FieldBuilder objects in Java programs. Available methods include: FieldBuilder, addArgument, addSwitch, buildAndInsert. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.

Methods

SignatureDescription
FieldBuilder(fieldType: int)Initializes an instance of the FieldBuilder class.
addArgument(argument: String) → FieldBuilderAdds a field’s argument.
addArgument(argument: int) → FieldBuilderAdds a field’s argument.
addArgument(argument: double) → FieldBuilderAdds a field’s argument.
addArgument(argument: FieldBuilder) → FieldBuilderAdds a child field represented by another FieldBuilder to the field’s code.
addArgument(argument: FieldArgumentBuilder) → FieldBuilderAdds a field’s argument represented by FieldArgumentBuilder to the field’s code.
addSwitch(switchName: String) → FieldBuilderAdds a field’s switch.
addSwitch(switchName: String, switchArgument: String) → FieldBuilderAdds a field’s switch.
addSwitch(switchName: String, switchArgument: int) → FieldBuilderAdds a field’s switch.
addSwitch(switchName: String, switchArgument: double) → FieldBuilderAdds a field’s switch.
buildAndInsert(refNode: Inline) → FieldBuilds and inserts a field into the document before the specified inline node.
buildAndInsert(refNode: Paragraph) → FieldBuilds and inserts a field into the document to the end of the specified paragraph.

See Also