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 classBuilds instances of typeJXESchemaResolutionMappings. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forJXESchemaResolutionMappings.static JXESchemaResolutionMappingscopyOf(JXESchemaResolutionMappingsType instance) Creates an immutable copy of aJXESchemaResolutionMappingsTypevalue.booleanThis instance is equal to all instances ofJXESchemaResolutionMappingsthat have equal attribute values.inthashCode()Computes a hash code from attributes:mappings.mappings()toString()Prints the immutable valueJXESchemaResolutionMappingswith attribute values.withMappings(Map<? extends URI, ? extends JXESchemaDefinition> entries) Copy the current immutable object by replacing themappingsmap with the specified map.
-
Method Details
-
mappings
- Specified by:
mappingsin 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 themappingsmap 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
thisobject
-
equals
This instance is equal to all instances ofJXESchemaResolutionMappingsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:mappings. -
toString
Prints the immutable valueJXESchemaResolutionMappingswith attribute values. -
copyOf
Creates an immutable copy of aJXESchemaResolutionMappingsTypevalue. 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) //mappingsmappings .build();- Returns:
- A new JXESchemaResolutionMappings builder
-