Package com.io7m.jxe.core
Class JXESchemaResolutionMappings.Builder
- java.lang.Object
-
- com.io7m.jxe.core.JXESchemaResolutionMappings.Builder
-
- Enclosing class:
- JXESchemaResolutionMappings
public static final class JXESchemaResolutionMappings.Builder extends java.lang.ObjectBuilds instances of typeJXESchemaResolutionMappings. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JXESchemaResolutionMappingsbuild()Builds a newJXESchemaResolutionMappings.JXESchemaResolutionMappings.Builderfrom(JXESchemaResolutionMappingsType instance)Fill a builder with attribute values from the providedJXESchemaResolutionMappingsTypeinstance.JXESchemaResolutionMappings.BuilderputAllMappings(java.util.Map<? extends java.net.URI,? extends JXESchemaDefinition> entries)Put all mappings from the specified map as entries tomappingsmap.JXESchemaResolutionMappings.BuilderputMappings(java.net.URI key, JXESchemaDefinition value)Put one entry to themappingsmap.JXESchemaResolutionMappings.BuilderputMappings(java.util.Map.Entry<? extends java.net.URI,? extends JXESchemaDefinition> entry)Put one entry to themappingsmap.JXESchemaResolutionMappings.BuildersetMappings(java.util.Map<? extends java.net.URI,? extends JXESchemaDefinition> entries)Sets or replaces all mappings from the specified map as entries for themappingsmap.
-
-
-
Method Detail
-
from
public final JXESchemaResolutionMappings.Builder from(JXESchemaResolutionMappingsType instance)
Fill a builder with attribute values from the providedJXESchemaResolutionMappingsTypeinstance. 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.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
putMappings
public final JXESchemaResolutionMappings.Builder putMappings(java.net.URI key, JXESchemaDefinition value)
Put one entry to themappingsmap.- Parameters:
key- The key in the mappings mapvalue- The associated value in the mappings map- Returns:
thisbuilder for use in a chained invocation
-
putMappings
public final JXESchemaResolutionMappings.Builder putMappings(java.util.Map.Entry<? extends java.net.URI,? extends JXESchemaDefinition> entry)
Put one entry to themappingsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
setMappings
public final JXESchemaResolutionMappings.Builder setMappings(java.util.Map<? extends java.net.URI,? extends JXESchemaDefinition> entries)
Sets or replaces all mappings from the specified map as entries for themappingsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the mappings map- Returns:
thisbuilder for use in a chained invocation
-
putAllMappings
public final JXESchemaResolutionMappings.Builder putAllMappings(java.util.Map<? extends java.net.URI,? extends JXESchemaDefinition> entries)
Put all mappings from the specified map as entries tomappingsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the mappings map- Returns:
thisbuilder for use in a chained invocation
-
build
public JXESchemaResolutionMappings build()
Builds a newJXESchemaResolutionMappings.- Returns:
- An immutable instance of JXESchemaResolutionMappings
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-
-