public static final class JXESchemaDefinition.Builder extends Object
JXESchemaDefinition.
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.
| Modifier and Type | Method | Description |
|---|---|---|
JXESchemaDefinition |
build() |
Builds a new
JXESchemaDefinition. |
JXESchemaDefinition.Builder |
from(JXESchemaDefinitionType instance) |
Fill a builder with attribute values from the provided
JXESchemaDefinitionType instance. |
JXESchemaDefinition.Builder |
setFileIdentifier(String fileIdentifier) |
Initializes the value for the
fileIdentifier attribute. |
JXESchemaDefinition.Builder |
setLocation(URL location) |
Initializes the value for the
location attribute. |
JXESchemaDefinition.Builder |
setNamespace(URI namespace) |
Initializes the value for the
namespace attribute. |
public final JXESchemaDefinition.Builder from(JXESchemaDefinitionType instance)
JXESchemaDefinitionType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final JXESchemaDefinition.Builder setNamespace(URI namespace)
namespace attribute.namespace - The value for namespacethis builder for use in a chained invocationpublic final JXESchemaDefinition.Builder setFileIdentifier(String fileIdentifier)
fileIdentifier attribute.fileIdentifier - The value for fileIdentifierthis builder for use in a chained invocationpublic final JXESchemaDefinition.Builder setLocation(URL location)
location attribute.location - The value for locationthis builder for use in a chained invocationpublic JXESchemaDefinition build()
JXESchemaDefinition.IllegalStateException - if any required attributes are missingCopyright © 2018 <code@io7m.com> http://io7m.com