Package com.io7m.jxe.core
Class JXESchemaResolutionMappings
java.lang.Object
com.io7m.jxe.core.JXESchemaResolutionMappings
- All Implemented Interfaces:
JXESchemaResolutionMappingsType
public final class JXESchemaResolutionMappings
extends Object
implements JXESchemaResolutionMappingsType
A set of mappings from namespace URIs to schemas.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeJXESchemaResolutionMappings
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forJXESchemaResolutionMappings
.static JXESchemaResolutionMappings
copyOf
(JXESchemaResolutionMappingsType instance) Creates an immutable copy of aJXESchemaResolutionMappingsType
value.boolean
This instance is equal to all instances ofJXESchemaResolutionMappings
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:mappings
.mappings()
toString()
Prints the immutable valueJXESchemaResolutionMappings
with attribute values.withMappings
(Map<? extends URI, ? extends JXESchemaDefinition> entries) Copy the current immutable object by replacing themappings
map with the specified map.
-
Method Details
-
mappings
- Specified by:
mappings
in interfaceJXESchemaResolutionMappingsType
- Returns:
- The set of mappings from namespace URIs to schemas
-
withMappings
public final JXESchemaResolutionMappings withMappings(Map<? extends URI, ? extends JXESchemaDefinition> entries) Copy the current immutable object by replacing themappings
map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
entries
- The entries to be added to the mappings map- Returns:
- A modified copy of
this
object
-
equals
This instance is equal to all instances ofJXESchemaResolutionMappings
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:mappings
. -
toString
Prints the immutable valueJXESchemaResolutionMappings
with attribute values. -
copyOf
Creates an immutable copy of aJXESchemaResolutionMappingsType
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable JXESchemaResolutionMappings instance
-
builder
Creates a builder forJXESchemaResolutionMappings
.JXESchemaResolutionMappings.builder() .putMappings|putAllMappings(java.net.URI => JXESchemaDefinition) //
mappings
mappings .build();- Returns:
- A new JXESchemaResolutionMappings builder
-