@NotThreadSafe public static class ImmutableSoapApiModelInfo.Builder extends Object
ImmutableSoapApiModelInfo.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Constructor and Description |
|---|
Builder()
Creates a builder for
ImmutableSoapApiModelInfo instances. |
| Modifier and Type | Method and Description |
|---|---|
SoapApiModelInfo.Builder |
addAllErrors(Iterable<? extends Violation> elements)
Adds elements to
errors list. |
SoapApiModelInfo.Builder |
addAllServices(Iterable<? extends QName> elements)
Adds elements to
services list. |
SoapApiModelInfo.Builder |
addAllWarnings(Iterable<? extends Violation> elements)
Adds elements to
warnings list. |
SoapApiModelInfo.Builder |
addErrors(Violation... elements)
Adds elements to
errors list. |
SoapApiModelInfo.Builder |
addErrors(Violation element)
Adds one element to
errors list. |
SoapApiModelInfo.Builder |
addServices(QName... elements)
Adds elements to
services list. |
SoapApiModelInfo.Builder |
addServices(QName element)
Adds one element to
services list. |
SoapApiModelInfo.Builder |
addWarnings(Violation... elements)
Adds elements to
warnings list. |
SoapApiModelInfo.Builder |
addWarnings(Violation element)
Adds one element to
warnings list. |
ImmutableSoapApiModelInfo |
build()
Builds a new
ImmutableSoapApiModelInfo. |
SoapApiModelInfo.Builder |
defaultAddress(Optional<String> defaultAddress)
Initializes the optional value
defaultAddress to defaultAddress. |
SoapApiModelInfo.Builder |
defaultAddress(String defaultAddress)
Initializes the optional value
defaultAddress to defaultAddress. |
SoapApiModelInfo.Builder |
defaultPort(Optional<String> defaultPort)
Initializes the optional value
defaultPort to defaultPort. |
SoapApiModelInfo.Builder |
defaultPort(String defaultPort)
Initializes the optional value
defaultPort to defaultPort. |
SoapApiModelInfo.Builder |
defaultService(Optional<? extends QName> defaultService)
Initializes the optional value
defaultService to defaultService. |
SoapApiModelInfo.Builder |
defaultService(QName defaultService)
Initializes the optional value
defaultService to defaultService. |
SoapApiModelInfo.Builder |
errors(Iterable<? extends Violation> elements)
Sets or replaces all elements for
errors list. |
SoapApiModelInfo.Builder |
from(SoapApiModelInfo instance)
Fill a builder with attribute values from the provided
SoapApiModelInfo instance. |
SoapApiModelInfo.Builder |
model(javax.wsdl.Definition model)
Initializes the optional value
model to model. |
SoapApiModelInfo.Builder |
model(Optional<? extends javax.wsdl.Definition> model)
Initializes the optional value
model to model. |
SoapApiModelInfo.Builder |
ports(Map<? extends QName,? extends List<String>> entries)
Sets or replaces all mappings from the specified map as entries for the
ports map. |
SoapApiModelInfo.Builder |
putAllPorts(Map<? extends QName,? extends List<String>> entries)
Put all mappings from the specified map as entries to
ports map. |
SoapApiModelInfo.Builder |
putPorts(Map.Entry<? extends QName,? extends List<String>> entry)
Put one entry to the
ports map. |
SoapApiModelInfo.Builder |
putPorts(QName key,
List<String> value)
Put one entry to the
ports map. |
SoapApiModelInfo.Builder |
resolvedSpecification(Optional<String> resolvedSpecification)
Initializes the optional value
resolvedSpecification to resolvedSpecification. |
SoapApiModelInfo.Builder |
resolvedSpecification(String resolvedSpecification)
Initializes the optional value
resolvedSpecification to resolvedSpecification. |
SoapApiModelInfo.Builder |
services(Iterable<? extends QName> elements)
Sets or replaces all elements for
services list. |
SoapApiModelInfo.Builder |
warnings(Iterable<? extends Violation> elements)
Sets or replaces all elements for
warnings list. |
SoapApiModelInfo.Builder |
wsdlURL(Optional<String> wsdlURL)
Initializes the optional value
wsdlURL to wsdlURL. |
SoapApiModelInfo.Builder |
wsdlURL(String wsdlURL)
Initializes the optional value
wsdlURL to wsdlURL. |
public Builder()
ImmutableSoapApiModelInfo instances.
new SoapApiModelInfo.Builder()
.wsdlURL(String) // optional wsdlURL
.resolvedSpecification(String) // optional resolvedSpecification
.model(javax.wsdl.Definition) // optional model
.defaultService(javax.xml.namespace.QName) // optional defaultService
.defaultPort(String) // optional defaultPort
.defaultAddress(String) // optional defaultAddress
.addServices|addAllServices(javax.xml.namespace.QName) // services elements
.putPorts|putAllPorts(javax.xml.namespace.QName => List<String>) // ports mappings
.addWarnings|addAllWarnings(io.syndesis.common.model.Violation) // warnings elements
.addErrors|addAllErrors(io.syndesis.common.model.Violation) // errors elements
.build();
@CanIgnoreReturnValue public final SoapApiModelInfo.Builder from(SoapApiModelInfo instance)
SoapApiModelInfo instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder wsdlURL(String wsdlURL)
wsdlURL to wsdlURL.wsdlURL - The value for wsdlURLthis builder for chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder wsdlURL(Optional<String> wsdlURL)
wsdlURL to wsdlURL.wsdlURL - The value for wsdlURLthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder resolvedSpecification(String resolvedSpecification)
resolvedSpecification to resolvedSpecification.resolvedSpecification - The value for resolvedSpecificationthis builder for chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder resolvedSpecification(Optional<String> resolvedSpecification)
resolvedSpecification to resolvedSpecification.resolvedSpecification - The value for resolvedSpecificationthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder model(javax.wsdl.Definition model)
model to model.model - The value for modelthis builder for chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder model(Optional<? extends javax.wsdl.Definition> model)
model to model.model - The value for modelthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder defaultService(QName defaultService)
defaultService to defaultService.defaultService - The value for defaultServicethis builder for chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder defaultService(Optional<? extends QName> defaultService)
defaultService to defaultService.defaultService - The value for defaultServicethis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder defaultPort(String defaultPort)
defaultPort to defaultPort.defaultPort - The value for defaultPortthis builder for chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder defaultPort(Optional<String> defaultPort)
defaultPort to defaultPort.defaultPort - The value for defaultPortthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder defaultAddress(String defaultAddress)
defaultAddress to defaultAddress.defaultAddress - The value for defaultAddressthis builder for chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder defaultAddress(Optional<String> defaultAddress)
defaultAddress to defaultAddress.defaultAddress - The value for defaultAddressthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder addServices(QName element)
services list.element - A services elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder addServices(QName... elements)
services list.elements - An array of services elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder services(Iterable<? extends QName> elements)
services list.elements - An iterable of services elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder addAllServices(Iterable<? extends QName> elements)
services list.elements - An iterable of services elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder putPorts(QName key, List<String> value)
ports map.key - The key in the ports mapvalue - The associated value in the ports mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder putPorts(Map.Entry<? extends QName,? extends List<String>> entry)
ports map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder ports(Map<? extends QName,? extends List<String>> entries)
ports map. Nulls are not permittedentries - The entries that will be added to the ports mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder putAllPorts(Map<? extends QName,? extends List<String>> entries)
ports map. Nulls are not permittedentries - The entries that will be added to the ports mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder addWarnings(Violation element)
warnings list.element - A warnings elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder addWarnings(Violation... elements)
warnings list.elements - An array of warnings elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder warnings(Iterable<? extends Violation> elements)
warnings list.elements - An iterable of warnings elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder addAllWarnings(Iterable<? extends Violation> elements)
warnings list.elements - An iterable of warnings elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder addErrors(Violation element)
errors list.element - A errors elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder addErrors(Violation... elements)
errors list.elements - An array of errors elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder errors(Iterable<? extends Violation> elements)
errors list.elements - An iterable of errors elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final SoapApiModelInfo.Builder addAllErrors(Iterable<? extends Violation> elements)
errors list.elements - An iterable of errors elementsthis builder for use in a chained invocationpublic ImmutableSoapApiModelInfo build()
ImmutableSoapApiModelInfo.IllegalStateException - if any required attributes are missingCopyright © 2016–2021 Red Hat. All rights reserved.